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. Supported video formats on windows ?

Supported video formats on windows ?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 7.7k Views
  • 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.
  • E Offline
    E Offline
    Ernest Galbrun
    wrote on 7 Jun 2013, 07:52 last edited by
    #1

    I am using qMediaplayer to read videos with QT 5.0.2 using visual studio 2010/2012 on windows 7 64 bits.

    I have much trouble reading some videos. It works fine for .wmv or .mp4 files, but I get an error when trying yo play .avi: error 1, "Media session serious error". The codecs for the video are presents on my computer I guess since I have no problem reading it with any other video player. I have no clue what I should look into to fix this, I have never worked with video before, can someone help me ?

    I have tested the examples shipped with qt and they lead to the same result, I get an error when I try to play the .avi file but it plays other formats well.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 7 Jun 2013, 09:34 last edited by
      #2

      i'm not an expert on this, but i know that it should use "Windows Media Foundation" on Windows.
      Does the video play with your Windows Media Player?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • E Offline
        E Offline
        Ernest Galbrun
        wrote on 7 Jun 2013, 09:39 last edited by
        #3

        Yeah absolutely, it is correctly read with Windows Media Player and vlc.

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Ernest Galbrun
          wrote on 27 Jun 2013, 07:47 last edited by
          #4

          Maybe an idea how I should investigate this issue ?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maximus
            wrote on 24 Oct 2013, 04:04 last edited by
            #5

            I would like to know if you fixed the problem with .avi playback. I have the same problem with the example found at :
            http://qt-project.org/doc/qt-5.1/qtmultimediawidgets/videowidget.html
            on windows 7, .avi are not playing same error


            Free Indoor Cycling Software - https://maximumtrainer.com

            1 Reply Last reply
            0
            • R Offline
              R Offline
              raven-worx
              Moderators
              wrote on 24 Oct 2013, 06:24 last edited by
              #6

              maybe "this thread":http://qt-project.org/forums/viewthread/33232/ helps a bit?

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0
              • M Offline
                M Offline
                maximus
                wrote on 24 Oct 2013, 15:48 last edited by
                #7

                Thanks for your help raven

                It seems there are other options that are already made :
                QtAV
                https://github.com/wang-bin/QtAV
                I can run the player.exe but having some issue with sound and video slowdown at the moment.

                Vlc-Qt
                http://projects.tano.si/vlc-qt
                [edit]: Just tried, really easy to set up, got it to work in 10min, best option so far!

                QMediaPlayer
                Works for some format (.mp4), but can't get to work .avi, .mkv even when they work in windows media and I have the codecs installed for them on my computer? Would be an easy/lightweight option If it could pick up the codecs or find a way to package the codecs with it


                Free Indoor Cycling Software - https://maximumtrainer.com

                1 Reply Last reply
                0
                • C Online
                  C Online
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on 24 Oct 2013, 21:46 last edited by Chris Kawa
                  #8

                  Visual Studio flavor of Qt uses Media Foundation (as raven-worx said) and these are the suported formats.

                  As for the .avi it is supported but .avi is really just a container that can hold an unsupported audio or video codec. That's why some .avi files might play and some others won't. Check what is the video/audio codec on your files and see if they're supported.

                  There is also second media backend for Windows that uses DirectShow, and so anything that you have system codecs installed for. This backend is used in the MinGW flavor of Qt and on WindowsXP (because it doesn't have Media Foundation), so if that's an option for you you might try that.

                  From what digia guys said on the mailing list there's a plan to implement a dynamic backend selection to best match the backend to the file at hand. This task is tracked as QTBUG-32783 so you might want to watch it. It's targeted for Qt 5.2 but I don't know if recent beta already has it or not.

                  1 Reply Last reply
                  1

                  • Login

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