Motion JPEG/Notes
Jump to navigation
Jump to search
Failed building instructions
Build:
sudo apt-get install libjpeg8-dev imagemagick wget "http://sourceforge.net/projects/mjpg-streamer/files/latest/download" -O mjpg-streamer_latest.tar.gz tar xvzf mjpg-streamer_latest.tar.gz cd mjpg-streamer-* # may need to fix videodev.h below... make
Fix videodev.h: [1] (DIDN'T WORK!)
cd /usr/include/linux sudo ln -s ../libv4l1-videodev.h videodev.h
Fix videodev.h #2 (also didn't work)
apt-get install linux-libc-dev find . -name "*.c" -exec sed -i 's#linux/videodev.h#linux/videodev2.h#g' {} \; find . -name "*.h" -exec sed -i 's#linux/videodev.h#linux/videodev2.h#g' {} \;
Failed to compile due to the videodev.h issue!
References:
- Stream Video from the Raspberry Pi Camera to Web Browsers, Even on iOS and Android - miguelgrinberg.com - http://blog.miguelgrinberg.com/post/stream-video-from-the-raspberry-pi-camera-to-web-browsers-even-on-ios-and-android
- Raspberry Pi camera board video streaming » Miguel Mota | Web Developer - http://miguelmota.com/blog/raspberry-pi-camera-board-video-streaming/