Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Windows] QMediaPlayer Exception at 0x... in EVR!MFCreateVideoSampleAllocator Qt 5.9.5 msvc2017
Forum Updated to NodeBB v4.3 + New Features

[Windows] QMediaPlayer Exception at 0x... in EVR!MFCreateVideoSampleAllocator Qt 5.9.5 msvc2017

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 556 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kamui
    wrote on last edited by kamui
    #1

    Hello.

    I have an issue with QMediaPlayer, only on Windows. The same code is working well on Mac.

    errorString() returns an empty string but the error enum is "ResourceError".

    In Debug Mode, this exception (Exception at 0x... in EVR!MFCreateVideoSampleAllocator) is thrown.

    In release mode, the only thing I can see is that the Media resource could not be resolved, but I don't know what it means.

    Does somebody has any idea ? ty

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kamui
      wrote on last edited by
      #2

      Same issue with the Media Player example. I am able to compile it but i got the same exception in Debug Mode.

      In release mode, the Media Player example is unable to read my mp4 file. and shows an error in the console output : "DirectShowPlayerService::doRender Unresolved error code 0x80040266 (IDispatch error #102)" when I hit the "play" button.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        What are the properties of that file ?
        Can you play it with the Windows system media player ?
        What version of Qt are you using ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamui
          wrote on last edited by kamui
          #4

          I can't play any file (files playable with system media player) with both my app and the example given in QtCreator. I'm using Qt5.9.5 (with msvc2017).

          Also, I don't know what to search with the "ResourceError" error returned by QMediaPlayer

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Can you try with a more recent version of Qt ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved