Probing the element UDP source when no data exists on the port.

vk_gst venkateshkuppan26 at gmail.com
Tue Sep 18 15:17:06 UTC 2018


Hello,

I have the following pipeline at the receiver side where I receive live
video feed from a server over UDP:

udpsrc port = xxxx  ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink

I want to be notified, if the communication link between the client-server
is broken. So I did a 'add_probe' on the 'source' pad of element 'udpsrc' to
be notified for probetype - GST_PAD_PROBE_TYPE_IDLE. i.e. when there is no
data at the source, get notified. However, with this probe type, the
callback is called always. Later I tried probing for
'GST_PAD_PROBE_TYPE_IDLE | GST_PAD_PROBE_TYPE_PUSH', to see if I can get
info regarding the push from udpsrc. But the callback was never called. 
I am using python-bindings and this is how I am adding the probes:

self.srcpad.add_probe(Gst.PadProbeType.IDLE |
Gst.PadProbeType.PUSH,self.probe_cb)


Could anyone give me some pointers as to what would be the correct way to
probe, and get notified when there is no data at the source? Also, when the
data is available next time, normal operation proceeds. 

Regards




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list