Streaming a webcam with minimal latency
Posted: 24 Nov 2009 20:58
I've been working on a "robot" project that consists of a netbook on a wheel base. I want to be able to drive the robot using another laptop and a joystick. I want to be able to use the netbook's internal webcam to send back a video feed to my main laptop. I'm using Video For Linux 2 to capture the webcam, HTTP to stream, and VLC on both computers. I only need video so audio streaming isn't important. I also am using WiFi (locally) so bandwidth should not be an issue. The main issue I'm having is that there is roughly a 5 second lag time between the webcam and the display (on the laptop). The camera is working fine because VLC on the netbook shows it with no lag, so the lag is introduced during the transfer.
I know VLC has options that cache data to improve performance, but I am concerned about seeing what the netbook sees in real time and don't care if the video is slightly choppy. The frame rate seems to be very good whenever I tried it, just the video was delayed. What options (both on the serving PC and the receiving PC) must be changed to eliminate or reduce the lag?
I know VLC has options that cache data to improve performance, but I am concerned about seeing what the netbook sees in real time and don't care if the video is slightly choppy. The frame rate seems to be very good whenever I tried it, just the video was delayed. What options (both on the serving PC and the receiving PC) must be changed to eliminate or reduce the lag?