video-editor
Skill17 starsChanged 4 months agoMITView on GitHub
Expert guidance for video editing with ffmpeg, encoding best practices, and quality optimization. Use when working with video files, transcoding, remuxing, encoding settings, color spaces, or troubleshooting video quality issues.
19 other projects use a version of this.
Adopted by
Most recently taken up by
- orage-developers/skills-editortheir own version, first seen Nov 8, 2026
- Jrkesari/skillstheir own version, first seen Nov 8, 2026
- weibo-job/guagua-animation-skillstheir own version, first seen Nov 8, 2026
- fralapo/awesome-agent-skillstheir own version, first seen Nov 7, 2026
- humzabuilds/claude-skillstheir own version, first seen Oct 20, 2026
- nelsonelagunar/obs-ai-workflowtheir own version, first seen Oct 15, 2026
Used with
Projects with it also use brainstorm.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
nicolasestremSkillbrainstorm
Structured idea generation and solution exploration with systematic analysis.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- jtydhr88/ComfyTV★ 1.2ksame name
- coopersimson96/ai-content-system★ 17same name
- EverythingAI-Pro/ai-video-editor★ 16same name
- Isaac-Flath/agent-starter-skills★ 8same name
- darker2016/WorkbuddySkillGroups4DSH★ 6same name
- EmersonBraun/skills★ 4same name
- kevinaimonster/skill-hub★ 4same name
- tyler-berggren/tb-claude-kit★ 2same name
- weibo-job/guagua-animation-skills★ 2same name
- fralapo/awesome-agent-skills★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- agent-engineeringSkill
- app-marketing-copySkill
- ascii-pixel-artSkill
- autopredictSkill
- autoresearchSkill
- babysit-prSkill
- bird-fastSkill
- blockchain-auditorSkill
- brainstormingSkill
- ceo-reviewSkill
- ck-reviewSkill
- cloudflare-managerSkill
- codex-advisorSkill
- content-trend-researcherSkill
- continuous-learningSkill
- coreml-optimizerSkill
- cto-reviewSkill
- direct-mail-strategistSkill
- evangelion-designSkill
- executing-plansSkill
- freshdesk-apiSkill
- gemini-image-generatorSkill
- gemini-visualSkill
- github-actions-templatesSkill
- googleSkill
- gsplat-optimizerSkill
- hyperagentSkill
- idea-mdSkill
- imagegenSkill
- ios-app-testerSkill
- llm-advisorSkill
- llm-evaluationSkill
- macos-appsSkill
- markdown-fetchSkill
- mcp-builderSkill
- mcp-testerSkill
- nano-bananaSkill
- opensea-apiSkill
- paperclipSkill
- playdate-devSkill
- poke-assistantSkill
- poplar-direct-mailSkill
- practical-typographySkill
- prompt-factorySkill
- qmdSkill
- scientific-critical-thinkingSkill
- security-best-practicesSkill
- security-threat-modelSkill
- seo-optimizerSkill
- shadertoySkill
- skill-finderSkill
- skimmableSkill
- subway-infoSkill
- systematic-debuggingSkill
- tui-designerSkill
- ui-designSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when:
- Distinctive: line 41
Rule of thumb: If you only need to change the container format, remux.
- Very specific: line 129
Recommendation: Use slower for quality-focused encoding.
- Distinctive: line 278
Check codec support on target device
- Very specific: line 280
Verify file isn't corrupted: ffmpeg -v error -i file.mkv -f null -
- Distinctive: line 285
Check color range (Limited vs.
- Distinctive: line 286
Check color matrix (BT.709 vs.
- Distinctive: line 292
Use slower preset for better compression
- Distinctive: line 293
Consider x265 for better efficiency
- Distinctive: line 294
Check if you're unnecessarily encoding (remux instead)
- Distinctive: line 298
Use faster preset (but accept larger file)
- Distinctive: line 299
Check if hardware encoding is acceptable for your use case
- Distinctive: line 300
Ensure source isn't being decoded unnecessarily
- Distinctive: line 304
Check source file for sync issues first
- Very specific: line 305
Use -async 1 for audio sync correction
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Video Editor - FFmpeg & Encoding Expert
Expert guidance for video editing, encoding, and processing with ffmpeg. This skill covers container formats, codecs, encoding best practices, and quality optimization for video production workflows.
When to Use This Skill
Use this skill when:
- Encoding or transcoding video files
- Converting between container formats (MKV, MP4, etc.)
- Optimizing encoding settings for quality or file size
- Troubleshooting video quality issues
- Working with color spaces and color matrices
- Hardsubbing or softsubbing videos
- Preparing videos for specific platforms or devices
- Understanding why a video looks wrong after processing
Core Concepts
Container vs. Codec
This distinction is critical. File extensions like .mkv or .mp4 are container formats that package already-compressed streams. The actual compression happens through codecs like H.264, H.265, VP9, or AV1.
| Concept | What It Is | Examples |
| Container | Wrapper that holds video/audio/subtitle streams | MKV, MP4, AVI, MOV, WebM |
| Codec | Algorithm that compresses/decompresses video | H.264, H.265/HEVC, VP9, AV1 |
| Encoder | Software that implements a codec | x264, x265, libvpx, NVENC |
Remuxing vs. Reencoding
| Operation | What It Does | Quality Impact | Speed |
| Remuxing | Moves streams between containers without re-compression | None (lossless) | Very fast |
| Reencoding | Decodes and re-encodes video with new settings | Always loses quality | Slow |
Rule of thumb: If you only need to change the container format, remux. Only reencode when absolutely necessary.
Quality Principles
What "Quality" Actually Means
Video quality measures how closely the output resembles the source. Every processing step moves the video further from the original. There is no way to add quality - only preserve or lose it.
Common Misconceptions
| Myth | Reality |
| Higher resolution = better quality | Resolution is just dimensions; a 720p video can look better than a 4K one |
| Higher bitrate = better quality | Encoder efficiency matters more; same quality at different sizes is possible |
| H.265 is always 50% smaller | Depends on encoder settings; poorly-configured H.265 can be worse than H.264 |
| Hardware encoding is fine for quality | Hardware encoders (NVENC, QuickSync) sacrifice quality for speed |
| AI upscaling improves quality | Upscaling adds artificial detail that wasn't in the source |
The Encoding Quality Hierarchy
From most to least important:
- Encoder settings (CRF, preset, tuning)
- Encoder choice (x264/x265 vs. hardware encoders)
- Codec (H.265 vs. H.264 vs. VP9)
Quick Reference: FFmpeg Commands
Remux (Change Container, No Quality Loss)
# MKV to MP4 (preserves all streams)
ffmpeg -i input.mkv -c copy output.mp4
# MP4 to MKV
ffmpeg -i input.mp4 -c copy output.mkvBasic Encoding
# Encode with x264, copy audio
ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset slower -crf 20 output.mkv
# Encode with x265
ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 22 output.mkvQuality-Focused Encoding
# High-quality x264 for animation
ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset slower -crf 18 \
-x264-params bframes=8 output.mkv
# High-quality x265
ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 20 \
-x265-params bframes=8 output.mkvEncoding Settings Deep Dive
CRF (Constant Rate Factor)
CRF controls quality vs. file size tradeoff. Lower = higher quality, larger file.
| CRF Range | Quality Level | Typical Use |
| 0 | Lossless | Archival, intermediate |
| 15-18 | Visually lossless | High-quality archival |
| 19-23 | High quality | General use, streaming |
| 24-28 | Medium quality | Web, mobile |
| 29+ | Low quality | Previews, thumbnails |
Note: CRF values aren't directly comparable between encoders. x265 CRF 22 ≈ x264 CRF 20.
Preset
Presets control encoding speed vs. compression efficiency.
| Preset | Speed | File Size | Use When |
| ultrafast | Fastest | Largest | Live streaming |
| fast | Fast | Large | Quick transcodes |
| medium | Moderate | Moderate | Default |
| slow | Slow | Smaller | Quality-focused |
| slower | Very slow | Even smaller | Recommended for quality |
| veryslow | Extremely slow | Smallest | Maximum compression |
Recommendation: Use slower for quality-focused encoding. The difference between slower and veryslow is minimal for significant time cost.
Tune Options
| Tune | Best For |
| film | Live-action with film grain |
| animation | Cartoons, anime, flat areas |
| grain | Preserve film grain |
| stillimage | Slideshow, static content |
| fastdecode | Playback on weak devices |
# Animation tuning
ffmpeg -i input.mkv -c:v libx264 -preset slower -crf 20 -tune animation output.mkvContainer-Specific Considerations
MKV (Matroska)
Pros:
- Supports virtually any codec
- Multiple audio/subtitle tracks
- Chapter markers
- Variable frame rate support
Cons:
- Less compatible with some devices/software
- Some streaming services don't accept it
MP4
Pros:
- Universal compatibility
- Web-friendly
- Hardware decoder support everywhere
Cons:
- Limited subtitle format support
- Stricter codec requirements
- Constant frame rate expected
Converting MKV to MP4 for Editing Software
Some editing software requires constant frame rate MP4. Use this two-pass approach:
# Step 1: Initial remux with timescale adjustment
ffmpeg -i input.mkv -c copy -video_track_timescale 24000 intermediate.mp4
# Step 2: Fix timestamps
ffmpeg -i intermediate.mp4 -c copy \
-bsf:v "setts=dts=1001*round(DTS/1001):pts=1001*round(PTS/1001)" output.mp4Color Space & Color Management
Understanding Color Metadata
Videos store colors in YCbCr format with metadata specifying:
- Color matrix: How to convert YCbCr to RGB (BT.709, BT.601)
- Color range: Limited (16-235) vs. Full (0-255)
- Chroma location: Where color samples are positioned
Common Issues
| Symptom | Likely Cause |
| Washed out colors | Wrong color range (Limited treated as Full) |
| Crushed blacks/blown whites | Wrong color range (Full treated as Limited) |
| Greenish/pinkish tint | Wrong color matrix |
| Colors look "off" after encode | Mismatched color metadata |
Preserving Color Information
# Explicitly preserve color metadata
ffmpeg -i input.mkv -c:v libx264 -preset slower -crf 20 \
-colorspace bt709 -color_primaries bt709 -color_trc bt709 output.mkvHardsubbing (Burning In Subtitles)
Using FFmpeg
# Hardsub from external subtitle file
ffmpeg -i input.mkv -vf "subtitles=subs.ass" -c:v libx264 -preset slower -crf 20 output.mkv
# Hardsub from embedded subtitle track
ffmpeg -i input.mkv -vf "subtitles=input.mkv:si=0" -c:v libx264 -preset slower -crf 20 output.mkvUsing mpv (Better for Complex Subtitles)
mpv handles complex ASS subtitles (styling, positioning) more accurately:
mpv --no-config input.mkv -o output.mkv \
--audio=no \
--ovc=libx264 \
--ovcopts=preset=slower,crf=20,bframes=8What to Avoid
Tools
| Tool | Problem |
| Handbrake | Unpredictable settings, hides important options |
| Online converters | Quality loss, privacy concerns |
| "AI upscalers" | Add fake detail, move further from source |
| Windows built-in tools | Poor quality, limited options |
Practices
| Practice | Why It's Bad |
| Unnecessary sharpening | Adds artifacts, moves from source |
| Upscaling to higher resolution | Doesn't add real detail |
| Multiple reencodes | Quality loss compounds |
| Using NVENC for quality | Hardware encoders prioritize speed over quality |
| Frame rate interpolation | Adds fake frames with artifacts |
Recommended Tools
Essential
| Tool | Purpose |
| ffmpeg | Swiss army knife for video processing |
| MediaInfo | Inspect video properties and metadata |
| mpv | Superior media player, encoding support |
| MKVToolNix | GUI for MKV muxing operations |
Specialized
| Tool | Purpose |
| Aegisub | Subtitle editing |
| HandBrake | Simple transcoding (use with caution) |
| yt-dlp | Download online videos |
Troubleshooting
Video Won't Play
- Check codec support on target device
- Try remuxing to different container
- Verify file isn't corrupted:
ffmpeg -v error -i file.mkv -f null -
Colors Look Wrong After Encoding
- Compare color metadata:
mediainfo input.mkvvs.mediainfo output.mkv - Check color range (Limited vs. Full)
- Check color matrix (BT.709 vs. BT.601)
- Explicitly set color parameters in ffmpeg command
File Size Too Large
- Increase CRF (e.g., 20 → 23)
- Use slower preset for better compression
- Consider x265 for better efficiency
- Check if you're unnecessarily encoding (remux instead)
Encoding Takes Forever
- Use faster preset (but accept larger file)
- Check if hardware encoding is acceptable for your use case
- Ensure source isn't being decoded unnecessarily
Audio/Video Out of Sync
- Check source file for sync issues first
- Use
-async 1for audio sync correction - Try remuxing instead of reencoding
Examples
Archive a Blu-ray Rip
ffmpeg -i input.mkv -c:a copy -c:v libx265 -preset slower -crf 18 \
-x265-params bframes=8 output.mkvPrepare for YouTube Upload
ffmpeg -i input.mkv -c:a aac -b:a 384k -c:v libx264 -preset slower -crf 18 \
-profile:v high -level 4.2 -pix_fmt yuv420p output.mp4Quick Preview/Proxy
ffmpeg -i input.mkv -c:a aac -b:a 128k -c:v libx264 -preset fast -crf 28 \
-vf scale=640:-2 output.mp4Extract Audio Only
# Copy audio stream (no re-encoding)
ffmpeg -i input.mkv -vn -c:a copy output.mka
# Convert to MP3
ffmpeg -i input.mkv -vn -c:a libmp3lame -b:a 320k output.mp3Trim Without Re-encoding
# Trim from 1:00 to 2:30
ffmpeg -i input.mkv -ss 00:01:00 -to 00:02:30 -c copy output.mkvResources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

