I'm struggling to understand exactly what your setup is but what ever
it is you have to do it so that a log file is generated. Maybe
/var/log/messages will contain the string you need.  I start ffmpeg
with an init.d script called 'stream', and this script creates a pid
file at /var/run/stream.pid and also starts a log at
/var/log/stream.log. In monit.conf I have this:

check process stream with pidfile /var/run/stream.pid
       start program = "/etc/init.d/stream start" with timeout 10 seconds
       stop program = "/etc/init.d/stream stop &&"


and I also have this in monit.conf:

check file <filename>.log with path /path/to/<filename>.log
     if match "<certain text string in the log file>" then exec "<command>"

you would have to change <filename>.log to the log that your using
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to