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. make QtMultimedia work with wmf
Forum Updated to NodeBB v4.3 + New Features

make QtMultimedia work with wmf

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 3.5k 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.
  • S Offline
    S Offline
    special_eagle
    wrote on last edited by
    #1

    Hello, I built a media player with QMediaplayer and QVideoWidget, at first it did not work of course, I installed codecs (K-Lite Codec) and everything worked until a week ago ... (yes I know how strange it sounds).

    Anyway I think the error is due in some way because of using DirectShow, how can I change QT to use WMF instead?

    My player should only play MP4 files so I do not need to support special formats and using DirectShow just complicates and requires the installation of codecs (which apparently do not actually work).

    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,

      IIRC both plugins are installed, the quick way to do it is to move the directx plugin files into another folder.

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        IIRC both plugins are installed, the quick way to do it is to move the directx plugin files into another folder.

        S Offline
        S Offline
        special_eagle
        wrote on last edited by
        #3

        @SGaist said in make QtMultimedia work with wmf:

        Hi and welcome to devnet,

        IIRC both plugins are installed, the quick way to do it is to move the directx plugin files into another folder.

        Thanks for the quick reply.
        How do I find these files? What is their name and where are they located?

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

          Search for the multimedia folder under plugins in your Qt installation.

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

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            Search for the multimedia folder under plugins in your Qt installation.

            S Offline
            S Offline
            special_eagle
            wrote on last edited by
            #5

            @SGaist said in make QtMultimedia work with wmf:

            Thank you , I try it but it's not seems to reach my goal , it's still does not work until i install K-Lite Codec ...
            do you know a way i can make it work out of the box?

            D 1 Reply Last reply
            0
            • S special_eagle

              @SGaist said in make QtMultimedia work with wmf:

              Thank you , I try it but it's not seems to reach my goal , it's still does not work until i install K-Lite Codec ...
              do you know a way i can make it work out of the box?

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

              @special_eagle

              What version of Qt are you using? MinGW? MSVC?
              MinGW version does not provide binaries for WMF.
              If you are using the MSVC version, the files are located in the following path: C:\Qt\Qt5.9.1\5.9.1\msvc2017_64\plugins\mediaservice
              flies: wmfengine.dll, wmfengined.dll

              S 1 Reply Last reply
              0
              • D Devopia53

                @special_eagle

                What version of Qt are you using? MinGW? MSVC?
                MinGW version does not provide binaries for WMF.
                If you are using the MSVC version, the files are located in the following path: C:\Qt\Qt5.9.1\5.9.1\msvc2017_64\plugins\mediaservice
                flies: wmfengine.dll, wmfengined.dll

                S Offline
                S Offline
                special_eagle
                wrote on last edited by
                #7

                @Devopia53 said in make QtMultimedia work with wmf:

                flies: wmfengine.dll, wmfengined.dll

                i use msvc 32bit version.
                i deleted the directx plugin , It's looks like it not using directx anymore (logicly after i delet this files it's don't supposed to used them + in debug run i dont get the directshow errors in consule output).

                How i can know for shure that i'm on wmf?

                D 1 Reply Last reply
                0
                • S special_eagle

                  @Devopia53 said in make QtMultimedia work with wmf:

                  flies: wmfengine.dll, wmfengined.dll

                  i use msvc 32bit version.
                  i deleted the directx plugin , It's looks like it not using directx anymore (logicly after i delet this files it's don't supposed to used them + in debug run i dont get the directshow errors in consule output).

                  How i can know for shure that i'm on wmf?

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

                  @special_eagle

                  In general, after setting environment variable QT_DEBUG_PLUGINS=1, you can check if the plugin is loaded in the console output.

                  1 Reply Last reply
                  2

                  • Login

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