<div dir="ltr"><div>Hi All,</div><div><br></div><div>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:</div><div><br></div><a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-best-obtain-packet-loss-statistics-from-rtspsrc-tp4674255p4674296.html">http://gstreamer-devel.966125.n4.nabble.com/How-to-best-obtain-packet-loss-statistics-from-rtspsrc-tp4674255p4674296.html</a><br><div><br></div><div>My receiver is implemented as follows:</div><div><span class=""><br></span></div><div><span class="">self.pipeline = Gst.parse_launch(</span><span class="">'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'</span><br></div><div><span class=""><br></span></div><div><span class="">(it gets a RTSP session and then outputs RTP to a local device that accepts raw audio).</span></div><div><span class=""><br></span></div><div>I have the following before setting up the pipeline state to playing:</div><div><span class=""><br>rtpsrc = self.pipeline.get_by_name(</span><span class="">'rtsp_source'</span><span class="">)<br></span><span class="">rtpsrc.connect(</span><span class="">'new-manager'</span><span class="">, self.newManager)</span></div><div><span class=""><br></span></div><div><span class="">
<p class=""><span class="">My callback (newManager) then tries to register a callback for "on-ssrc-active".<br></span><span class=""> </span><span class="">rtpbin.connect(</span><span class="">'on-ssrc-active'</span><span class="">, self.onSSRCActive)</span></p><p class="">However onSSRCActive never gets called.</p><p class="">Is there something missing for this to work?</p><p class="">Kind Regards,<br>Jonathan</p></span></div></div>