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

[REG 6.2.2 - 6.2.3] Video is always black with OpenGL RHI

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Done
    • 6.2.3
    • 6.3.0 Beta2, 6.4.0 Beta1
    • Multimedia
    • None
    • Windows 10
    • Windows
    • 8afe5d160c (qt/qtmultimedia/dev) 02e96fca6c (qt/qtmultimedia/6.3) eb47e12fd8 (qt/qtmultimedia/6.2) 1f9c392668 (qt/qtmultimedia/dev) dc879d2ad2 (qt/qtmultimedia/6.3) 14758a8ea3 (qt/qtmultimedia/6.2) 14758a8ea3 (qt/qtmultimedia/6.2.4)

    Description

      There is a regression from Qt 6.2.2 - video is not rendered at all (always black frames) when OpenGL RHI backend is used.

          QQuickWindow::setGraphicsApi(QSGRendererInterface::OpenGL);
      

      Most probably caused by https://codereview.qt-project.org/c/qt/qtmultimedia/+/383609.

      There are also runtime warnings during video playback

      Could not register D3D9 texture in OpenGL
      Texture from QVideoFrame is 0, this cannot be right
      Failed to initialize QRhiTexture wrapper for native texture object 0
      Could not register D3D9 texture in OpenGL
      Texture from QVideoFrame is 0, this cannot be right
      Failed to initialize QRhiTexture wrapper for native texture object 0
      Could not register D3D9 texture in OpenGL
      Texture from QVideoFrame is 0, this cannot be right
      Failed to initialize QRhiTexture wrapper for native texture object 0
      ...
      

      This is critical for apps that use QtWebEngineQuick because it hardcodes QSGRendererInterface::OpenGL internally.

      Attachments

        1. image-2022-02-01-11-21-35-436.png
          image-2022-02-01-11-21-35-436.png
          5 kB
        2. qtdiag.log
          9 kB
        3. untitled.zip
          2.00 MB

        Issue Links

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

          Activity

            People

              piotr Piotr Srebrny (Inactive)
              studiosus Vladimir Belyavsky
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: