Running MJPG Streamer on Raspberry Pi 2

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

sudo tar xvzf mjpg-streamer.tar.gz

sudo apt-get install libjpeg8-dev

sudo apt-get install imagemagick

cd mjpg-streamer/mjpg-streamer


Final Execution:

Connect your camera and run the following command.

sudo ./mjpg_streamer -i “./ -y -r 320×240” -o “./ -w ./www”

Test it on local browser:


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:


Posted in camera, development boards and tagged , .