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

Stas Oskin stas
Mon Jun 19 22:57:53 CEST 2006


Hi.

 

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
questions:

 

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

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, etc)?

 

Thanks a lot,

Stas.





More information about the ffmpeg-devel mailing list