agentsclimarketplace

Run2 ffmpeg keyframes

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

[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.

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.

What its author says it does

Copied from the file, not written here

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

SKILL.md

1.1 KB, 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

Keep looking

Skills are one crate of 328,083. 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.