Page 1 of 1
3 seconds delay streaming MPEG2 with VLC 0.7.2
Posted: 22 Dec 2004 14:06
by Rafa Chao
Hi everybody,
There is a three seconds delay when i stream MPEG2 with VLC. The work conditions are:
Hauppauge 250
VLC 0.7.2
Pentium IV
Red Hat 9
The instruction is:
/usr/local/bin/vlc -vvv pvr:/dev/video0:norm=pal:size=720x576:frequency=576250:bitrate=3000000:maxbitrate=4000000 --sout udp:239.10.10.239:1239 --ttl 12 --cr-average 1000
How can i reduce the 3 seconds delay to, at least, one second?
Can anybody help me?
Thanks,
Posted: 22 Dec 2004 16:27
by markfm
On the server, add: --sout-udp-caching=30
On the client, add: --udp-caching=30
On Windows there is a --dshow-caching value -- there's probably something like a --v4l-caching option on *nix, set it to 30 also, on the server.
(use vlc --longhelp --advanced to get a console window listing all switches)
Posted: 23 Dec 2004 10:24
by Rafa Chao
Hi markfm,
I´m sending:
/usr/local/bin/vlc -vvv pvr:/dev/video0:norm=pal:size=720x576:frequency=576250:bitrate=3000000:maxbitrate=4000000 --sout udp:239.10.10.149:1234 --ttl 12 --cr-average 1000 --sout-udp-caching=30
Nothing happens. I have also tried with:
--sout-udp-caching=0
I still have 3 seconds delay.
The client is Windows XP, and the order is:
vlc.exe udp://@239.10.10.149 --udp-caching=30
Do you know where is the problem?
Thanks.
Posted: 23 Dec 2004 13:01
by markfm
My error -- I had missed that you're using the card to do the MPEG2. That's possibly the problem -- card's buffer to do the MPEG. I don't know if there's a v4l command to access the HW encoder buffer (or if the Hauppage offers such access).
The =30 stuff helps if you're doing the encoding in software on the PC itself.
Posted: 24 Dec 2004 08:56
by Rafa Chao
It´s fine markfm.
I´ll study the driver (ivtv) to see if the problem is right there, but when i tested VLS, there were no delay, using the same driver.
One question markfm, exactly the same system (that works fine) but i change the PVR 250 hauppauge with the PVR 350, doesn´t work.
Do you know the problem?
Thanks a lot