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

QML Video type doesn't work with core profile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Component/s: Multimedia, Quick: Other
    • Labels:
      None
    • Environment:
      Windows 7 x64, VS 2013

      Description

      Just came across a bug, while trying to use a 'Video' Qml type in my QML offscreen renderer. Error description was 'Failed to find shader biplanaryuvvideo_core.frag' and 'Failed to find shader biplanaryuvvideo_core.vert'.

      Turns out that rendering QML to a QSurfaceFormat::CoreProfile always appends '_core' to the shader source names, and no such shaders are present in 'qtmultimedia/src/qtmultimediaquicktools/shaders'. Check QSGShaderSourceBuilder::appendSourceFile(const QString &fileName)
      which in turn calls resolveShaderPath(fileName) that does the appending of '_core'. IMHO proper solution would be to add the *_core files to the shaders in 'qtmultimedia/src/qtmultimediaquicktools/shaders'.

      Until a fix to the issue, using QSurfaceFormat::CompatibilityProfile profile, solves the issue.

        Attachments

        1. qmlvideo.zip
          4 kB
        2. qmlvideo-COMP.trace
          1.05 MB
        3. qmlvideo-CORE.trace
          794 kB
        4. Schermata 2018-12-24 alle 16.41.33.png
          Schermata 2018-12-24 alle 16.41.33.png
          1.21 MB

          Issue Links

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

            Activity

              People

              • Assignee:
                lpotter Lorn Potter
                Reporter:
                buldozer Toni Rutar Lokar
              • Votes:
                8 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes