Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
if pgrep mjpg_streamer > /dev/null
echo "mjpg_streamer already running"
LD_LIBRARY_PATH=/opt/mjpg-streamer/ /opt/mjpg-streamer/mjpg_streamer -i " -fps 15 -q 50 -x 640 -y 480" -o " -p 9000 -w /opt/mjpg-streamer/www" > /dev/null 2>&1&
echo "mjpg_streamer started"

This comment has been minimized.

Copy link
Owner Author

@karaage0703 karaage0703 commented Oct 25, 2015

For Raspberry Pi + Raspbian(Jessie) + Raspicam(Camera Module)
mjpg streamer script

At first, install mjpg-streamer for raspicam

$ sudo apt-get update
$ sudo apt-get install cmake
$ git clone mjpg-streamer
$ cd mjpg-streamer/mjpg-streamer-experimental
$ make
$ cd ..
$ sudo mv mjpg-streamer-experimental /opt/mjpg-streamer
$ git clone stream
$ cd stream
$ chmod 755
$ sudo cp /usr/local/bin/
$ stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment