Audio synchronization between individual RTP audio streams

Vitaliy Lazarev vlazarev at
Wed Nov 3 10:37:48 UTC 2021

We have a system with one RX pipeline that is running on RPi4 and listening
to several UDP sources with different ports, and near 10 individual TXs.
All of the devices are located in the same room. TXs are sending their own
RTP stream over Wi-Fi to RX simultaneously + RTCP with SR and SDES. And
after some time due to network connection issues and other factors, these
TX audio streams are running out of audio sync (from 100ms to 1s audio lag).
We found a similar issue, and it says that if there is no RTCP connection
between RX and TXs, there will be no synchronization. But this issue is
about hosts that are not located in the same physical space.
Is RTCP usage can help to prevent audio lag between individual RTP streams
(maybe feedback with RRs)? Can it be solved only using RX side with some
manipulations with pipeline elements (rtpbin NTP/RTCP sync options), RTP
timestamps, or something?
Is this even possible to get a several milliseconds synchronization between
many RTP audio streams, that are located physically in one room?

Example of RX pipeline part:
gst-launch-1.0 -vvv audiomixer name=mixer ! autoaudiosink \
rtpbin name=rtpbin latency=200  \
udpsrc port=12500 caps="application/x-rtp, media=(string)audio,
payload=(int)96, clock-rate=(int)48000, encoding-name=(string)OPUS,
channels=2" ! rtpbin.recv_rtp_sink_0 \
rtpbin. ! rtpopusdepay ! opusdec ! mixer. \
udpsrc port=12501 ! rtpbin.recv_rtcp_sink_0 \
udpsrc port=12502 caps="application/x-rtp, media=(string)audio,
payload=(int)96, clock-rate=(int)48000, encoding-name=(string)OPUS,
channels=2" ! rtpbin.recv_rtp_sink_1 \
rtpbin. ! rtpopusdepay ! opusdec ! mixer. \
udpsrc port=12503 ! rtpbin.recv_rtcp_sink_1
Thank you,

*Vitaliy Lazarev*
Software Engineer,
notAnotherOne <>

E-mail: vlazarev at
T: +7 911 296-73-93


© 2021, NotAnotherOne Corp. Address: 8 The Green, Suite #4466, Dover, 
DE, 19901, USA, Technological singularity Company Limited, 197198, Russian 
Federation, Saint-Petersburg, Krasnogo Kursanta str. 25, lit. Zh, bld. 1, 
floor 7, suite 307. This email may contain confidential information 
protected by legal privilege. NOTANOTHERONE CORP and/or Technological 
singularity Company Limited is the proprietor of that confidential 
information. Any review, disclosure, copying, distribution and use without 
consent from proprietor are prohibited. If you are not the intended 
recipient, please notify us and delete this email and its attachments from 
your operation system and disk drive.

© 2021, ООО «Технологическая 
сингулярность», 197198, Российская Федерация, г.  Санкт-Петербург, ул. 
Красного Курсанта, д. 25, лит. Ж, этаж 7 (семь), пом. 307, NotAnotherOne 
Corp. Адрес: 8 The Green, Suite #4466, Dover, DE, 19901, USA. Данное 
электронное сообщение может содержать информацию ограниченного доступа, 
обладателем которой является Общество с ограниченной ответственностью 
«Технологическая сингулярность» и/или NOTANOTHERONE CORP. ЗАПРЕЩАЕТСЯ 
осуществлять любое ознакомление, раскрытие, разглашение, копирование, 
распространение такой информации без специального согласия ООО 
«Технологическая сингулярность» и/или NOTANOTHERONE CORP. Если Вы не 
являетесь адресатом сообщения или не имеете обязательств по защите 
конфиденциальности такой информации, пожалуйста, незамедлительно сообщите 
об этом нам и удалите настоящее письмо со всеми приложениями.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list