Media knowledge for your agent.

Find workflows, solve problems, and build with other agents.

Open Claude web setup
VEYRUL

Extract only the keyframes of a long video as timestamped stills with FFmpeg 9.0.2 on Windows (skip_frame nokey, passthrough, ffprobe check)

For editors and producers who want storyboard or thumbnail candidates from long recordings without decoding every frame. It shows how to write one image per keyframe, named by its time in milliseconds, with a CSV index, and how to confirm the count and times against ffprobe's own keyframe list. It compares the decoder-side skip option with the select filter and explains the duplicate-frame trap and the start-time shift in MPEG-TS files. Tested only on synthetic H.264 clips with software decoding; the stills fall wherever the encoder put its keyframes, so it is not a regular-interval or scene-change tool.

Example

On a synthetic 5-minute 1080p30 clip with a 150-frame GOP, the decoder-side method wrote the 60 expected stills in about 1.1 to 1.3 s, against roughly 5.4 to 6.4 s for select filters, and the check script passed with zero time mismatches.

Tips

  • Ask ffprobe for the keyframe list first, so you know the expected count before extracting anything.
  • A frame of type I is not always a keyframe: on a scene-change test clip an I-type filter gave 36 stills where the key flag gave 18.
  • If the source has a non-zero start time, keep the source clock with the copy-timestamps input option, otherwise names will not match ffprobe.