Token导航 LogoToken导航TokenDH.com
开发执行命令clawhub未标认证来源可访问clear审计通过

video-frame-extractor视频帧提取器

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

4,234

周安装

180

GitHub Stars

公开资料未说明

下载量

1,483
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:video-frame-extractor(视频帧提取器)
来源仓库:https://github.com/huanghaoyu1997/video-frame-extractor
安装命令:
openclaw skills install video-frame-extractor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install video-frame-extractor

简介

从视频文件中提取帧时应该使用此技能,例如从视频生成关键帧序列、间隔创建视频缩略图等。

SKILL.md

name
video-frame-extractor
description
This skill should be used when extracting frames from video files, such as generating keyframe sequences from videos, creating video thumbnails at intervals, or preparing video frames for analysis. Triggers include requests like "extract frames from video", "sample frames every N seconds", "extract keyframes for video analysis", or "generate video thumbnail sequence".

Video Frame Extractor

Overview

This skill guides LLM agents to extract frames from video files using FFmpeg. It provides complete workflow for frame extraction including environment setup, parameter configuration, and command execution.

Primary method: FFmpeg (fast and reliable) Fallback method: OpenCV (if FFmpeg unavailable)

Workflow

Step 1: Verify FFmpeg Installation

Before extracting frames, check if FFmpeg is installed:

ffmpeg -version

If FFmpeg is not installed, see FFmpeg Installation section below.

Step 2: Determine Extraction Parameters

Before extracting frames, the LLM MUST confirm these parameters with the user:

ParameterDescriptionExample
output_pathDirectory to save extracted framesDefault: ./tmp/frames
frame_rateFrames per second to extract0.25 (1 frame every 4 seconds)
scaleShort side resize target in pixels (optional)640 (short side → 640px)

Parameter Calculation Guide:

  • To extract 1 frame every X seconds: frame_rate = 1/X
  • Example: 1 frame every 4 seconds → frame_rate = 0.25
  • Example: 1 frame every 10 seconds → frame_rate = 0.1
  • Example: 1 frame per second → frame_rate = 1

Step 3: Execute FFmpeg Command

Generate and execute the FFmpeg command:

Basic Command (no resize):

ffmpeg -hide_banner -loglevel error -i "{video_path}" -vf "fps={frame_rate}" -fps_mode vfr -q:v 2 -f image2 "{output_path}/%06d.jpg"

With Short Side Resize (recommended for analysis):

ffmpeg -hide_banner -loglevel error -thread_queue_size 512 -i "{video_path}" -vf "fps={frame_rate},scale='if(gt(iw,ih),-2,{scale}):if(gt(iw,ih),{scale},-2)':flags=lanczos" -fps_mode vfr -q:v 2 -f image2 -atomic_writing 1 "{output_path}/%06d.jpg"

Parameter Breakdown:

FlagPurpose
-hide_bannerSuppress build info
-loglevel errorQuiet mode, show only errors
-thread_queue_size 512Increase thread queue for large files
-vf "fps={rate}"Set frame extraction rate
-fps_mode vfrVariable frame rate (skip duplicates)
-q:v 2JPEG quality (1-31, lower = better)
-atomic_writing 1Atomic file write (prevent corruption)
%06d.jpgSequential naming: 000001.jpg, 000002.jpg...

Step 4: Verify Output

After extraction, verify the output:

  • Count frames: ls {output_path}/*.jpg | wc -l
  • Check frame sizes: ls -lh {output_path}/*.jpg | head -5

FFmpeg Installation

Windows

Option 1: winget (Recommended)

winget install ffmpeg

Option 2: Chocolatey

choco install ffmpeg

Option 3: Manual Download

  1. Download from: https://www.gyan.dev/ffmpeg/builds/
  2. Extract to a permanent location (e.g., C:\ ools\ffmpeg)
  3. Add to PATH: setx PATH "$PATH;C:\ ools\ffmpeg\bin
  4. Restart terminal

Verify Installation:

ffmpeg -version

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install ffmpeg

Verify Installation:

ffmpeg -version

Linux (CentOS/RHEL/Fedora)

sudo dnf install ffmpeg

macOS

brew install ffmpeg

Common Use Cases

Extract 1 frame every 4 seconds, resize to 640px

frame_rate = 0.25
scale = 640

Extract 1 frame every 10 seconds, original size

frame_rate = 0.1
scale = 0 (no resize)

Extract 1 frame per second for a 10-minute video (600 frames)

frame_rate = 1
video_duration = 600 seconds
expected_frames = 600

Output Directory Structure

Frames are saved with sequential naming:

output_path/
├── 000001.jpg
├── 000002.jpg
├── 000003.jpg
└── ...

The sequential naming (%06d) ensures frames are in temporal order regardless of original frame numbers.

Error Handling

ErrorSolution
ffmpeg: command not foundInstall FFmpeg first
No such file or directoryCheck video_path is correct
Permission deniedCheck write permissions for output_path
Output directory not emptyClear or use different output path

Notes

  • FFmpeg is much faster than OpenCV for frame extraction (10-100x)
  • The scale filter uses -2 instead of -1 to ensure dimensions are divisible by 2 (better codec compatibility)
  • -fps_mode vfr (variable frame rate) skips duplicate frames when seeking
  • Use -q:v 2 for high quality JPEG (range 1-31, default 31)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.11%
按下载量换算1,366

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install video-frame-extractor 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills