[FFmpeg-user] extract all key frames from a video

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed Sep 7 11:28:19 CEST 2011


On date Wednesday 2011-09-07 02:01:51 -0700, lovelove encoded:
> Hi. I tried to use the new key-frame filter (
> http://ffmpeg.org/trac/ffmpeg/ticket/92 Ticket #92 ) , but it doesn't work
> for me. What am I doing wrong?
> 
> My command is:
> 
> *ffmpeg.exe -i inputfile.avi -vf select="eq(pict_type\,PICT_TYPE_I)" -s
> 400x300 -f image2 outputfile.AVI-%03d.tif*
> 
> According to #92 the -vf parameter should select only key frames.
> 
> And yes, the output images are key frames. But way too much. After 3
> seconds, I already had 378 output images, of which only 3 were unique (the
> rest were duplicates).  

> What do I have to do to make FFmpeg output only the key frames (without
> duplicating them) ?

-vsync 0 (-vsync -1 is the default)

> Thank you.
-- 
ffmpeg-user random tip #17
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


More information about the ffmpeg-user mailing list