Hi Francesco, On Wed, Apr 24, 2019 at 16:14:56 +0200, Francesco Piasentini wrote: > I need to extract frames every n frames. > Is there an option in ffmpeg?
Sure. There's the "select" filter, which can take any kind of complex expression. Your requirement is even documented among the examples: https://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect Every 100th frame: $ ffmpeg -i input -vf select='not(mod(n\,100))' output (Note that this will usually not speed up a video, because the timestamps are retained.) If the output muxer decides to force the same framerate as the input, and thereby duplicates your extracted frames, you can avoid that by using the "-vsync vfr" option. It might depend on your use case. Try with the above command first. :) Moritz _______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
