Jump to content

GStreamer pipelines for Qualcomm RB5 and RB6 with GstQtOverlay

From RidgeRun Developer Wiki

Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page


Previous: Examples/imx95 Index Next: Examples/Jetson






Qualcomm Platform

To test this pipelines, it is required to enable the graphics service. Please, follow the steps for bringing up the display from our Qualcomm RB5 Developer Wiki or Qualcomm Dragonwing 9075 Developer Wiki

Qualcomm RB5 / RB6 examples

Important:
The support of QtOverlay is partial. One of the requirements to make it work is to have a valid framebuffer device active (/dev/fbX). Connecting an HDMI screen to the board enables it. However, if your application does not include an HDMI output device, you may need to modify the device tree and/or graphics driver.

Before running the examples below, make sure you have set up the environment correctly.

export WAYLAND_DISPLAY=wayland-0
export XDG_RUNTIME_DIR=/usr/bin/weston_socket
export QT_QPA_PLATFORM=eglfs

If the element does not appear (gets blacklisted), please delete the cache: rm ~/.cache/gstreamer-1.0/registry.*

Now, you are able to run the following examples:

Save a video overlay using a video test source

gst-launch-1.0 videotestsrc is-live=1 ! "video/x-raw,width=1280,height=720,format=RGBA" ! qtoverlay qml=main.qml ! queue ! videoconvert ! queue ! x264enc ! h264parse ! qtmux ! filesink location=video.mp4 -e

Save a video overlay using a camera source

gst-launch-1.0 qtiqmmfsrc ! "video/x-raw,width=1280,height=720,format=NV12" ! queue ! videoconvert ! qtoverlay qml=main.qml ! queue ! videoconvert ! queue ! x264enc ! h264parse ! qtmux ! filesink location=video.mp4 -e


Qualcomm Dragonwing 9075 examples

Important:
The following examples were tested using only the board's CPU

Before running the examples below, make sure you have set up the environment correctly.

export QT_QPA_PLATFORM=wayland

If the element does not appear (gets blacklisted), please delete the cache: rm ~/.cache/gstreamer-1.0/registry.* Now, you are able to run the following examples:

The examples use the following main.qml file:

import QtQuick 2.0

Item {
    id: root
    width: 800
    height: 600

    transform: Rotation {
        origin.x: root.width / 2
        origin.y: root.height / 2
        axis { x: 1; y: 0; z: 0 }
        angle: 180
    }

    Image {
        id: pngImage
        objectName: "pngImage"
        anchors.centerIn: parent

        source: "ridgerun.png"   // Your PNG path
        fillMode: Image.PreserveAspectFit
        width: parent.width / 2
        height: parent.height / 2
    }
}

Save a video overlay using a video test source

gst-launch-1.0 videotestsrc is-live=1 ! "video/x-raw,width=1280,height=720,format=RGBA" ! qtoverlay qml=main.qml ! queue ! videoconvert ! queue ! v4l2h264enc ! h264parse ! qtmux ! filesink location=video.mp4 -e

Save a video overlay using a camera source

gst-launch-1.0 qtiqmmfsrc ! "video/x-raw,width=1280,height=720,format=NV12" ! queue ! videoconvert ! qtoverlay qml=main.qml ! queue ! videoconvert ! queue ! v4l2h264enc ! h264parse ! qtmux ! filesink location=video.mp4 -e


Previous: Examples/imx95 Index Next: Examples/Jetson



Cookies help us deliver our services. By using our services, you agree to our use of cookies.