on_movie_start
Question
I have a 2 Camera setup and would like to turn On or OFF using a Simple script the action for on_movie_start.
Below is a portion of a script I currently use which just removes / or adds the ";" commenting out the line for on_movie_start in the thread file, then I have to stop motion and restart it again.
The line plays a
DingDong like a Door bell so I can leave the Shop counter and still hear when people come in.
Is there a dynamic way of doing this without stopping motion?
sed -i 's/on_movie_start/;on_movie_start/g' $MOTION/thread1.conf
echo "The door bell is OFF"
sed -i 's/;on_movie_start/on_movie_start/g' $MOTION/thread1.conf
echo "The door bell isON"
mpg321 $OPT/doorbell-2.mp3
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
SVN-r0.5.1-4:0.5.1-1ubuntu1.1 |
Libraries: |
ffmpeg, |
Server OS: |
Mint 10 |
--
KevinLucas - 27 Aug 2011
Answer