<div dir="ltr">Hi Team,<div><br></div><div>GStreamer newbie here!! My application is a remote control for a pseudo-digital HF radio. Mac OS 10.15.7, GST top-of-tree + 1.20 binary install.</div><div><br></div><div>I have a pipeline pair (client/server) including a jitter buffer that works fantastic using UDP/RTP only (ie not RTSP.) Nice audio but it's not routable.</div><div><br></div><div>Thanks to Nirbheek I found RTSP Server. Using a similar pipeline, without jitterbuffer, my compiled Rtsp Server (based on the example code) works fine, but latency and fidelity is poor. </div><div><br></div><div>I tried introducing the rtpjitterbuffer but this seg faults my rtsp server app. After several days of debugging through the code, I'm beginning to suspect that the GStreamer RTSP server code expects the <font face="monospace">rtp{x}pay</font> to be the final element in the pipeline.</div><div><br></div><div>On the server side, this works (but with bad latency)</div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">"osxaudiosrc device=66! audio/x-raw, rate=48000 ! audioresample ! audio/x-raw, rate=44100 ! rtpL16payname=pay0"</span></p></div><div><br></div><div>However, adding the rtpjitterbuffer after the payloader fails with Seg Fault 11:</div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">"osxaudiosrc device=66! audio/x-raw, rate=48000 ! audioresample ! audio/x-raw, rate=44100 ! rtpL16payname=pay0 ! rtpjitterbuffer mode=synced"</span></p></div><div><br></div><div>Looks like the code is trying to create a ghost pad on rtpL16pay, but the src pad is already linked (presumably) to the rtpjitterbuffer, and therefore <font face="monospace">gst_rtsp_media_create_stream()</font> fails on this line:</div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">streampad = gst_ghost_pad_new (name, pad); (rtsp-media.c:2434)</span></p></div><div><br></div><div>because the pad is already linked (presumably) to the rtpjitterbuffer.</div><div><br></div><div>This results in a Seg Fault shortly thereafter b/c streampad is 0x0.</div><div><br></div><div>Is my analysis anywhere near on target? Is this a supported operation? Suggestions/comments welcome!</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div><div><br></div></div>