agentsclimarketplace

Run2 ffmpeg keyframes

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-claude-sonnet-4-6/video-object-counting/run2_ffmpeg-keyframes

Extract I-frame keyframes from video files using FFmpeg CLI, saving as zero-padded PNG sequences starting at 001.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_ffmpeg-keyframes

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.1 KB, 274 tokens by cl100k_base, as published. Nobody here has run it

FFmpeg Keyframe Extraction

Prerequisites

  • FFmpeg installed: sudo apt install ffmpeg

Extract Keyframes (I-frames) as PNG Sequence

ffmpeg -i <input_video> -vf "select='eq(pict_type,I)'" -vsync vfr <output_dir>/keyframes_%03d.png

Example

ffmpeg -i /root/super-mario.mp4 -vf "select='eq(pict_type,I)'" -vsync vfr /root/keyframes_%03d.png

Output

  • Files named: keyframes_001.png, keyframes_002.png, ..., up to total keyframe count
  • Files are in RGB color (PNG format, 3-channel)
  • Frame index starts at 001
  • Timeline order is preserved (sorted by video timestamp)

Key Flags

  • -vf "select='eq(pict_type,I)'" — selects only I-frames (keyframes)
  • -vsync vfr — avoids duplicate frame output

Notes

  • The number of keyframes depends on the video's encoding (GOP size)
  • PNG output is lossless and RGB by default
  • To list extracted files in order: ls /root/keyframes_*.png | sort

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.