[FFmpeg-user] extract frames every n frames
francescopiasentini at gmail.com
Fri Apr 26 15:54:07 EEST 2019
it worked out very well:
.\ffmpeg -i input.wmv -ss 00:00:12.000 -vf select='not(mod(n\,7))' -vsync
vfr -compression_algo raw -pix_fmt rgb24 output.tiff -hide_banner
is there the possibility to have a grayscale 8bit output?
Il giorno gio 25 apr 2019 alle ore 00:57 Moritz Barsnick <barsnick at gmx.net>
> 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:
> 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. :)
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user