Is it possible to append one jpeg frame (or a small number of frames) to a video while retaining good image quality and compression? I have a script that downloads a jpeg image from a webcam every 30 seconds. I can build a video out of these frames using ffmpeg or mencoder, e.g.:
ffmpeg -f image2 -i %d.jpg out.swf
I'd like to keep this video up to date as new frames come in, but don't want to keep the computer busy re-encoding the entire video so frequently. I also worry about ffmpeg/mencoder doing something intelligent with only a single frame of new data - e.g. will it try to make each new frame a keyframe (making the video unnecessarily large)?
Any insight on how to do this sensibly would be greatly appreciated.