rendi-api/ffmpeg-cheatsheet/ffmpeg
- community
Checking that the SKILL.md file is still in the repository.
Use when the user asks for FFmpeg or FFprobe commands, video/audio conversion, trimming, resizing, padding, overlays, subtitles, thumbnails, GIFs, storyboards, slideshows, social-media crops, codec settings, CRF/preset tuning, stream mapping, or troubleshooting media automation pipelines.
Install
npx vskill@latest install rendi-api/ffmpeg-cheatsheet/ffmpegSKILL.md
FFmpeg
Use this skill to produce reliable, explainable FFmpeg/FFprobe commands for media automation.
Workflow
- Identify the user's source media, desired output container/codec, target dimensions/duration, and whether quality, speed, or file size matters most.
- Prefer the simplest command that meets the goal.
- Use
-c copyonly when no filtering, re-encoding, precise trimming, subtitle burn-in, compression, or codec change is needed. - Use explicit stream mapping when multiple inputs or outputs are involved.
- For commands with filters, quote the filter graph and name streams in
filter_complexwhen it improves readability. - Include
-yonly when the user wants non-interactive overwrite behavior. - Validate command intent with
ffprobeor a low-duration sample when practical.
Defaults
- Web-compatible MP4:
-c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a aac -movflags +faststart - High-quality archival H.264:
-c:v libx264 -crf 17or-crf 18 - Smaller modern MP4:
-c:v libx265 -crf 24 -vtag hvc1 -c:a aac - WebM/VP9:
-c:v libvpx-vp9 -crf 15 -b:v 0 -c:a libopus - Preserve audio when safe:
-c:a copy - Force square pixels after scale/pad/crop:
setsar=1:1 - Playback compatibility from generated images:
format=yuv420por-pix_fmt yuv420p
Common command patterns
Inspect media
Remux without re-encoding
Resize and pad to vertical 1080x1920
Frame-accurate trim
Use output seeking and re-encode for reliable exact cuts:
Use input seeking before -i only when speed matters more than accuracy.
Replace audio
Mix background music under original audio
Overlay logo for a time range
Burn subtitles
Add soft subtitle track
Thumbnail
GIF from video
Takes every second frame and accelerates playback 10x; scale=trunc(oh*a/2)*2:320 forces an even width derived from a 320px height while preserving aspect ratio. Use -loop 1 for play-once.
Gotchas
-c copycannot apply filters and is not frame-accurate for most cuts.-ssbefore-iis fast but approximate;-ssafter-iis slower but accurate.- MP4 playback in QuickTime and browsers often needs
yuv420pfor H.264 output. - Use
-movflags +faststartfor web-hosted MP4/MOV/M4A so playback starts sooner. - In filter graphs,
[0:v]means first input's video stream,[1:a]means second input's audio stream, and-mapchooses which streams become outputs. - Escaping filter expressions is shell-sensitive. Prefer single quotes inside double-quoted filter graphs for time expressions, and escape commas inside nested expressions when required.
drawtextwith special characters is fragile; prefertextfile=for user-supplied text.- Burned subtitles require re-encoding; soft subtitle tracks can often use stream copy.
When more depth is needed
Load references/command-patterns.md for additional examples and decision rules distilled from this repository's FFmpeg cheat sheet.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ffmpeg/SKILL.md
Popularity
- Repository stars
- 1,724
- Repository forks
- 109
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Jun 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rendi-api/ffmpeg-cheatsheet/ffmpeg)