ffmpeg-keyframe-extraction
Automates key frame extraction from video files using FFmpeg.
Install
mkdir -p .claude/skills/ffmpeg-keyframe-extraction && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6184" && unzip -o skill.zip -d .claude/skills/ffmpeg-keyframe-extraction && rm skill.zipInstalls to .claude/skills/ffmpeg-keyframe-extraction
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Extract key frames (I-frames) from video files using FFmpeg command line tool. Use this skill when the user needs to pull out keyframes, thumbnails, or important frames from MP4, MKV, AVI, or other video formats for analysis, previews, or processing.Key capabilities
- →Extract I-frames from video files
- →Support for MP4, MKV, AVI, and MOV formats
- →Filter frames by type
- →Generate image sequences
- →Control output quality
How it works
It utilizes FFmpeg CLI filters or skip-frame flags to identify and export I-frames based on presentation timestamps.
Inputs & outputs
When to use ffmpeg-keyframe-extraction
- →Generating video thumbnails
- →Extracting video frames for analysis
- →Creating preview frames from MP4 or AVI files
About this skill
FFmpeg Keyframe Extraction
Extract key frames (I-frames) from video files using FFmpeg CLI.
Prerequisites
- FFmpeg installed and available in PATH
- Input video file (MP4, MKV, AVI, MOV, etc.)
Methods
Method 1: Select Filter (More Control)
ffmpeg -i <input_video> -vf "select='eq(pict_type,I)'" -vsync vfr <output_pattern>
Method 2: Skip Frame (Faster)
ffmpeg -skip_frame nokey -i <input_video> -vsync vfr <output_pattern>
Key Options
Option Description
-i <file> Input video file
-vf "select='eq(pict_type,I)'" Filter selecting only I-frames
-skip_frame nokey Skip decoding non-keyframes (performance)
-vsync vfr Variable frame rate, prevents duplicates
-q:v <n> Quality (1-31, lower = better, for JPEG)
-frame_pts 1 Use presentation timestamp in filename
Output Patterns
frame_%03d.png - PNG sequence (frame_001.png, frame_002.png...)
frame_%03d.jpg - JPEG sequence
frame_%d.bmp - BMP sequence
Examples
Basic PNG extraction:
ffmpeg -i video.mp4 -vf "select='eq(pict_type,I)'" -vsync vfr keyframe_%03d.png High-quality JPEG:
ffmpeg -i video.mp4 -skip_frame nokey -vsync vfr -q:v 2 keyframe_%03d.jpg With timestamps:
ffmpeg -i video.mp4 -vf "select='eq(pict_type,I)'" -vsync vfr -frame_pts 1 keyframe_%d.png
To specific directory:
ffmpeg -i video.mp4 -vf "select='eq(pict_type,I)'" -vsync vfr ./output/keyframe_%03d.png
## Notes
Method 2 (-skip_frame nokey) is faster as it skips decoding non-keyframes
Method 1 offers more filtering flexibility (can combine with other filters)
Keyframe frequency depends on video encoding settings
Use -vsync vfr to avoid duplicate frames in output
When not to use it
- →When extracting non-key frames
- →When video encoding lacks I-frames
Prerequisites
Limitations
- →Keyframe frequency depends on original video encoding
- →Requires FFmpeg installation
How it compares
It automates frame extraction compared to manually scrubbing video files to capture individual frames.
Compared to similar skills
ffmpeg-keyframe-extraction side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| ffmpeg-keyframe-extraction (this skill) | 1 | 2mo | Review | Beginner |
| jianying-editor | 38 | 2mo | Review | Advanced |
| vectcut-api | 11 | 6mo | Review | Advanced |
| klingai-camera-control | 1 | 26d | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by benchflow-ai
View all by benchflow-ai →You might also like
jianying-editor
luoluoluo22
剪映 (JianYing) AI自动化剪辑的高级封装 API (JyWrapper)。提供开箱即用的 Python 接口,支持录屏、素材导入、字幕生成、Web 动效合成及项目导出。
vectcut-api
sun-guannan
VectCutAPI is a powerful cloud-based video editing API tool that provides programmatic control over CapCut/JianYing (剪映) for professional video editing. Use this skill when users need to: (1) Create video draft projects programmatically, (2) Add video/audio/image materials with precise control, (3) Add text, subtitles, and captions, (4) Apply effects, transitions, and animations, (5) Add keyframe animations, (6) Process videos in batch, (7) Generate AI-powered videos, (8) Integrate with n8n workflows, (9) Build MCP video editing agents. The API supports HTTP REST and MCP protocols, works with both CapCut (international) and JianYing (China), and provides web preview without downloading.
klingai-camera-control
jeremylongshore
Manage control camera movements in Kling AI video generation. Use when creating cinematic effects, dynamic shots, or specific camera movements. Trigger with phrases like 'klingai camera', 'kling ai camera motion', 'klingai cinematic', 'klingai pan zoom'.
klingai-batch-processing
jeremylongshore
Process multiple video generation requests efficiently with Kling AI. Use when generating multiple videos or building content pipelines. Trigger with phrases like 'klingai batch', 'kling ai bulk', 'multiple videos klingai', 'klingai parallel generation'.
mmx-cli
Anhvu1107
ALWAYS use this when the request matches MMX CLI: Use mmx to generate text, images, video, speech, and music via the MiniMax AI platform.
smartest-tv
Hybirdss
Control a smart TV or open streaming content in the browser. Play Netflix episodes/movies, YouTube videos, Spotify music — on TV or in browser (--tv browser). Also handles volume, power, notifications, history, 'continue watching', scenes, recommendations, cast URLs, queue, and multi-TV management.