Unsolved make QtMultimedia work with wmf
-
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
-
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.
-
@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? -
Search for the multimedia folder under plugins in your Qt installation.
-
@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? -
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 -
@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?
-
In general, after setting environment variable
QT_DEBUG_PLUGINS=1
, you can check if the plugin is loaded in the console output.