0

I would like to stream my webcam through network,

I'm using the following command

vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout="#transcode{vcodec=h264,vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/live.ts}" -I dummy

I tested in the same network and I have around 10s delay. For me is acceptable the 1,2s delay. Is there any other solution which is faster? If I'm using two VLC(in the same computer) one for streaming one for playing still I have the same delay. Is it possible to reduce this delay using vlc or other solution?

Mokus
  • 4,502

1 Answers1

1

if you are streaming over LAN, you could try using the networked X11 protocol directly instead. Try connecting from the remote machine with "ssh -C -X user@remotehost" ("C" for compression, consider removing if your network is fast). Now, in the remote shell session, you can show the webcam by i.e. "mplayer -vo x11 v4l2://". A lower resolution over networked X11 will probably get you less delay.