[FFmpeg-user] ffmpeg video to image sequence while video file is being written

Moritz Barsnick barsnick at gmx.net
Thu Oct 15 10:13:04 CEST 2015

On Thu, Oct 15, 2015 at 12:37:40 +1000, Andrew Blake wrote:
> Can i tell ffmpeg to unpack to images at the rate of the video (so it never
> gets to the end of the file before the file is written) ..or can i tell
> ffmpeg to slow down and wait while the file is being written if it gets to
> the end?

Sure, the former. Check the "-re" input option:

‘-re (input)’

    Read input at native frame rate. Mainly used to simulate a grab
    device. or live input stream (e.g. when reading from a file).
    Should not be used with actual grab devices or live input streams
    (where it can cause packet loss). By default ffmpeg attempts to
    read the input(s) as fast as possible. This option will slow down
    the reading of the input(s) to the native frame rate of the
    input(s). It is useful for real-time output (e.g. live streaming).

Good luck,

More information about the ffmpeg-user mailing list