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. QVideoWidget can't play video on Windows

QVideoWidget can't play video on Windows

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

    I'm building the videoplayer example that comes with Qt 5.6.1 installation on Windows 7. When I load a mp4 video file, it says "DirectShowPlayerService::doRender: Unresolved error code 80040218". But if I build the same example with Qt5.5.1, it plays. I don't understand why. Does anyone have any clue?

    Many thanks!

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

      Hi and welcome to devnet,

      Do you have both versions of Qt currently installed ?

      AFAIK, that error might get triggered if the file was damaged.

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

      RobertWR 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you have both versions of Qt currently installed ?

        AFAIK, that error might get triggered if the file was damaged.

        RobertWR Offline
        RobertWR Offline
        RobertW
        wrote on last edited by
        #3

        @SGaist Yes, I have both Qt versions installed. What do you mean that the file was damaged? The mp4 file? It plays fine with other players. I read at somewhere that from Qt 5.6.0 QMediaPlayer uses the codec installed on system. So I installed k-lite codec pack and the file plays now. But it is rather annoying. Because basically it makes my app not working anymore for my users unless they install the required codec by themselves. Is there any way to deploy the app with codec so that my app will work out of box?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by kuzulis
          #4

          build the same example with Qt5.5.1, it plays

          then, you can just take QtMultimedia from the 5.5.1 branch and re-build && re-install to the your Qt 5.6.1 target...

          PS: QtMultimedia is a buggy module, IMHO.

          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