The command I am using is this one.
It takes an MJPEG stream and saves it to WEBM for one output and another output is straight to stdout as I use it for something else.
ffmpeg -loglevel warning -reconnect 1 -f mjpeg -r 5 -i http://MJPEGURL/ -vcodec libvpx -r 5 -q:v 1 filename.webm -vf fps=1 -s 640x480 -f image2pipe pipe:1
It works great. The only issue is that when connection drops to the camera it just stitches together from where it reconnects.
I would like to add blank frames in between where it disconnects. Is there an option or a way to detect it? Then maybe i can push some data with stdin?
The purpose for adding blank frames is so that is has the proper length even if its "missing frames" from the actual stream itself.