Pretty printing RTCP SR in Python

veek kurien.varugis at gmail.com
Wed Dec 18 01:53:03 UTC 2019


I'm a complete gstreamer n00b so ......

I'm trying to figure out how to decode RTCP SRs emanating from an RTCP/RTP
client that is launched as follows:

gst-launch-1.0 -ve rtpbin name=rtpbin \
udpsrc caps="application/x-rtp, media=video, clock-rate=90000,
encoding-name=H264" port=5000 ! rtpbin.recv_rtp_sink_0 rtpbin. !
rtph264depay ! decodebin ! videoconvert ! autovideosink sync=true \
udpsrc port=5001   ! rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 !
udpsink port=5005 host=127.0.0.1 sync=false async=false \
udpsrc
caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)OPUS"
port=5002 ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtpopusdepay ! decodebin !
audioconvert ! queue ! autoaudiosink sync=true    \
udpsrc port=5003  ! rtpbin.recv_rtcp_sink_1    \
	       rtpbin.send_rtcp_src_1! udpsink port=5007 sync=false async=false

Right now, I'm using parse_launch to run the pipeline. 

Reading the documentation for rtpbin there appears to be some way to get a
rtcp decoder but my fu isn't sufficient to figure out how to actually
instantiate the decoder and then add it to the pipeline so that I can get
decoded SRs.

I'd be glad to share the code once it works as a public service.



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


More information about the gstreamer-devel mailing list