I am trying to get live video to play on my custom board using Qt5 and gstreamer. When I try to run my simple video app, streaming a live rtsp source I get the following:
BTW, gst-launch rtspsrc location=rtsp://localhost:554/live.sdp ! fakesink works, so I have a good stream.
root@imx6dl-slimline:~# /usr/bin/qt5/qmlscene video.qml
(qmlscene:1357): GStreamer-CRITICAL **: gst_object_ref_sink: assertion 'object != NULL' failed
No m_videoSink available!
(qmlscene:1357): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
I see that there is no m_videoSink available in my software set which is key to displaying the video stream
I poked around for some sort of patch that would fix my m_videoSink problem and found:
[meta-qt5] QtGstreamer recipe with patches for IMX6 support. - Patchwork
It looked like a reasonable solution. It took a little effort, but I manage to build it and install the qtgstreamer package on my system.
I still get the above assertion.
Any thoughts?
[QTBUG-44251] Add wayland support to QGstreamerVideoWidget - Qt Bug Tracker
hope this link is useful for you.