Page 1 of 1

Delay in network stream

Posted: 01 Apr 2010 23:47
by krattai
I'm sure this has been discussed many times. It seems that the keywords I'm using to search the forums is not giving me the answers.

I am using 0.9.9a vlc and 0.8.63 and many other variations on single core 1.6GHz processors to dual core AMD and intel processors on 100mbps networks and ubuntu 8.04 to ubuntu 10.04beta and I cannot find the tweak for this.

I am using the following command line for testing:
vlc -vvv v4l2:///dev/video0 :v4l2-fps=15 :v4l2-caching=50 --sout '#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=rtp{dst=192.168.0.155,mux=ts,port=1234,rtp-caching=50}}'

I just can't seem to make any difference in the delay (latency) between the original stream timestamp and the timestamp of the receiving computer. There always appears to be about a 1.5s delay from an action on the camera to what's displaying at the recipient computer.

Does anyone know what I'm doing wrong here? If I could at least get different results (I've even set rtp-caching=5000 and tried the same with vrl2-caching and the delay is the same), then I can at least guess that I can get better than the 1.5s.

Thanks

Re: Delay in network stream

Posted: 03 Apr 2010 11:26
by RĂ©mi Denis-Courmont
Low latency with VLC < 1.0 is not really feasible. And then, as long as you transcode, you will have bad latency anyway.