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. Qt Windows desktop: QMediaPlayer error code 0x80040218.
Forum Updated to NodeBB v4.3 + New Features

Qt Windows desktop: QMediaPlayer error code 0x80040218.

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.2k 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.
  • gulfoslidesG Offline
    gulfoslidesG Offline
    gulfoslides
    wrote on last edited by
    #1

    In my Windows desktop app I allow the user to play .mp4 files.
    basically coding it this way:
    ...
    m_videoWidget = new QVideoWidget(ui->wdgVideo);
    m_videoWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    ...
    m_player = QMediaPlayer(this, QMediaPlayer::StreamPlayback);
    m_videoWidget->show();
    m_player->setVideoOutput(m_videoWidget)

    This all works great in my current code base using QT 5.6.3 (and VC 2012)

    But when I switched to Qt 5.15 (and VC 2019) and run the same code I get this error when I try to play the same file:

    iCCP: cHRM chunk does not match sRGBWindowDeactivateDirectShowPlayerService::doRender:
    Unresolved error code 0x80040218 (IDispatch error #24)invalid media

    Am I missing a codec now or perhaps a bug in Qt 5.15 ?

    1 Reply Last reply
    0
    • gulfoslidesG Offline
      gulfoslidesG Offline
      gulfoslides
      wrote on last edited by
      #2

      So gsliva2016 resolved this problem
      https://forum.qt.io/topic/49572/directshowplayerservice-dorender-unresolved-error-code-80040218/3

      by doing this:
      "gsilva2016 6 Jun 2017, 15:05
      I resolved this on Win10 / Qt5.8 by installing DivX software..."

      I tried this and it worked for me too ! But I need to build an installer for my app so I need to know what DIVX actually added that enabled my app to work.

      Anyone have an idea as to what new .dll or registry change installing DIVX provides ?

      I searched my registry for today's changes after installing DIVX and saw no new change.
      I also used depends.exe against my executable and saw no new dlls that might have been added by DIVX

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

        Hi and welcome to devnet,

        The installer added some codec to your system and may have registered them but they won't show up as direct dependencies. See them like plugins.

        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
        1
        • gulfoslidesG Offline
          gulfoslidesG Offline
          gulfoslides
          wrote on last edited by
          #4

          Right. I need to add these same codecs to my installer so that when users install my app, they get the correct set of codecs that go with the media elements of Qt 1.5.15. Is there a recommended codec pack that should be installed with Qt 1.5.15 on Windows 10 ?

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

            What did you install ?

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

            gulfoslidesG 1 Reply Last reply
            1
            • SGaistS SGaist

              What did you install ?

              gulfoslidesG Offline
              gulfoslidesG Offline
              gulfoslides
              wrote on last edited by gulfoslides
              #6

              @SGaist divx player
              https://www.divx.com/en/software/divx/
              (then install the DivX Player and Media Server)

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Wsxst1234
                wrote on last edited by
                #7

                @SGaist
                @gulfoslides Hello, I also encountered this issue. And after I installed divx, the issue is still not resolved. Could you guys please help me with this? Thanks a lot!

                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