3 seconds delay streaming MPEG2 with VLC 0.7.2

About encoding, codec settings, muxers and filter usage
Rafa Chao
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Dec 2004 10:44

3 seconds delay streaming MPEG2 with VLC 0.7.2

Postby Rafa Chao » 22 Dec 2004 14:06

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,

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 22 Dec 2004 16:27

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)

Rafa Chao
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Dec 2004 10:44

Postby Rafa Chao » 23 Dec 2004 10:24

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.

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 23 Dec 2004 13:01

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.

Rafa Chao
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Dec 2004 10:44

Postby Rafa Chao » 24 Dec 2004 08:56

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests