[Ffmpeg-devel] FW: Re-opening media file after crash and continuing writing to it

Stas Oskin stas
Tue Jun 20 12:56:49 CEST 2006



I'm trying to implement a functionality which will re-open an incomplete
video file after the program has crashed, and continue to write to it. It
seems as libavcodec truncates the file on opening thought, which brings 2


1)       Is there any way to prevent the libavcodec from truncating the

2)       If not, what is the best way to copy video frames from the old file
to a new one, preserving all the info (timestamps, PTS/DTS, etc)?


Thanks a lot,


More information about the ffmpeg-devel mailing list