Getting stats from RTSP Client (on-ssrc-active not called)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting stats from RTSP Client (on-ssrc-active not called)

Jonathan Thorpe
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


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Getting stats from RTSP Client (on-ssrc-active not called)

Sebastian Dröge-3
On Di, 2016-05-31 at 23:01 +1000, Jonathan Thorpe wrote:
> Hi All,
>
> [...]
> 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?

That seems all ok. You'll have to check the debug logs for why it is
never called.

on-ssrc-active would be triggered by gst-plugins-
good/gst/rtpmanager/rtpsession.c whenever a receiver block is
processed. That is, whenever a SR or RR RTCP packet is received.

See rtp_session_process_rb().

Related to that you should also find things in the debug logs.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment