Running MJPG Streamer on Raspberry Pi 2
MJPG Streamer is a simple and straightforward video streamer, but it is faster than most streamers, so this may be ideal for your remote control projects in which real-time video feed is important for Video monitoring and control. Here I am using a Logitech C270 USB webcam.
Installing MJPG Streamer on Raspberry Pi 2:
sudo apt-get update
sudo apt-get upgrade
sudo wget http://lilnetwork.com/download/raspberrypi/mjpg-streamer.tar.gz
sudo tar xvzf mjpg-streamer.tar.gz
sudo apt-get install libjpeg8-dev
sudo apt-get install imagemagick
cd mjpg-streamer/mjpg-streamer
make
Final Execution:
Connect your camera and run the following command.
sudo ./mjpg_streamer -i “./input_uvc.so -y -r 320×240” -o “./output_http.so -w ./www”
Test it on local browser:
http://localhost:8080
If you are connecting a LAN cable with Raspberry Pi2 you can check the output in some other PC which is available in the same network.
For more queries:
info@adhiratech.com
080-23240875