How To Install Mjpg-Streamer

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libjpeg8-dev imagemagick libv4l-dev
sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h
sudo apt-get install subversion
cd ~
svn co mjpg-streamer
cd mjpg-streamer
make mjpg_streamer
sudo cp mjpg_streamer /usr/local/bin
sudo cp /usr/local/lib/
sudo cp -R www /usr/local/www
sudo vi ~/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib/
source ~/.bashrc
/usr/local/bin/mjpg_streamer -i “ -f /tmp/stream -n pic.jpg”-o “ -w /usr/local/www”
sudo vi /usr/sbin/
/usr/local/bin/mjpg_streamer -i “/usr/local/lib/” -o “/usr/local/lib/ -w /var/www/stream -c username:password”
sudo chmod 755 /etc/init.d/
sudo update-rc.d defaults


Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply