Hi Sebastian,
<br/><br/>Which watchdog element (or pad probe) would you suggest, that would 
<br/>induce the least latency (or none, ideally)?
<br/><br/>Here are my working pipelines...
<br/><br/>Sending side:
<br/><br/>gst-launch-1.0 -v videotestsrc ! jpegenc ! rtpjpegpay ! udpsink 
<br/>host=192.168.1.100 port=5005
<br/><br/>Receiving end (in my application):
<br/><br/>GstElement* pipeline = gst_pipeline_new ("pipeline");
<br/><br/>     GstElement* videosrc  = gst_element_factory_make ("udpsrc", NULL);
<br/>     GstCaps *udp_caps = gst_caps_from_string ("application/x-rtp, 
<br/>media=(string)video, clock-rate=(int)90000, encoding-name=(string)JPEG, 
<br/>payload=(int)26");
<br/>     g_object_set (videosrc, "port", 5005, "caps", udp_caps, NULL);
<br/><br/>     GstElement* rtpjpegdepay = gst_element_factory_make("rtpjpegdepay", 
<br/>NULL);
<br/>     GstElement* decodebin = gst_element_factory_make("jpegdec", NULL);
<br/>     GstElement* videosink = gst_element_factory_make 
<br/>("caopengllayersink", NULL);
<br/><br/>     gst_bin_add_many (GST_BIN (pipeline), videosrc, rtpjpegdepay, 
<br/>decodebin, videosink, NULL);
<br/><br/>     gboolean phase1_ok = gst_element_link_filtered(videosrc, 
<br/>rtpjpegdepay, udp_caps);
<br/>     gst_caps_unref(udp_caps);
<br/>     gboolean phase2_ok = gst_element_link(rtpjpegdepay,decodebin);
<br/>     gboolean phase3_ok = gst_element_link(decodebin,videosink);
<br/><br/>Many thanks!
<br/><br/>Alexandre
<br/><br/>Le 2016-11-14 04:58, Sebastian Dröge-3 [via GStreamer-devel] a écrit :
<div class='shrinkable-quote'><br/>> On Sun, 2016-11-13 at 16:59 -0800, skryabin wrote:
<br/>> 
<br/>>> Hello,
<br/>>> 
<br/>>> I have an RTP stream UDP client/server setup, and the server side
<br/>> (receiving
<br/>>> end of the stream) is a Cocoa Mac OS X application.
<br/>>> 
<br/>>> I would like to check, using gstreamer, if the camera is currently
<br/>> sending
<br/>>> data.
<br/>>> 
<br/>>> Using:
<br/>>> 
<br/>>> ret = gst_element_set_state(pipeline, GST_STATE_PLAYING);
<br/>>> 
<br/>>> I always get GST_STATE_CHANGE_ASYNC, whether or not the client is
<br/>> sending
<br/>>> the RTP stream or not.
<br/>>> 
<br/>>> Is there any way to perform this kind of validation, using
<br/>> gstreamer? It depends on your exact pipeline. But you could always do
<br/>> something
<br/>> like adding a watchdog element somewhere in the pipeline, or a pad
<br/>> probe, to check if data is flowing regularly there.
<br/>> 
<br/>> --
<br/>> Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_top" rel="nofollow" link="external">http://www.centricular.com</a> [1]
<br/>> _______________________________________________
<br/>> gstreamer-devel mailing list
<br/>> [hidden email] [2]
<br/>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a> [3]
<br/>> 
<br/>>  SIGNATURE.ASC (981 bytes) Download Attachment [4]
<br/>> 
<br/>> -------------------------
<br/>> 
<br/>> If you reply to this email, your message will be added to the
<br/>> discussion below:
<br/>> <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-check-from-server-side-if-RTP-stream-is-coming-in-on-UDP-port-tp4680662p4680672.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/How-to-check-from-server-side-if-RTP-stream-is-coming-in-on-UDP-port-tp4680662p4680672.html</a><br/>> [5]
<br/>>  To unsubscribe from How to check from server side if RTP stream is
<br/>> coming in on UDP port?, click here [6].
<br/>> NAML [7]
<br/>> 
<br/>> Links:
<br/>> ------
<br/>> [1] <a href="http://www.centricular.com" target="_top" rel="nofollow" link="external">http://www.centricular.com</a><br/>> [2] 
<br/>> <a href="http://webmail.vovan.ca/user/SendEmail.jtp?type=node&node=4680672&i=0" target="_top" rel="nofollow" link="external">http://webmail.vovan.ca/user/SendEmail.jtp?type=node&node=4680672&i=0</a><br/>> [3] <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br/>> [4]
<br/>> <a href="http://gstreamer-devel.966125.n4.nabble.com/attachment/4680672/0/signature.asc" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/attachment/4680672/0/signature.asc</a><br/>> [5]
<br/>> <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-check-from-server-side-if-RTP-stream-is-coming-in-on-UDP-port-tp4680662p4680672.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/How-to-check-from-server-side-if-RTP-stream-is-coming-in-on-UDP-port-tp4680662p4680672.html</a><br/>> [6]
<br/>> <a href="" target="_top" rel="nofollow" link="external"> [7]
<br/>> <a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml</a></div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-check-from-server-side-if-RTP-stream-is-coming-in-on-UDP-port-tp4680662p4680676.html">Re: How to check from server side if RTP stream is coming in on UDP port?</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>