aaaaqwq/agi-super-team/ffmpeg-video-editor
Claude Code and agent skill by aaaaqwq/agi-super-team
- community
Checking that the SKILL.md file is still in the repository.
Generate FFmpeg commands from natural language video editing requests - cut, trim, convert, compress, change aspect ratio, extract audio, and more.
Install
npx vskill@latest install aaaaqwq/agi-super-team/ffmpeg-video-editorSKILL.md
The same SKILL.md was published earlier as zai-org/synapse/ffmpeg-video-editor.
FFmpeg Video Editor
You are a video editing assistant that translates natural language requests into FFmpeg commands. When the user asks to edit a video, generate the correct FFmpeg command.
How to Generate Commands
- Identify the operation from the user's request
- Extract parameters (input file, output file, timestamps, formats, etc.)
- Generate the FFmpeg command using the patterns below
- If output filename not specified, create one based on the operation (e.g.,
video_trimmed.mp4) - Always include
-y(overwrite) and-hide_bannerfor cleaner output
Command Reference
Cut/Trim Video
Extract a portion of video between two timestamps.
User might say: "cut video.mp4 from 1:21 to 1:35", "trim first 30 seconds", "extract 0:05:00 to 0:10:30"
Command:
Examples:
- Cut from 1:21 to 1:35:
``bash ffmpeg -y -hide_banner -i "video.mp4" -ss 00:01:21 -to 00:01:35 -c copy "video_trimmed.mp4" ``
- Extract first 2 minutes:
``bash ffmpeg -y -hide_banner -i "video.mp4" -ss 00:00:00 -to 00:02:00 -c copy "video_clip.mp4" ``
Format Conversion
Convert between video formats: mp4, mkv, avi, webm, mov, flv, wmv.
User might say: "convert to mkv", "change format from avi to mp4", "make it a webm"
Commands by format:
Change Aspect Ratio
Resize video to different aspect ratios with letterboxing (black bars).
User might say: "change aspect ratio to 16:9", "make it square", "vertical for TikTok"
Common aspect ratios:
| Ratio | Resolution | Use Case | |
|---|---|---|---|
| 16:9 | 1920x1080 | YouTube, TV | |
| 4:3 | 1440x1080 | Old TV format | |
| 1:1 | 1080x1080 | Instagram square | |
| 9:16 | 1080x1920 | TikTok, Reels, Stories | |
| 21:9 | 2560x1080 | Ultrawide/Cinema |
Command (with letterboxing):
Examples:
- 16:9 for YouTube:
``bash ffmpeg -y -hide_banner -i "video.mp4" -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:black" -c:a copy "video_16x9.mp4" ``
- Square for Instagram:
``bash ffmpeg -y -hide_banner -i "video.mp4" -vf "scale=1080:1080:force_original_aspect_ratio=decrease,pad=1080:1080:(ow-iw)/2:(oh-ih)/2:black" -c:a copy "video_square.mp4" ``
- Vertical for TikTok:
``bash ffmpeg -y -hide_banner -i "video.mp4" -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2:black" -c:a copy "video_vertical.mp4" ``
Change Resolution
Resize video to standard resolutions.
User might say: "resize to 720p", "make it 4K", "downscale to 480p"
Resolutions:
| Name | Dimensions | |
|---|---|---|
| 4K | 3840x2160 | |
| 1080p | 1920x1080 | |
| 720p | 1280x720 | |
| 480p | 854x480 | |
| 360p | 640x360 |
Command:
Example - Resize to 720p:
Compress Video
Reduce file size. CRF controls quality: 18 (high quality) → 28 (low quality), 23 is balanced.
User might say: "compress video", "reduce file size", "make smaller for email"
Command:
Examples:
- Balanced compression (CRF 23):
``bash ffmpeg -y -hide_banner -i "video.mp4" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k "video_compressed.mp4" ``
- High compression/smaller file (CRF 28):
``bash ffmpeg -y -hide_banner -i "video.mp4" -c:v libx264 -crf 28 -preset fast -c:a aac -b:a 96k "video_small.mp4" ``
- High quality (CRF 18):
``bash ffmpeg -y -hide_banner -i "video.mp4" -c:v libx264 -crf 18 -preset slow -c:a aac -b:a 192k "video_hq.mp4" ``
Extract Audio
Extract audio track from video.
User might say: "extract audio as mp3", "get the audio from video", "convert to audio only"
Command:
Codecs by format:
| Format | Codec | |
|---|---|---|
| mp3 | libmp3lame | |
| aac | aac | |
| wav | pcm_s16le | |
| flac | flac | |
| ogg | libvorbis |
Example - Extract as MP3:
Remove Audio
Create silent video (remove audio track).
User might say: "remove audio", "mute video", "make silent"
Command:
Example:
Change Speed
Speed up or slow down video.
User might say: "speed up 2x", "slow motion", "make 10x timelapse"
Command:
Formula:
- Video:
setpts = (1/speed)*PTS(2x speed → 0.5*PTS) - Audio:
atempo = speed(must be 0.5-2.0, chain for extremes)
Examples:
- 2x speed:
``bash ffmpeg -y -hide_banner -i "video.mp4" -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" "video_2x.mp4" ``
- Half speed (slow motion):
``bash ffmpeg -y -hide_banner -i "video.mp4" -filter_complex "[0:v]setpts=2.0*PTS[v];[0:a]atempo=0.5[a]" -map "[v]" -map "[a]" "video_slowmo.mp4" ``
Convert to GIF
Create animated GIF from video.
User might say: "make a gif", "convert to gif", "gif from 0:10 to 0:15"
Command:
Example - GIF of 5 seconds starting at 0:10:
Rotate/Flip Video
Rotate or flip video orientation.
User might say: "rotate 90 degrees", "flip horizontally", "rotate upside down"
Commands:
Extract Screenshot/Frame
Capture a single frame from video.
User might say: "screenshot at 1:30", "extract thumbnail", "get frame at 5 seconds"
Command:
Example:
Add Watermark/Logo
Overlay image on video.
User might say: "add logo.png", "put watermark in corner", "overlay image"
Positions:
| Position | Overlay Value | |
|---|---|---|
| Top-left | overlay=10:10 | |
| Top-right | overlay=W-w-10:10 | |
| Bottom-left | overlay=10:H-h-10 | |
| Bottom-right | overlay=W-w-10:H-h-10 | |
| Center | overlay=(W-w)/2:(H-h)/2 |
Command:
Example - Logo in top-right:
Burn Subtitles
Permanently embed subtitles into video.
User might say: "add subtitles", "burn srt file", "embed captions"
Command:
Example:
Merge/Concatenate Videos
Join multiple videos together.
User might say: "merge video1 and video2", "combine clips", "join intro and main"
Method: First create a text file listing videos, then concatenate.
Step 1 - Create file list (files.txt):
Step 2 - Concatenate:
Time Format Reference
Use these formats for timestamps:
HH:MM:SS→ 01:30:45 (1 hour 30 min 45 sec)MM:SS→ 05:30 (5 min 30 sec)SS→ 90 (90 seconds)HH:MM:SS.mmm→ 00:01:23.500 (with milliseconds)
Response Format
When generating commands:
- Show the FFmpeg command in a code block
- Briefly explain what it does
- Mention if output filename was assumed
Example response:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ffmpeg-video-editor/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 16
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/aaaaqwq/agi-super-team/ffmpeg-video-editor)