Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Yocto QML Video Problem
Forum Updated to NodeBB v4.3 + New Features

Yocto QML Video Problem

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.6k Views
  • 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.
  • A Offline
    A Offline
    Argprstest
    wrote on last edited by
    #1

    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: {
                                video.play()
                            }
                        }
    
                        focus: true
                        Keys.onSpacePressed: video.playbackState ==                                                    
    
    
    MediaPlayer.PlayingState ? video.pause() : video.play()
                        Keys.onLeftPressed: video.seek(video.position - 5000)
                        Keys.onRightPressed: video.seek(video.position + 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 ?

    1 Reply Last reply
    0
    • Cleiton BuenoC Offline
      Cleiton BuenoC Offline
      Cleiton Bueno
      wrote on last edited by
      #2

      Try adding gstreamer010.

      PACKAGECONFIG_append_pn-qtmultimedia = " gstreamer gstreamer010"
      

      Cleiton Bueno

      Blog | Linkedin | B2Open

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Argprstest
        wrote on last edited by
        #3

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

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved