I have a problem
I'm recording a stream from my ip webcam (and storing it to a server but that's not the issue right now). the command looks something like this
ffmpeg -f mjpeg -i http://ip.ad.dd.res/videostream.cgi?user=recorder&pass=recorder ...
everything works fine however if I loose connection to the camera the process hangs and doesn't reconnect when the connection comes back up. Is there a way to set some "connection lost" timeout after which the ffmpeg process would die? something along the lines "if a new frame isn't received in xy seconds die". thanks for any suggestions.