mjpg-streamer on raspberrypi

http://sourceforge.net/projects/mjpg-streamer/

svn address svn checkout svn://svn.code.sf.net/p/mjpg-streamer/code/ mjpg-streamer-code

required packages
apt-get install libv4l-dev
apt-get install libjpeg8-dev
apt-get install imagemagick

compile

cd mjpg-streamer-code/mjpg-streamer
make USE_LIBV4L2=true clean all
make DESTDIR=/usr install

run mjpg-streamer

mjpg_streamer -i "/usr/lib/input_uvc.so -d /dev/video0  -r 640x480 -f 1" -o "/usr/lib/output_http.so -p 8090 -w www/"

./mjpg_streamer -i "./input_uvc.so -r 120*90 -f 30" -o "./output_file.so -f ./install/ -m aa.mjpg"

cat start.sh for more using details

error & solution

convert: not found 是因为没有装imagemagick包

performance on raspberrypi

120*90, 14fps

640*480, 14fps
960*720, 15fps

ref

http://www.linuxcircle.com/2013/02/06/faster-video-streaming-on-raspberry-media-server-with-mjpg-streamer/

你可能感兴趣的:(Stream)