agentsclimarketplace

Run2 ffmpeg extract

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-gemini-3.1-pro-preview/video-object-counting/run2_ffmpeg-extract

Extract key frames (I-frames) from a video file into a sequence of images using FFmpeg.From its SKILL.md

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

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

SKILL.md

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

FFmpeg Keyframe Extraction

Extract key frames (I-frames) from video files using FFmpeg CLI. This is particularly useful for video analysis tasks where you only need representative frames rather than every single frame.

Prerequisites

  • FFmpeg installed and available in PATH
  • Input video file (MP4, MKV, AVI, MOV, etc.)

Methods

Method 1: Skip Non-Keyframes (Faster)

This method is highly recommended for performance as it skips decoding non-keyframes entirely.

ffmpeg -skip_frame nokey -i <input_video> -vsync vfr <output_pattern>

Options Explained:

  • -skip_frame nokey: Tells the decoder to skip non-keyframes.
  • -i <input_video>: The source video file.
  • -vsync vfr: Variable frame rate synchronization, prevents duplicate frames in the output. Note: in newer ffmpeg versions, -fps_mode vfr is preferred.
  • <output_pattern>: The filename pattern for the output, such as keyframes_%03d.png which produces keyframes_001.png, keyframes_002.png, etc.

Example

ffmpeg -skip_frame nokey -i video.mp4 -fps_mode vfr keyframes_%03d.png

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.