RTP retransmission doesn't seem to be working with rtpbin
Describe your issue
Activating RTP re-transmission still produces choppy output, even while using the example from the doc.
I used it with audio (audiotestsrc
) and video (videotestsrc pattern=ball
) and was unsuccessful with both.
Expected Behavior
Smooth video/audio
Observed Behavior
Audio/video has noticeable choppiness
Setup
- Run both on Void Linux(musl - GStreamer 1.20.3) and Windows 10(x64 - GStreamer version 1.20.2)
Steps to reproduce the bug
Run both these commands in 2 terminals. I also tried running the server in an external VPS and still had the issue. Server:
gst-launch-1.0 rtpbin -v name=b rtp-profile=avpf audiotestsrc is-live=true ! opusenc ! rtpopuspay pt=96 ! rtprtxqueue ! b.send_rtp_sink_0 b.send_rtp_src_0 ! udpsink host=127.0.0.1 port=5000 udpsrc port=5001 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host=127.0.0.1 port=5002 sync=false async=false
Client:
gst-launch-1.0 rtpbin -v name=b rtp-profile=avpf do-retransmission=true udpsrc port=5000 caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)OPUS,payload=(int)96" ! netsim drop-probability=0.15 ! b.recv_rtp_sink_0 b. ! rtpopusdepay ! opusdec ! audioconvert ! audioresample ! autoaudiosink udpsrc port=5002 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host="127.0.0.1" port=5001 sync=false async=false
Any guidance would be greatly appreciated. Thank you for your time.