Python udp sink caps

Arnold Angerer arnold.angerer at
Wed Jun 4 08:31:26 PDT 2014

Hi, I need to get the caps string from the following commandline in a 
python application.

gst-launch-0.10 -v filesrc location=/home/arnold/Videos/serenity.mp4 ! 
qtdemux name=demux demux.video_00 ! queue ! rtph264pay pt=96 ! udpsink 
host= port=5000|grep udpsink0

/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = 
application/x-rtp, media=(string)video, clock-rate=(int)90000, 
payload=(int)96, ssrc=(uint)208075323, clock-base=(uint)2277718220, 

I'm not quite sure how to get the desired output from python.
The sink element in my code is called udpsink0.

I was thinking along the lines of something like this, but this just 
prints "ANY":

for i in self.udpsink0.sink_pads():
                 print i.get_caps()


More information about the gstreamer-devel mailing list