#92 closed enhancement (fixed)
Extract all key frames from a video using ffmpeg tool
Reported by: | Benoit Fouet | Owned by: | Michael Niedermayer |
---|---|---|---|
Priority: | wish | Component: | ffmpeg |
Version: | git | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
I've been asked several times if we could make the ffmpeg command line tool able to extract all key frames from a video.
I don't think it's possible today, but may be a nice feature to have.
Change History (3)
comment:1 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 13 years ago
[As a reference for other users:] As kindly explained by Stefano Sabatini, the abovementioned -vf parameter needs to be coupled with the -vsync 0 parameter if one wants to "extract all key frames from a video" without duplicates, as is the idea behind this ticket.
Note:
See TracTickets
for help on using tickets.
Addressed in commit:
You can use the filterchain:
-vf select="eq(pict_type\,PICT_TYPE_I)"
for selecting only the I-frames to send to the output.
Note that you'll have still to decode all frames, since we currently don't have a packet-level filtering mechanism.