I'm trying to set up video surveillance. One of the ideas is to run a camera only during specific hours (when nobody is at home). Currently I have the following script for ffserver stream:
I understand how to make it start up at some time. But how to kill it in the end from cron?
And because of shutting down camera at some point - my whole console gets spammed with messages
Is there any way to keep the user.err intact and only forward messages from motion to a specific file? Currently had to disable the whole *.err.
Code:
# cat webcam2ffserver.sh
#!/bin/sh
ffmpeg=/usr/local/bin/ffmpeg
env LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so $ffmpeg -f video4linux -s 640x480 -r 5 -i /dev/video0 http://127.0.0.1:8090/webcam1.ffm
I understand how to make it start up at some time. But how to kill it in the end from cron?
And because of shutting down camera at some point - my whole console gets spammed with messages
Code:
Feb 12 19:58:40 <user.err> xxx motion: [2] v4l_start: set input [8]
Feb 12 19:58:50 <user.err> xxx motion: [2] Retrying until successful connection with camera
Is there any way to keep the user.err intact and only forward messages from motion to a specific file? Currently had to disable the whole *.err.