Page 1 of 1

http stream with big delay

Posted: 05 Nov 2012 10:13
by severinikos
Dear guys,

I created and HTTP stream from my local sound card to may other PCs using VLC.

Here is my syntax:

START vlc.exe -vvv dshow:// --sout=#transcode{vcodec=none,acodec=mpga,ab=256,channels=2,samplerate=44100}:http{dst=:8080/stream.mp3} --sout-keep --live-caching 100 --network-caching 100

It works very well, except the big delay on the other PCs when playing.
Do you have any ideas how this can be improved?

Thanks.
Severin

Re: http stream with big delay

Posted: 05 Nov 2012 11:52
by Jean-Baptiste Kempf
How big?

Re: http stream with big delay

Posted: 05 Nov 2012 13:14
by Rémi Denis-Courmont
Reduce caching on the receiver.

Re: http stream with big delay

Posted: 06 Nov 2012 08:04
by severinikos
delay is around 3 seconds
I have already tried to set --live-caching 100 --network-caching 100 on the receiver, but no improvements....

Re: http stream with big delay

Posted: 06 Nov 2012 09:13
by Rémi Denis-Courmont
Well, there's also --sout-mux-caching on the server too. After that one, you will need to improve the code to further reduce latency.

Re: http stream with big delay

Posted: 06 Nov 2012 12:01
by severinikos
thanks, with --sout-mux-caching 100 the delay seems to be only 1-2 seconds any more.
I also set --live-caching 100 --network-caching 100 on the client site, but no improvements....

Any other ideas?

Thanks.

Re: http stream with big delay

Posted: 06 Nov 2012 12:23
by Rémi Denis-Courmont
As I said, you've reached the point where tuning parameters won't help. The code needs to be improved.

Re: http stream with big delay

Posted: 07 Nov 2012 12:09
by severinikos
alright, what do you suggest?

Re: http stream with big delay

Posted: 07 Nov 2012 14:33
by Rémi Denis-Courmont
Benchmarking and fixing the worse latency bottlenecks in the source code.

Re: http stream with big delay

Posted: 08 Nov 2012 09:56
by kostyan
Did you try --clock-jitter=0? Not sure if it is relevant in your case but I think that without this option, the client might increase the size of the cache dynamically.