Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95541

Bad playback performance in QML compared to WebEngine or VLC when playing VP9

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.2, 6.3
    • 6.2.0 Beta2
    • Multimedia
    • None
    • Windows

      When playing content with QML it uses double the GPU usage compared to playing the same file via QWebEngine:

      import QtQuick
      import QtQuick.Window
      import QtMultimedia
      
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          color: "red"
      
          MediaPlayer {
              id: player
              source: Qt.resolvedUrl("file:///C:/Program Files (x86)/Steam/steamapps/workshop/content/672870/2396624849/videoplayback.webm")
              videoOutput: videoOutput
      
          }
      
          VideoOutput {
              id: videoOutput
              anchors.fill: parent
              Component.onCompleted: player.play()
              fillMode: VideoOutput.PreserveAspectCrop
          }
      }
      
      

      This has about 45%-55%  GPU and 12% CPU usage.

      The same wallpaper played with 5.15.2 WebEngine takes: 25%GPU and 0.7% CPU usage.

      VLC has needs about 5%-7% GPU 5% CPU.

      My setup:

      CPU - AMD 5950x

      GPU - AMD Vega VII 16GB

      I cannot attach the video (120mb) so I uploaded it to my google drive:  https://drive.google.com/file/d/1CXxshC-vB21gwKzs9XTmgRD2Jyq80qHV/view?usp=sharing

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            kelteseth Elias Steurer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes