Page 1 of 1

Streaming excessive delay

Posted: 08 Feb 2007 08:28
by iperich
Hi gurus. I have the following issue:

I stream from a webcam to my internet vlc server this way:

:sout=#transcode{acodec=none,vcodec=WMV2,vb=64,scale=1}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=X.X.X.X:XXXX}}

Everything works ok, I have a 1-2 sec stream delay in the server (acceptable).

The server do this:

vlc -vvv udp://@:XXXX --sout '#standard{access=mmsh,mux=ogg,dst=X.X.X.X:YYYY}'

trying to let another people from other part view the webcam streaming from the internet server.

The final streaming has a desesperatly unacceptable 10 sec. delay. Obviously the problem is between the server and the final client. I was doing transcoding, now I'm not. I have tried changing the caches, etc. The delay is exactly the same.
I have did this tests all from my home, so I stream the webcam from my laptop, and receive the final stream in my desktop. With 3 or 4 secs delay i would be happy.

Some ideas??

Thanks in advice

iperich

Posted: 12 Feb 2007 01:20
by iperich
i changed the mux to asf and the delay reduced to 6 - 7 secs. Still unacceptable, but is better now... The server is a 2- Dual Xeon (4 cores) and is definetily not a slow machine. The connection is very fast too and I am streaming 64kbps. Where can I find some information about delay issues with vlc?

thanks

Posted: 12 Mar 2007 20:48
by iperich
I can't believe I'm the only one with this problem... ?
I have searched on the web and i didn't find any solution to this problem...

Nobody can help?????

Posted: 13 Mar 2007 20:56
by pjwhite
check things like --sout-udp-caching, the default is .5 of a second of something, and since you stream twice you get built up delays, and the second server is essentially acting like a client so it buffers as well... so you get two server and two client buffers...

so on the servers: --sout-udp-caching 20 --will make the sending buffer 20 ms

on the input side: --udp-caching 20 --will make the recieving buffer 20ms

should help

Posted: 16 Mar 2007 20:40
by iperich
it reduced well the time of the input udp stream, but the mms stream has all the delay.... now I have 5 seconds....
there is no way to reduce the "mms sout caching"?
I read the "longhelp advanced" and i saw nothing about it...

Delays...

Posted: 18 Mar 2007 17:01
by kikocuas
I'm trying hte same thing, but I just take the stream for the webcam, transcode and send to a intranet. I always have 1.5 seconds of delay, I tried to reduce cache down to 5ms but that doesn't solve anything. So, Can I reduce this delay in other way?