[FFmpeg-user] How to extract 1 frame as JPEG per minute
Ulf Zibis
Ulf.Zibis at gmx.de
Wed Dec 19 23:17:07 EET 2018
Much thanks!
Am 17.12.18 um 22:52 schrieb Carl Eugen Hoyos:
>
> There is a select filter, as an alternative you can use the output
> option "-r" with a fraction as operand, "-r 1/60".
With
ffmpeg -i CYD.mp4 -vf select='not(mod(n\,1500))' CYD_%03d.jpg
I got 150,000 pictures with reduced quality (~12 kB). Weird!!!
But with
ffmpeg -i CYD.mp4 -r 1/60 CYD_%03d.jpg
I got 78 pictures with good quality (~70 kB).
Picture CYD_001.jpg and CYD_002.jpg were black, CYD_003.jpg was frame
00:00:53. Also a little weird, the video is 1:16:20 long. but I can live
with that.
-Ulf
More information about the ffmpeg-user
mailing list