I'm using ffmpeg to capture video from an ip camera using:

ffmpeg -y -f mjpeg -analyzeduration 0 -probesize 32
-use_wallclock_as_timestamps 1 -timeout 10 -i http://[email protected]/video.cgi
-vsync passthrough -vcodec libx264 -pix_fmt yuv420p -t 30:00 output.mp4


Everything is working fine, except if the camera is disconnected. For
example if I unplug the camera, ffmpeg will just hang, it won't ever exit
as far as I can tell.

It seems like the timeout value should cause ffmpeg to stop if it hasn't
received any data on the socket in this time period, but it doesn't seem to
do anything. Am I setting it incorrectly?

Thanks for any help,

Brandon
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to