Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qtvideosink under QML not working on embedded target
Forum Updated to NodeBB v4.3 + New Features

qtvideosink under QML not working on embedded target

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 1.4k Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dane 0
    wrote on last edited by
    #1

    I am trying to get a QML MediaPlayer working on my embedded board (i.MX6ULL - no GPU - Qt 5.15). I have the following simple test QML:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtMultimedia 5.15
    
    Window {
        id: wnd
        width: 480
        height: 272
        visible: true
        color: "white"
    
        MediaPlayer {
            id: player
            source: "gst-pipeline: videotestsrc ! qtvideosink"
            autoPlay: true
        }
    
        VideoOutput {
            id: videoOutput
            source: player
            anchors.fill: parent
            anchors.margins: 25
        }
    }
    

    This works fine on my Desktop, and if I replace qtvideosink with fbdevsink then it works fine (although obviously renders fullscreen); also, if I do a QtWidgets based implementation then it (video) works fine; so the problem is something specific to qtvideosink under QML on the embedded target.

    I have been stepping through QtMultimedia source-code for hours trying to understand where things are going wrong, but haven't been able to solve this as yet.

    Any ideas / tips regarding how to go about debugging/fixing this issue with qtvideosink under QML?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dane 0
      wrote on last edited by
      #2

      I've just noticed that none of the OpenGL Qt examples seem to work (despite swrast being present), so right now I'm guessing that this issue has something to do with OpenGL (still investigating).

      JoeCFDJ 1 Reply Last reply
      0
      • D Dane 0

        I've just noticed that none of the OpenGL Qt examples seem to work (despite swrast being present), so right now I'm guessing that this issue has something to do with OpenGL (still investigating).

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @Dane-0 qtvideosink seems to be part of Qt Gtreamer plugin. Did you install Qt-Gstreamer?
        https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/qtvideosink_overview.html

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dane 0
          wrote on last edited by
          #4

          @JoeCFD Yes Qt Gstreamer is installed, thanks :-). As mentioned qtvideosink works fine under Widgets, just not QML.

          JoeCFDJ 1 Reply Last reply
          0
          • D Dane 0

            @JoeCFD Yes Qt Gstreamer is installed, thanks :-). As mentioned qtvideosink works fine under Widgets, just not QML.

            JoeCFDJ Offline
            JoeCFDJ Offline
            JoeCFD
            wrote on last edited by
            #5

            @Dane-0 qml has its own sink. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2qmlplayer_2main_8cpp-example.html

            Qt GStreamer is not developed anymore for quite some time. Be aware of that.

            D 1 Reply Last reply
            0
            • JoeCFDJ JoeCFD

              @Dane-0 qml has its own sink. https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2qmlplayer_2main_8cpp-example.html

              Qt GStreamer is not developed anymore for quite some time. Be aware of that.

              D Offline
              D Offline
              Dane 0
              wrote on last edited by
              #6

              @JoeCFD Thanks :-). As mentioned everything works fine on Desktop, just not embedded. I'm mainly suspecting OpenGL as the culprit at the moment - currently waiting for BuildRoot to finish building with some additional options selected.

              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