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. QtMultimedia backend on Windows
Forum Updated to NodeBB v4.3 + New Features

QtMultimedia backend on Windows

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 10.7k 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.
  • A Offline
    A Offline
    adler.robert
    wrote on last edited by
    #1

    Hi!

    I want to use Qt5 with QtMultimedia on Windows 7. But the codecs for video and audio is limited to my Windows, QtMultimedia uses DirectShow for his work. Is there a possibiliy to use libav or gstreamer as a backend for QtMultimedia to have a huge number of supported codecs? My goal is to write a Qt-based software which can run on different Windows machines and understand different video formats indepented of the systems installed codecs. Currently I use Qt4.8 and gstreamer directly. I'm looking for a way to do this with QtMultimedia.

    Thanks,
    Robert Adler

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      I suspect you need to bundle codecs just as VLC does. But I'm far from being an expert in this area :)

      (Z(:^

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        may this an option for you?"
        "VLClib in Qt":http://wiki.videolan.org/LibVLC_SampleCode_Qt

        --- 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
        • A Offline
          A Offline
          adler.robert
          wrote on last edited by
          #4

          The idea with VLClib is not so bad. But it is the same way I'm currently using gstreamer with QtGStreamer. I'm lookung for a possibility to use gstreamer/vlclib as backend for QtMultimedia on Windows.

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            why do you depend on QtMultimedia exactly?

            --- 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
            • A Offline
              A Offline
              adler.robert
              wrote on last edited by
              #6

              Don't really depend. Just the idea to use it as a simple framework and tell it what backend to use.

              1 Reply Last reply
              0
              • raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                so you could use VLClib and write a simple QtMultimedia-like wrapper around it if that is more convenient for you?

                --- 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
                • A Offline
                  A Offline
                  adler.robert
                  wrote on last edited by
                  #8

                  I think that would be the solution. I looked into QtMultimedia src code. On Linux it uses gstreamer as backend, on Windows DirectShow. Perhaps I can port the code for the linux plugin to Windows.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    smokex
                    wrote on last edited by
                    #9

                    It doesn't use DirectShow on Windows. It uses crappy WMF which is why it hardly plays any videos. I think a DirectShow back end is being worked on (http://comments.gmane.org/gmane.comp.lib.qt.devel/12033) but I just tested and WMF is still being used with 5.1.

                    https://www.ohloh.net/accounts/smokexyz

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MuldeR
                      wrote on last edited by
                      #10

                      Relying on a multi-media framework like DirectShow or MediaFoundation is highly unreliable! That's because what Video, Audio and Container formats work or do not work solely depends on what Filters (or Plugins, or Codecs, or however you like to call it) happen to be installed on the individual computer. Also, for the very same format, different Filters may be existent and those may not all behave in the same way, making the result highly unpredictable - even when the "required" Filter for format XYZ happens to be installed. Finally, some Filter combinations may work well, others may not. Overall, you want to keep away from that nightmare as far as you can.

                      I would highly recommend you go for a proper "all-in-one" solution that works "out-of-the-box" and does not rely on any external Plugins, Filters, Codecs or whatsoever. Your best bet in that regard is libavcodec/libavformat from FFmpeg project, which decodes pretty much everything you may need! However these libraries, while extremely powerful, are not easy to use. And they have a tendency to break the API in regular intervals ;-)

                      If you want something that just works, grab MPlayer. That's one big stand-alone binary that plays pretty much everything. And, despite it is a separate (console) program, it integrates nicely into GUI programs. Look at SMPlayer for an example. Note that SMPlayer is based on Qt.

                      "Here you can see some screenshots from SMPlayer":http://smplayer.sourceforge.net/images/screenshots/mainwindow.png

                      My OpenSource software at: http://muldersoft.com/

                      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

                      Go visit the coop: http://youtu.be/Jay...

                      1 Reply Last reply
                      1
                      • S Offline
                        S Offline
                        smokex
                        wrote on last edited by
                        #11

                        I have been watching this project with great interest:
                        http://sourceforge.net/projects/qtav
                        It's a proper "all-in-one" solution that works out of the box on at least all of the major desktop systems. It doesn't rely on any external Plugins, Filters, etc. And it is a wrapper around FFmpeg and Port Audio.

                        https://www.ohloh.net/accounts/smokexyz

                        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