I have set up a HTTP webcam video stream using the following configuration:
Webcam connected machine streams video to a server using RTP. The command I am using is:
Code: Select all
cvlc -v v4l2:///dev/video0 --sout='#transcode{vcodec=h264,vb=284,scale=0.5,acodec=mp4a,ab=128,channels=2,deinterface,croptop=2}:duplicate{dst=rtp{dst=<ip_addr_of_server>,port=5004,mux=ts},dst=display}'
The VLC running on server converts RTP stream into HTTP stream as follows:
Code: Select all
cvlc rtp://@<ip_addr_of_server> --sout='#std{access=http,mux=ts,dst=<ip_addr_of_server>:<server_port>}'
The configuration works and the video quality is good as long as the image is static. As soon as there is some movement in the video, the HTTP stream becomes choppy, and freezes for a few seconds. All the machines are on a local network so traffic, latency should not be the issue. Any suggestions to improve the video quality this will be appreciated!