* Ubuntu 10.10 Desktop on a netbook
Step 0: Is your camera working?
$ ls -i /dev | grep videoYou should see your camera listed (e.g. video0)
Step 1: Install the mjpg_streamer Debian package
a) Download with your browser: http://sourceforge.net/projects/mjpg-streamer/files/
b) Install the package (just "open" the file with the downloader) in your package manager.
c) Install more packages:
$ sudo apt-get install libjpeg-progs
Step 2: Run it
$ sudo mjpg_streamer -i "input_uvc.so -d /dev/video0 -y" -o "output_http.so -p 8090 -w /usr/www"
Step 3: View it
a) Open a browser and go to: http://localhost:8090
b) You should see a welcome and info page. Click around to see your stream.
Surprises and info:
* Where is mjpg_streamer installed?
$ which mjpg_streamer
* Where is output_http.so installed?
* Where are the web files? Did you get one of these messages?
"400 Not Found!: No file extension found"
"404 Not Found!: Could not open file"
You need to specify the location of mjpg_streamer's www files. They are installed in: /usr/www
* Why am I getting the following error?
"Unable to set format: Invalid argument
Init v4L2 failed !! exit fatal
i: init_VideoIn failed"
Your camera only supports YUV and doesn't support MJPG in hardware. Tell mjpg_streamer to do the conversion for you with the "-y" argument.