Important: Please read the Qt Code of Conduct -

Qt Windows desktop: QMediaPlayer error code 0x80040218.

  • 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);

    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 ?

  • So gsliva2016 resolved this problem

    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

  • Lifetime Qt Champion

    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.

  • 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 ?

  • Lifetime Qt Champion

    What did you install ?

  • @SGaist divx player
    (then install the DivX Player and Media Server)

Log in to reply