Page 1 of 1

RTP stream with low latency

Posted: 11 Dec 2012 22:24
by pacman88
Hi

i am trying to do some multi-room audio streaming and therefore need to have the stream outputs in sync (it sounds awkward when audio is out of sync while changing from one zone to another). I tried to do this using VLC and rtp streaming which works fine so far. What bothers me is that there is a delay of about 3 seconds between doing a skip of play/pause on the server and the reaction of the clients. Since this is all on the local LAN (gigabit/300mbit WLAN) i think that it should be possible to reduce the caching without facing packet loss. I just don't know how to achieve this in VLC - is there any setting for it?

currently i invoke the server using:
vlc -vvv file.mp3 --sout '#rtp{dst=224.1.1.1,port=1234}'
and the client:
vlc rtp://224.1.1.1:1234

so is there an option to get the delay reduced?

regards
alex

Re: RTP stream with low latency

Posted: 11 Dec 2012 22:44
by RĂ©mi Denis-Courmont
There are multiple buffers involved that can be reduced in size. But no matter what: the delay will be noticeable, and there are no warranties of synchronization between receivers.

In fact, synchronizing audio to an acceptable level for human perception through the network is nearly impossible. You should either make sure there is very little interference between the different rooms so desync is not noticed, or run analog cables from a single PC to all speakers.

Re: RTP stream with low latency

Posted: 12 Dec 2012 09:43
by pacman88
Hi

Thanks for your fast answer - i am completely aware that there will be a noticeable delay - but i would like to shorten it as much as possible.

I thought that multicast RTP is intended to do exactly that - sync between multiple clients? Routing analog cables is not an option in this case so it has to be done via network streaming - i will have to do some testing to get it synchronized as good as possible. Do you have any hints on which wheels to turn in order to optimize synchronization and latency?

Regards Alex

Re: RTP stream with low latency

Posted: 03 Feb 2014 07:49
by alexkarnaukhov
Sorry for necroposting, but may be it will be usefull for someone else:
to keep synchronization between different VLC instances and achieve minimal latency, I think "clock-jitter=0" should help.