Python udp sink caps
Arnold Angerer
arnold.angerer at smartalliance.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=192.168.2.255 port=5000|grep udpsink0
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264,
sprop-parameter-sets=(string)\"Z2QAKaw05QFAFuhAAZdOwExLQCPGDEWA\\,aO68sA\\=\\=\",
payload=(int)96, ssrc=(uint)208075323, clock-base=(uint)2277718220,
seqnum-base=(uint)3716
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()
Arnold
More information about the gstreamer-devel
mailing list