Install mjpeg_streamer and connect camera. I have raspbian installed
Download this project
Test camera by running ./stream.sh
If everything OK, add this to /etc/rc.local to initialize cam on boot
# Add before exit 0
# Fix path to project
./home/pi/stream-wrappers/stream.sh
On capture server
Make sure you have ffmpeg with --enable-freetype (for timestamp)
Download or clone this project
Copy config.sh.original to config.sh
After stream is up, run capture.sh
This is my cron config to force server to capture when its on
# pgrep makes sure the script is not initialized if ffmpeg is running*/30 0,1,2,18,19,20,21,22,23 *** pgrep ffmpeg > /dev/null || path-to-project/record.sh >/dev/null 2>&1