Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMediaPlayer fails on windows?
Qt 6.11 is out! See what's new in the release blog

QMediaPlayer fails on windows?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
15 Posts 4 Posters 6.5k Views 2 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.
  • davecotterD Offline
    davecotterD Offline
    davecotter
    wrote on last edited by davecotter
    #6

    there is a royalty-already-paid, free implementation by cisco, so it IS possible to include the binary with Qt

    and WMF does play h.264, so it is, in fact, built in to the system, just not in DirectShow

    has anyone figured out how to include a codec.dll with their app and have it "just work"? how did you do it?

    here's the bug by the way, which is marked "closed" :(. there is another version of this bug that is open, but it is low priority, and nobody has stepped up to take it on. double frowny face

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

      Including such a codec also means that you have to follow its development to keep it up to date, fix security holes etc. Then you also have to provide a way to replace it by one of the commercial alternative etc.

      You can't just include a dependency because it would be nice, there are a lot of consideration to take into account.

      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
      • davecotterD Offline
        davecotterD Offline
        davecotter
        wrote on last edited by
        #8

        i'm aware there are limitations and challenges, and i'm willing to take those on for the benefit of my users.

        but what i'm looking for are solutions. does anyone have a working solution example ?

        jsulmJ 1 Reply Last reply
        0
        • davecotterD davecotter

          i'm aware there are limitations and challenges, and i'm willing to take those on for the benefit of my users.

          but what i'm looking for are solutions. does anyone have a working solution example ?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #9

          @davecotter You should carefully read the License for this Cisco implementation before including and distributing it. Else (depending on the License conditions) you could get in troubles. I'm not lawyer and did not spend much time to read that license, but I'm really not sure it would be that easy to include it in Qt from licensing point of view. "Royalty already paid, free implementation" does NOT automatically mean you're allowed to distribute it with other software, especially open source. And don't forget that Qt is available as LGPL as well and I'm quite sure this Cisco license is NOT compatible with LGPL.
          This is the reason why Linux distributions usually do not include any proprietary codecs by default and user has to install them.
          This whole licensing topic is much more complex than many people think.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • davecotterD davecotter

            @Devopia53 it's an mp4 (h.264) file, isn't that built into the OS?

            D Offline
            D Offline
            Devopia53
            wrote on last edited by
            #10

            @davecotter

            If so, have you tested it with WMF-plugin instead of DirectShow-plugin? (If MSVC is installed.)

            1 Reply Last reply
            0
            • davecotterD Offline
              davecotterD Offline
              davecotter
              wrote on last edited by
              #11

              I'm resigned to the fact that the user will have to click to install some codec.dlls after they install my app. okay fine.
              but, so, i thought that was because h.264 was not handled by DirectShow?

              however, i just saw this:
              https://msdn.microsoft.com/en-us/library/windows/desktop/dd407173(v=vs.85).aspx

              which leads me to believe that h.264 is in fact supposed to "just work" when using DirectShow.

              Am i misunderstanding something?

              jsulmJ 1 Reply Last reply
              0
              • davecotterD davecotter

                I'm resigned to the fact that the user will have to click to install some codec.dlls after they install my app. okay fine.
                but, so, i thought that was because h.264 was not handled by DirectShow?

                however, i just saw this:
                https://msdn.microsoft.com/en-us/library/windows/desktop/dd407173(v=vs.85).aspx

                which leads me to believe that h.264 is in fact supposed to "just work" when using DirectShow.

                Am i misunderstanding something?

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #12

                @davecotter You really should check the Qt bug tracker. Your app should not crash because of missing/not working codec. There is definitely something wrong, could be a bug in Qt. You can file a bug report if there is nothing yet. Also you can ask on Qt developers mailing list - they know more about Qt internals.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • davecotterD Offline
                  davecotterD Offline
                  davecotter
                  wrote on last edited by
                  #13

                  i'm not crashing, just that h.264 gives that error in the debug log, which i totally did not expect, since it is the most modern format with hardware decoding available cross platform.

                  and yes, i'm in on the bug reports that are tracking this.

                  according to the MSDN document, h.264 is in fact a natively supported format for DirectShow, so that's why i'm confused.

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

                    Going a bit further in the h.264 linked documents here and here, I'm not sure about full support for everything you can throw in such a video file although it would be very nice.

                    Might be a silly question but can you play that file through Windows Media Player without any codec packs installed ?

                    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
                    • davecotterD Offline
                      davecotterD Offline
                      davecotter
                      wrote on last edited by
                      #15

                      yes, WMP can play h.264 files, but i'm not convinced that is a fair test, because WMP is quite savvy about choosing what back end to use to play the media you throw at it. Qt, on the other hand, is not.

                      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