iMX95 based GStreamer example pipelines
| GStreamer Qt Overlay |
|---|
| Overview |
| Getting Started |
| Examples |
| Performance |
| Similar Solutions |
| Troubleshooting |
| FAQ |
| Contact Us |
Display a text overlay
gst-inspect-1.0 qtoverlay
Factory Details:
Rank none (0)
Long-name Qt Overlay
Klass Generic
Description Overlays a Qt interface over a video stream
Author <http://www.ridgerun.com>
Plugin Details:
Name qtoverlay
Description Overlay a Qt interface over a video stream.
Filename /usr/lib/gstreamer-1.0/libgstqtoverlay.so
Version 0.8.0
License LGPL
Source module gst-qtoverlay
Binary package gstqtoverlay
Origin URL http://www.ridgerun.com
GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
Created main.qml with the following content:
import QtQuick 2.0
Item {
id: root
transform: Rotation { origin.x: root.width/2; origin.y: root.height/2; axis { x: 1; y: 0; z: 0 } angle: 180 }
Text {
text: "Way cool QT imaging with GStreamer!"
font.pointSize: 30
color: "Black"
objectName: "labelMain"
}
}
Testes this pipelineto save to file:
gst-launch-1.0 -e \ videotestsrc is-live=true num-buffers=300 ! \ videoconvert ! \ qtoverlay qml=/root/qtoverlay/main.qml ! \ videoconvert ! \ v4l2h264enc ! \ h264parse ! \ matroskamux ! \ filesink location=output.mkv
Got the video and this result:
Setting pipeline to PAUSED ... ====== V4L2ENC: 1.24.7 build on Jul 1 2025 08:50:15. ====== Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock Redistribute latency... Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures. Redistribute latency... Redistribute latency... Got EOS from element "pipeline0". EOS received - stopping pipeline... Execution ended after 0:00:09.993953088 Setting pipeline to NULL ... Freeing pipeline ...
Got this result:
