Last active
August 29, 2015 14:00
-
-
Save mikerr/6c711fa57203766027ea to your computer and use it in GitHub Desktop.
get mjpeg streamer working on pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libjpeg8-dev imagemagick libv4l-dev | |
sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h | |
wget http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip | |
unzip mjpg-streamer-code-182.zip | |
cd mjpg-streamer-code-182/mjpg-streamer | |
make mjpg_streamer input_file.so output_http.so | |
sudo cp mjpg_streamer /usr/local/bin | |
sudo cp output_http.so input_file.so /usr/local/lib/ | |
sudo cp -R www /usr/local/www | |
raspistill --nopreview -w 640 -h 480 -q 5 -o /dev/shm/pic.jpg -tl 200 -t 9999999 -th 0:0:0 & | |
LD_LIBRARY_PATH=/usr/local/lib mjpg_streamer -i "input_file.so -f /dev/shm -n pic.jpg" -o "output_http.so -w /usr/local/www" | |
http://localhost:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment