[FFmpeg-user] Extract N evenly spaced images from a video

Moritz Barsnick barsnick at gmx.net
Tue Feb 17 22:03:59 CET 2015


On Tue, Feb 17, 2015 at 20:20:57 +0000, Carl Eugen Hoyos wrote:
> I suspect that -vf fps=1 works slightly better 
> because it doesn't copy the first frame.

Alternatively, you could use a filter to select exactly every N-th
frame, regardless of (potentially variable) frame rate:

E.g. every 25th frame:
$ ffmpeg [...] -vf "select=e=not(mod(n\,25))" [...]

Moritz


More information about the ffmpeg-user mailing list