Log in

View Full Version : [libavcodec] insert duplicate frames in ffvhuff stream


coordz
3rd November 2008, 22:21
I'm doing some lossless video capture to hard disk using ffvhuff from libavcodec. Occasionally the hard disk can't keep up so I end up missing frames. What I would like to do is to insert a frame in the stream that has no data but just says "duplicate the last frame" so I don't have the audio and video drifting out of sync. I know that in MPEG streams there is such a flag but I'm not sure if this exists for ffvhuff. I'm using AVI as my container btw.

TIA