<div dir="ltr"><div>Hi,</div><div><br></div><div>I have code to create a pipeline using UriDecodeBin.  The pipeline is created like this:</div><div><br></div><div>---------<br></div><div>        m_videoSinkElement = gst_element_factory_make("d3d11videosink", "livevsink");<br>     m_sourceElement = gst_element_factory_make("uridecodebin", "livesource");<br><br>       m_videoConvertElement = gst_element_factory_make("d3d11colorconvert", "videoconvert");<br><br>  m_pipeline = gst_pipeline_new("live-pipeline");<br><br>   gst_bin_add_many(GST_BIN(m_pipeline), m_sourceElement, m_videoConvertElement, m_videoSinkElement, NULL);<br><br> gst_element_link_many(m_videoConvertElement, m_videoSinkElement, NULL);</div><div>--------------<br></div><div><br></div><div>I am dynamically linking the rest in the "pad-added" signal handler.</div><div><br></div><div>If I use a URI along the lines of "rtsp://<a href="http://192.168.60.10/h264">192.168.60.10/h264</a>" - then all works fine.</div><div><br></div><div>I have been trying to play video directly from an existing multicast feed using a URI like the following:</div><div><br></div><div>"udp://<a href="http://239.0.0.57:5028">239.0.0.57:5028</a>"</div><div><br></div><div>Then in the "source-setup" signal handler for UriDecodeBin - I am setting the caps on the UdpSrc element like:</div><div><br></div><div>                             GstCaps* caps_obj = gst_caps_from_string("application/x-rtp,media=video,clock-rate=90000,encoding-name=H264");<br>g_object_set(source, "caps", caps_obj, NULL);<br>                             gst_caps_unref(caps_obj);</div><div><br></div><div>I never get any video showing - and looking at the "gst_debug_bin_to_dot_file" output - it shows that the UriDecodeBin output pad never gets connected to the end of the pipeline.  Setting debug break points - I can see that the "pad-added" handler never gets triggered.</div><div><br></div><div>Any help would be gratefully received. Note that the following works fine for my camera:</div><div><br></div><div>

<div>gst-launch-1.0 udpsrc uri=udp://<a href="http://239.0.0.57:5028">239.0.0.57:5028</a> caps="application/x-rtp,media=video,clock-rate=90000,encoding-name=H264" ! rtph264depay ! h264parse ! decodebin ! videoconvert ! autovideosink</div><div><br></div><div>Many thanks,</div><div><br></div><div>Gareth<br></div>

</div><div><br></div><div><br></div></div>