Getting stats from RTSP Client (on-ssrc-active not called)
Jonathan Thorpe
jt at jonthorpe.net
Tue May 31 13:01:55 UTC 2016
Hi All,
I am building an RTSP receiver (Python, latest repository) and while it
works fine, I seem to be having difficulty getting stats out of it. I've
been following this:
http://gstreamer-devel.966125.n4.nabble.com/How-to-best-obtain-packet-loss-statistics-from-rtspsrc-tp4674255p4674296.html
My receiver is implemented as follows:
self.pipeline = Gst.parse_launch('rtspsrc name=rtsp_source location=%s
latency=%s buffer-mode=synced ntp-time-source=clock-time ntp-sync=1
do-rtcp=true ! rtpopusdepay name=pay0 ! opusdec ! audioresample !
audioconvert ! rtpL16pay pt=10 ! application/x-rtp, pt=10,
encoding-name=L16, payload=10, clock-rate=44100, channels=2 ! udpsink
host=192.168.1.2 port=5000'
(it gets a RTSP session and then outputs RTP to a local device that accepts
raw audio).
I have the following before setting up the pipeline state to playing:
rtpsrc = self.pipeline.get_by_name('rtsp_source')
rtpsrc.connect('new-manager', self.newManager)
My callback (newManager) then tries to register a callback for
"on-ssrc-active".
rtpbin.connect('on-ssrc-active', self.onSSRCActive)
However onSSRCActive never gets called.
Is there something missing for this to work?
Kind Regards,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160531/3b8d314f/attachment.html>
More information about the gstreamer-devel
mailing list