Hello, I have a qmlsink structure, I connect it to an rtsp link and GstGLVideoItem in the qml section and give it as a parameter to the qmlsink structure in the cpp file. While the first structure works properly, there is no problem while transferring the image in the incoming broadcast link, but I create another qmlsink structure from this qmlsink structure, the class names and qmlsink name will be different, I connect the qml section to the second structure in the same way, but the image does not come to the second structure. Can you help me with how to show 2 different broadcast addresses in 2 different frames with a multiple qmlsink structure?
QString pipelineDescription = QString(
"rtspsrc location=rtsp://127.0.0.1:8554/stream !
"rtph264depay ! "
"h264parse ! "
"decodebin ! "
"videoconvert ! "
"queue ! "
"glupload ! "
"glcolorconvert ! "
"qmlglsink name=video_sink sync=false"
).arg(url);
GstElement *videoSink = gst_bin_get_by_name(GST_BIN(pipeline), "video_sink");
if (!videoSink) {
qCritical() << "Failed to find qmlglsink in pipeline.";
gst_object_unref(pipeline);
pipeline = nullptr;
return;
}
-----2. Qmlsink structures-----
"rtspsrc location=rtsp://192.168.12.87:8554/stream ! "
"rtph264depay ! "
"h264parse ! "
"decodebin ! "
"videoconvert ! "
"queue ! "
"glupload ! "
"glcolorconvert ! "
"qmlglsink name=termal_sink sync=false"
).arg(url);
GstElement *videoSink = gst_bin_get_by_name(GST_BIN(pipeline), "termal_sink");
if (!videoSink) {
qCritical() << "Failed to find qmlglsink in pipeline.";
gst_object_unref(pipeline);
pipeline = nullptr;
return;
}
How can I send images from 2 different addresses to 2 different qmlsink structures at the same time? Why does the image come to the first structure but not to the second structure?
@Joe