MP4 does not play with QMediaPlayer but .VOB get play



  • I built a player using QMediaPlayer and QVideoWidget.

    In the debug version (When I run it inside in QT Creator) everything works (both .MP4 and .VOB), however in the release version, when I run the program without QT Creator
    I load the 2 files in the player ( MP4 and VOB), the VOB plays and the MP4 is not.

    I tried to check for errors but everything seemed normal,
    player-> mediaStatus () equals 2, player-> state () equals 1 and player-> error () equals 0, does anyone encounter such a problem and know how to solve it or how to debug it?


  • Qt Champions 2017

    @special_eagle

    Hi
    Did you make an deployment folder for it ?



  • @mrjj said in MP4 does not play with QMediaPlayer but .VOB get play:

    @special_eagle

    Hi
    Did you make an deployment folder for it ?

    Hey, I'm not sure what you mean.
    I have used the default folder option for the release version.
    After that I went over the EXE file there with:
    windeployqt -release -compiler-runtime my_file.exe

    Like I said the file run, but it manages to run in the release version (when i run it outside of Qt Creator ) only the .VOB file


  • Qt Champions 2017

    @special_eagle

    Well using windeployqt is making the deployment folder. :)

    I think you are missing some of the plugins in the plugin (sub) folder.
    if mp4 is via plugin.

    Do you test it on completely other pc ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.