[FFmpeg-user] How to progressively save a file? -movflags faststart

Osama Alshaykh osama at nxtec-corp.com
Tue Feb 14 11:29:45 EET 2017

I agree with you, no one would use SIGKILL but FFMPEG is not stopping 100% of the time with SIGINT for us.  We use ubuntu and latest stable version from FFMPEG but still e have problems.


> On Feb 14, 2017, at 4:20 AM, Moritz Barsnick <barsnick at gmx.net> wrote:
> On Tue, Feb 14, 2017 at 02:50:46 -0500, Osama Alshaykh wrote:
>> What is the best approach to progressively save a file while encoding?  
>> I am encoding using x11grab and want to make sure there is an input file even if the process is not gracefully closed (example stopping it using SIGKILL).
> SIGINT or SIGQUIT qould really be better, no-one in their sane mind
> would kill a program with SIGKILL.
>> I am encoding video as h264 and using MP4 mux.
> I believe MP4 is the least suitable format for progressive saving.
> Perhaps if written as a segmented or fragmented format, each finished
> segment will be "complete", but if a single MP4 file is not finalized,
> its content cannot be read.
> Matroska (MKV) handles progressive writing fine, in my experience the
> file can be read even if the temporary header doesn't contain the
> complete information. Otherwise, MPEG-TS comes to mind as the "perfect"
> format for arbitrary cuts. (It comes with a bit of overhead though.)
> Once finished, you can always convert the .mkv or .ts file to .mp4
> afterwards, if required.
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list