Important: Please read the Qt Code of Conduct -

Yocto QML Video Problem

  • Hi
    I use Yocto with Qml for my project. I want to use qml video. So i add following lines in my custom image file

    gstreamer1.0 \
    gstreamer1.0-meta-base \
    gstreamer1.0-libav \
    gstreamer1.0-omx \
    gstreamer1.0-plugins-bad \
    gstreamer1.0-plugins-ugly \
    gstreamer1.0-plugins-good \
    gstreamer1.0-plugins-base \
    gstreamer1.0-rtsp-server \
    libomxil \
    qtmultimedia \
    qtmultimedia-dev \
    qtmultimedia-mkspecs \

    And also i add following line in my local.conf

    PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer"

    When i use qml video, i got an error. The error is

    Error: "GStreamer encountered a general supporting library error."

    I use following code when i got an error

    Video {
                        id: video
                        width : 800
                        height : 600
                        source: "file:///"+"my video path"
                        MouseArea {
                            anchors.fill: parent
                            onClicked: {
                        focus: true
                        Keys.onSpacePressed: video.playbackState ==                                                    
    MediaPlayer.PlayingState ? video.pause() :
                        Keys.onLeftPressed: - 5000)
                        Keys.onRightPressed: + 5000)

    I can play videos on yocto by omxplayer.

    When i write " gst-play-1.0 IMG_0003.avi " command in my terminal for use gst player, i got following outputs

    Now playing /home/root/IMG_0003.avi
    ERROR GStreamer encountered a general supporting library error. for file:///home/root/IMG_0003.avi
    ERROR debug information: ../../gst-omx-1.2.0/omx/gstomxvideodec.c(2424): gst_omx_video_dec_handle_frame (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
    OpenMAX component in error state Insufficient resources (0x80001000)
    Reached end of play list.

    How can i play videos on qml? Are there any method using omxplayer for qml videos ?

  • Try adding gstreamer010.

    PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer gstreamer010"

    Cleiton Bueno

    Blog | Linkedin | B2Open

  • i solved my problem by add gpu_mem=128 line in config.txt

Log in to reply