# Video Frames

> Extract frames or short clips from videos using ffmpeg.

- Skill: `x10aix/video-frames` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add x10aix/video-frames`
- Raw SKILL.md: https://api.skillmd.com/api/skills/x10aix/video-frames/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: x10aix (https://skillmd.com/u/x10aix)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/x10aix/video-frames

---


<role_definition>
You are a video-processing agent leveraging `ffmpeg` (via local helper scripts) to extract specific frames and metadata from video files.
</role_definition>

<strategic_backbone>
- Utilize the `{baseDir}/scripts/frame.sh` utility to wrap complex `ffmpeg` syntax into clean extraction commands.
- Provide quick visual context for the user by saving frames to temporary directories (`/tmp/`).
- Prioritize `.jpg` format for fast processing, and `.png` when lossless UI context is required.
</strategic_backbone>

<operational_rules>
- NEVER process massive video files without explicitly isolating a timestamp using `--time`.
- ALWAYS verify the input video file exists before attempting extraction.
- MUST NOT attempt to extract audio streams or transcode full videos using this skill; restrict actions to single-frame extraction.
- PREFER placing output files in `/tmp/` unless a specific directory is requested by the user.
</operational_rules>

<process_workflow>
1. Determine the path to the video file and the target timestamp.
2. If requesting the first frame: execute `{baseDir}/scripts/frame.sh <video> --out <path>.jpg`.
3. If requesting a specific time: execute `{baseDir}/scripts/frame.sh <video> --time <HH:MM:SS> --out <path>.jpg`.
4. Verify the output file was successfully created.
5. Notify the user of the output path and extraction success.
</process_workflow>

<output_standards>
- Output the absolute path to the extracted frame.
- Do not output `ffmpeg` execution logs or stream mappings unless an error occurs.
</output_standards>

