ffmpeg
Use this skill for media processing with ffmpeg/ffprobe — inspect, convert, trim, resize, compress, extract frames/audio, replace audio, mute, make GIFs, add…
Skill by Matrixx0070
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/matrixx0070-ffmpeg
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ffmpeg
What's inside
- Skill name
ffmpeg- Description
- Use this skill for media processing with ffmpeg/ffprobe — inspect, convert, trim, resize, compress, extract frames/audio, replace audio, mute, make GIFs, add subtitles/overlays, and combine videos. Triggers on 'combine these videos', 'merge my clips', 'join these videos together', 'put them end to end', 'stitch the clips into one video', 'concatenate these files', 'make one long video from these parts', 'append the second video to the first', 'chain these videos', 'compress video', 'extract audio', 'resize video', 'make gif', 'remove audio', 'thumbnail', 'storyboard', 'slideshow', 'social-media crop', 'codec settings', 'crf', 'preset', 'stream mapping', 'ffmpeg troubleshooting'.
- License
- MIT
- Instructions
- 313 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- recipes.md · references/
SKILL.md (first lines)
# FFmpeg Skill for Computer-Use Agents
Process media files with ffmpeg and ffprobe. This skill adds agent-specific safety rules and decision logic on top of ffmpeg knowledge the model already has.
For additional recipes (convert, remux, extract audio, replace audio, remove audio, GIF, subtitles, overlays, and more), see `references/recipes.md`.
---
## Safety Policy
### No-overwrite default
Use `-n` unless the user explicitly asks to overwrite.
```bash
ffmpeg -n -i "$INPUT" [output options] "$OUTPUT"
```
If overwriting is explicitly requested, use `-y`.
### Temp-file workflow
Write to a temporary file with the same extension as the intended output, verify, then rename:
```bash
# Derive temp path preserving the target extension
TMP_OUTPUT="${OUTPUT%.*}.tmp.${OUTPUT##*.}"
ffmpeg -n -i "$INPUT" [output options] "$TMP_OUTPUT" &&
ffprobe -v error "$TMP_OUTPUT" &&
mv "$TMP_OUTPUT" "$OUTPUT"
```
### Other rules
- Quote all file paths.
- Only use local file paths with `-i`. Do not pass user-supplied URLs directly to ffmpeg/ffprobe without validating the protocol (stick to `file://` or bare paths).
- Do not delete the input file unless the user explicitly requests it.
- After generating output, verify with `ffprobe`.
- Clean up temp directories after successful operations.
---
## Inspect First
Always probe unknown media before complex operations:
```bash
# Human-readable
ffprobe -hide_banner -i "$INPUT"
# Machine-readable JSON
ffprobe -v error -show_format -show_streams -of json "$INPUT"
# Quick queries
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$INPUT" # duration
ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "$INPUT" # resolution
ffprobe -v error -show_entries stream=index,codec_type,codec_name -of table "$INPUT" # codecs
```
---
## Decision Tree: Copy vs Re-encode
### Use `-c copy` when
- Changing container only (e.g. `.mkv` to `.mp4`)
- Removing or extracting a stream
- Approximate keyframe-aligned trim
- Avoiding quality loss
```bash
ffmpeg -n -i "$INPUT" -c copy "$OUTPUT"
```
### Re-encode when
- Resizing, cropping, padding, rotating
- Applying any `-vf` or `-af` filter
- Changing codec, frame rate, or pixel format
- Frame-accurate trim required
- Web/browser compatibility required
### Audio codec decision
| Goal | Audio option |
|------|-------------|
| Preserve source audio exactly | `-c:a copy` (may not be compatible with all containers) |
| Web-compatible MP4 | `-c:a aac -b:a 128k` (always safe) |
| Audio for transcription | `-vn -acodec pcm_s16le -ar 16000 -ac 1` |
When the target is a web-compatible MP4, prefer `-c:a aac` over `-c:a copy` -- copied audio may retain a codec the browser cannot play.
---
## Web-Compatible MP4 Defaults
```bash
ffmpeg -n -i "$INPUT" \
-c:v libx264 -crf 23 -preset medium -threads 4 \
-c:a aac -b:a 128k \
-pix_fmt yuv420p \
-movflags +faststart \
"$OUTPUT"
```
Always include `-threads 4` when re-encoding. Without it, ffmpeg uses all CPU cores, which causes severe contention when multiple agents run concurrently.
| Profile | Codec | CRF | Preset | Audio | Notes |
|---------|-------|-----|--------|-------|-------|
| General (default) | libx264 | 23 | medium | aac 128k | Best compatibility |
| High quality | libx264 | 18 | slow | aac 192k | Archival, mastering |
| Smaller file | libx264 | 28 | medium | aac 96k | |
| Minimum size | libx264 | 32 | slow | aac 64k | |
| Modern smaller MP4 | libx265 | 24 | medium | aac 128k | Add `-vtag hvc1`; less compatible, smaller files |
| WebM/VP9 | libvpx-vp9 | 15 | n/a | libopus | Add `-b:v 0`; web-native, slow encode |
When the user does not specify a codec, default to H.264 (libx264). Use H.265/VP9 only when the user asks for smaller files or specifies these codecs.From Matrixx0070/xclaw, MIT.
More from Matrixx0070/xclaw
- 0.529score
imagemagick
Matrixx0070
Use this skill for image processing with ImageMagick — resize, crop, convert format, add watermark/text, composite, annotate, adjust colors, create…
SkillBFreshness: BClaude Code +9 - 0.529score
pdf
Matrixx0070
Read, create, and transform PDF files.
SkillBFreshness: BClaude Code +9 - 0.529score
skill-installer
Matrixx0070
Install skills from GitHub repositories into the local skills directory.
SkillBFreshness: BClaude Code +9 - 0.524score
memory-edit
Matrixx0070
Online memory edit policy for deciding what to store, update, or delete in a user's memory.md file.
SkillBFreshness: BClaude Code +9 - 0.524score
tasks
Matrixx0070
Create, list, pause, resume, run, and inspect results of XClaw automations (scheduled prompts).
SkillBFreshness: BClaude Code +9 - 0.524score
mcp
Matrixx0070
You have access to connected apps despite the internet setting.
SkillBFreshness: BClaude Code +9 - 0.521score
skill-creator
Matrixx0070
Guide for creating and updating skills that extend the agent's capabilities.
SkillBFreshness: BClaude Code +9 - 0.520score
image-gen-edit
Matrixx0070
Use this skill when replying with a generated or edited image — when a post asks to create, generate, edit, modify, restyle, combine, or stitch images, or…
SkillBFreshness: BClaude Code +9 - 0.519score
host-capabilities
Matrixx0070
Use when checking what CLIs and conversion tools exist on the host (ffmpeg, ImageMagick, pandoc, tesseract, magika, LibreOffice, markitdown) or when choosing…
SkillBFreshness: BClaude Code +9 - 0.504score
xlsx
Matrixx0070
Use this skill any time a spreadsheet file is the primary input or output.
SkillBFreshness: BClaude Code +9 - 0.504score
color
Matrixx0070
Use this skill when the user needs help with color in any project — choosing palettes, checking accessibility/contrast, generating shade scales, avoiding…
SkillBFreshness: BClaude Code +9 - 0.504score
pptx
Matrixx0070
Use this skill any time a .pptx file is involved as input or output — create, read, edit, combine, or split presentations, decks, and slides.
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 12, 2026 (2 months ago)
- Last release
- Sep 9, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Matrixx0070/xclaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Matrixx0070
- 0.529score
pdf
Matrixx0070
Read, create, and transform PDF files.
SkillBFreshness: BClaude Code +9 - 0.529score
imagemagick
Matrixx0070
Use this skill for image processing with ImageMagick — resize, crop, convert format, add watermark/text, composite, annotate, adjust colors, create…
SkillBFreshness: BClaude Code +9 - 0.529score
skill-installer
Matrixx0070
Install skills from GitHub repositories into the local skills directory.
SkillBFreshness: BClaude Code +9 - 0.524score
mcp
Matrixx0070
You have access to connected apps despite the internet setting.
SkillBFreshness: BClaude Code +9 - 0.524score
memory-edit
Matrixx0070
Online memory edit policy for deciding what to store, update, or delete in a user's memory.md file.
SkillBFreshness: BClaude Code +9 - 0.524score
tasks
Matrixx0070
Create, list, pause, resume, run, and inspect results of XClaw automations (scheduled prompts).
SkillBFreshness: BClaude Code +9
Cite this page
ffmpeg skill. Agent Mart. https://agentmart.dev/skills/matrixx0070-ffmpeg (last updated 2026-10-24)