webcam from gstreamer

v4l2src -> videoconvert -> glupload -> glcolorconvert -> qml6glsink
This commit is contained in:
2026-04-04 20:15:25 +02:00
parent 9cedf69d08
commit ec30e64417
9 changed files with 675 additions and 1 deletions

35
poc006/qml/main.qml Normal file
View File

@@ -0,0 +1,35 @@
// file: poc-qt/poc006/qml/main.qml
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0
ApplicationWindow {
visible: true
width: 960
height: 700
title: "POC006 - GStreamer qml6glsink"
color: "black"
GstGLQt6VideoItem {
id: video
objectName: "videoItem"
anchors.fill: parent
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 48
color: "#66000000"
Text {
anchors.centerIn: parent
color: "white"
text: "POC006 - webcam preview via GStreamer qml6glsink"
}
}
}