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. MP4 does not play with QMediaPlayer but .VOB get play
Qt 6.11 is out! See what's new in the release blog

MP4 does not play with QMediaPlayer but .VOB get play

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.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

    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?

    mrjjM 1 Reply Last reply
    0
    • S special_eagle

      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?

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @special_eagle

      Hi
      Did you make an deployment folder for it ?

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        @special_eagle

        Hi
        Did you make an deployment folder for it ?

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

        @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

        mrjjM 1 Reply Last reply
        0
        • S special_eagle

          @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

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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 ?

          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