[FFmpeg-user] extract frames every n frames

Moritz Barsnick barsnick at gmx.net
Fri Apr 26 16:15:39 EEST 2019

On Fri, Apr 26, 2019 at 14:54:07 +0200, francesco piasentini wrote:
> Thanks Moritz!
> 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?

Sure. You can just change the "-pix_fmt" argument to "gray", that will
create 8 bit gray, and it will be handled properly by the tiff muxer.

You can see all available "pixel formats" by:

$ ffmpeg -pix_fmts
(Not every output codec/format supports every "pixel format", of


More information about the ffmpeg-user mailing list