AGENT SKILL

ffmpeg-frame-extraction

Use ffmpeg to extract key frames (I-frames) from a video file into a directory.

License 许可
MIT
最近更新
2026-10-02
Stars
★ 92
Forks
7

01 前言 Front Matter

name
ffmpeg-frame-extraction
description
Use ffmpeg to extract key frames (I-frames) from a video file into a directory.

03 SKILL.md 正文

FFmpeg Frame Extraction

To extract key frames (I-frames) from a video file using FFmpeg, use the following command:

ffmpeg -i input_video.mp4 -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync vfr output_folder/keyframes_%03d.png
  • -i input_video.mp4: Input video file.
  • -vf "select='eq(pict_type,PICT_TYPE_I)'": Video filter to select only key frames.
  • -vsync vfr: Variable frame rate to match input frame rate but only save selected frames.
  • output_folder/keyframes_%03d.png: Output pattern for filenames.

04 同仓库更多 Skills