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. QMediaplayer 6 bad performance
QtWS25 Last Chance

QMediaplayer 6 bad performance

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmediaplayer6.2
9 Posts 2 Posters 666 Views
  • 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.
  • F Offline
    F Offline
    Faust Faust
    wrote on 29 Jun 2024, 22:30 last edited by
    #1

    I had fun building a player with QT all versions up to 5 and these players work great in every operating system and play all types of videos.
    From version 6 to the current one this is not the case.
    At first the QMediaplayer 5 does not work on Linux or Windows. Then it started working on Linux, although it had problems with every update. For better or worse it works on Linux and plays all types of videos. Recently you see some videos on Windows, but others play badly and stutter. They are videos that other players on the same computer play well and with low CPU usage (minus 1% with the version of my player based on Qt 5).
    I've been wondering for months why Media player 5 works so well and Media player 6 doesn't. I also tried changing the backend. But nothing!
    I use a translator, English is not my language, sorry.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Faust Faust
      wrote on 30 Jun 2024, 12:51 last edited by
      #2

      I meant to write "At first the QMediaplayer 6..."!

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 30 Jun 2024, 18:34 last edited by
        #3

        Hi,

        The multimedia module has seen a big rewrite. The current default backend is ffmpeg which should work pretty well.
        Do you have references for the videos that triggers these issues ?
        Are you using widgets or QtQuick ?

        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
        0
        • F Offline
          F Offline
          Faust Faust
          wrote on 30 Jun 2024, 18:41 last edited by Faust Faust
          #4

          Widgets. Works fine on Linux not Windows.
          I noticed that some versions QtQuick worked, Widgets didn't.
          None of the videos work well, some aren't even visible.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 30 Jun 2024, 19:08 last edited by
            #5

            Which exact version of Qt are you testing ?

            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
            0
            • F Offline
              F Offline
              Faust Faust
              wrote on 30 Jun 2024, 20:50 last edited by
              #6

              Currently the latest, but from 6 onwards it has never worked on Windows.
              I tested on several computers. Currently the QMediaplayer library works on Linux (previously not or badly), but not on Windows. On Linux updates often caused problems.
              Version 5 works perfectly on Windows and is able to play any video well and with minimal CPU usage!

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Faust Faust
                wrote on 1 Jul 2024, 15:21 last edited by
                #7

                From the tests I'm doing on all types of videos and encodings, it appears that players based on Qt 5 play videos better, at least on Windows, with greater fluidity, safety in repositioning, without flickering, and with minimal use of the CPU, always less than 1%.
                New technologies are not always the best!
                Let's hope the design team of the library in question manages to achieve a miracle again.
                It must be said that the ffplay player included in ffmpeg gives the same excellent results. So it's not ffmpeg that's the problem, I guess.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 1 Jul 2024, 19:31 last edited by
                  #8

                  Can you check wether you have the same issue with QtQuick ?

                  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
                  0
                  • F Offline
                    F Offline
                    Faust Faust
                    wrote on 1 Sept 2024, 01:20 last edited by
                    #9

                    The problem could be due to directx 12 and some drivers. Maybe a bug.
                    I saw that VLC also has a similar problem, but it is solved by changing the hardware encoding from automatic to directx 11.
                    It is likely and explains why 5, the integrated player of ffmpeg and other players work perfectly, with excellent performance with any video.
                    Is there a way to force the use of directx 11 in mediaplayer via code or something else?
                    How can you use the vlc library in a Qt project?

                    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