I am trying to synchronize two audio streams sent over RTP and am not getting the results i hoped for.
I have three devices where the system time is synchronized using PTP. Two of these devices are are running an RTP server streaming sampled audio to a RTP client running on the third device. On the RTP server devices i have synchronized the sampling clock to PTP. I have measured the sampling time and system clock to be synchronized with an accuracy better than 100 ns.
If i connect the same signal generator output to both servers and listen to the received streams on the RTP client device, there are phase differences in the ms range. The phase difference is changing with each RTCP packet.
Below is my RTP server and client setup. It is based on information found on this list. I would like to know if any of you can see some obvious mistakes.
The RTP servers are an C implementation of the pipelines