I am trying to get a UDP stream (QT4 app) and generate a pipeline using Gstreamer. I created this gst_parse_launch, which I tested and worked in CLI. But I can't get it to work in QT4.
GstElement *pipeline = gst_parse_launch("udpsrc port=1234 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink", NULL);
gst_element_set_state(pipeline, GST_STATE_PLAYING);
The CLI:
gst-launch-1.0 udpsrc port=1234 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink
works, and is able to display a GST generated window with the streamed video.
Parsing the command in QT creates a pipeline, however no playback is displayed. I am unable to see any error.
Meanwhile I have another pipeline which is created with playbin, that works with a local file. Any suggestions please?
Linux / x86