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

FFmpeg cannot correctly capture a screenshot of a QT6 app using D3D rendering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8.3
    • Qt RHI
    • None
    • Windows 11
    • Windows

      Use the following command to create a screenshot of a simple Qt6 app on Windows (rendering with D3D by default): 
      ffmpeg.exe -f gdigrab -framerate 30 -i title="QML Window" -vframes 1 output.png 

      you can find the it will not work.

       

      Attached qml app:

      import QtQuick
      import QtQuick.Controls

      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")

          Text

      {         text:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"     }

      }

        1. d3dwindow.zip
          6 kB
        2. ScreenTest.cpp
          27 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            lagocs Laszlo Agocs
            fr0001 FRANK Lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes