Camera - olliebennett/raspberry-pi-scripts GitHub Wiki

Camera

Installation

Run sudo raspi-config and check the "Enable Camera" option is ticked. Restart if needed.

Loosely based on this and other sources.

Install dependencies:

sudo apt-get install -y cmake libjpeg62-dev

Clone project:

git clone https://github.com/jacksonliam/mjpg-streamer.git

Build it!

cd mjpg-streamer/mjpg-streamer-experimental
make clean all

Run it!

export LD_LIBRARY_PATH=.
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -x 640 -y 480 -fps 30"

View it!

http://raspberrypi.local:8080/stream.html