lsusb
sudo apt-get update
cd ~
mkdir tmp
cd tmp
sudo apt-get install subversion
svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer/ mjpg-streamer
cd mjpg-streamer
apt-cache search libjpeg
sudo apt-get install libjpeg8-dev
sudo apt-get install imagemagick
./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"
MJPG Streamer Version: svn rev:
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format…………: MJPEG
o: HTTP TCP port…..: 8080
o: username:password.: disabled
o: commands……….: enabled
I have seen some good results with this
./mjpg_streamer -i "./input_uvc.so -n -f 15 -r 640x480" -o "./output_http.so -n -w ./www"
but even a much higher resolution didn’t impact the actually observed frame-rate all that much:
./mjpg_streamer -i "./input_uvc.so -n -f 15 -r 1280x960" -o "./output_http.so -n -w ./www"
1
<img alt="" src="http://phobos:8080/?action=stream" width="1280" height="960" />
http://wolfpaulus.com/jounal/embedded/raspberrypi_webcam/
http://rexkingworld.blogspot.tw/2013/12/raspberry-pi-webcam-mjpeg2-webcam-server.html