Skip to content

Instantly share code, notes, and snippets.

@wasimosmanhome
Last active February 7, 2022 00:10
Show Gist options
  • Save wasimosmanhome/ddb504ce1217e831b9ab0d02be29c0d1 to your computer and use it in GitHub Desktop.
Save wasimosmanhome/ddb504ce1217e831b9ab0d02be29c0d1 to your computer and use it in GitHub Desktop.
MJPG-Streamer.sh
# https://www.sigmdel.ca/michel/ha/rpi/streaming_en.html
sudo apt-get install cmake libjpeg9-dev -y
wget https://github.com/jacksonliam/mjpg-streamer/archive/master.zip
unzip master.zip
cd mjp*g-*
cd mjpg-*
make
sudo make install
cd $home
which mjpg_streamer
ls /usr/local/lib/mjpg-streamer
ls /usr/local/share/mjpg-streamer/www
# mjpg_streamer -i "input_uvc.so --help"
# mjpg_streamer -o "output_http.so --help"
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -n -f 30 -r 1920x1080" \
#http://100.85.161.76:8080/?action=stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment