Using VLC to Unicast High Definition Webcam over local gigabit LAN with low/zero delay

Posted by Robin Day on Super User See other posts from Super User or by Robin Day
Published on 2011-02-24T14:09:06Z Indexed on 2011/02/24 15:26 UTC
Read the original article Hit count: 207

Filed under:
|
|

We're setting up a webcam "window" between two offices in the same buildilng.

The two PC's are connected to the same gigabit switch.

We're using VLC to stream the webcam over HTTP using the following commands.

vlc dshow:// :dshow-caching="0" :dshow-size="640x480" :sout=#transcode{vcodec=h264,vb=0,scale=0}:http{mux=ffmpeg{mux=flv},dst=:8080/} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

vlc http://192.168.0.1:8080 :http-caching="0"

Even with the caching set to zero, the delay in the image is a good 2-3 seconds. The CPU usage of each pc is also maxed. I'm guessing it's the transcoding that's causing much of the delay.

Can anyone give me some changes to these command lines that will reduce the transcoding power, or send the webcam over a different protocol, or anything that will reduce the delay of the cameras?

Bandwidth is not an issue at all as the pc's can be connected to a dedicated switch/vlan if required.

© Super User or respective owner

Related posts about streaming

Related posts about webcam