FFmpeg Skill
When to Use
Use FFmpeg-backed tools for any video/audio processing that does not require AI inference:
cutting, trimming, speed adjustment, concatenation, audio extraction, mixing,
subtitle burn-in, overlay compositing, encoding, face enhancement, color grading,
and audio cleanup.
Tools That Use FFmpeg
Core Pipeline
| Tool |
Capability |
video_trimmer |
Cut, trim, speed adjust, concat video segments |
video_compose |
Full composition: cuts + subtitles + overlays + encode |
audio_mixer |
Mix speech/music/SFX, ducking, fades, extract audio |
frame_sampler |
Extract representative frames from video |
Enhancement Layer
| Tool |
Capability |
Key Presets |
face_enhance |
Skin smoothing, sharpening, warm/cool tones |
talking_head_standard, soft_skin, sharpen |
color_grade |
Cinematic color grading with intensity control |
cinematic_warm, cinematic_cool, moody_dark |
audio_enhance |
Noise reduction, loudness normalization, EQ |
clean_speech, voice_clarity, podcast |
Key Patterns
Enhancement Chain Order
Apply enhancements in this order to avoid filter interactions:
- Subtitles first — burn into the base video
- Face enhance — smoothing/sharpening works best on ungraded footage
- Color grade — applies look after face is already enhanced
- Audio enhance — independent of video, apply last
Each step is optional and gracefully skipped if the tool is unavailable.
Lossless vs Re-encode
- Use
-c copy (codec copy) when you only need to cut or concat without altering frames. This is instant and lossless.
- Re-encode (
-c:v libx264) when applying filters (speed change, subtitles, overlays, scaling).
- Default CRF is 23. Use 18-20 for higher quality when the output is the final deliverable.
Subtitle Burn-in
- Prefer SRT format for simple word subtitles.
- Use
force_style with full ASS color format: &H00FFFFFF (not &HFFFFFF).
- Always escape Windows paths (
C\: not C:) in the subtitles filter.
- Vertical video:
font_size: 18, max 3 words/cue, margin_v: 50.
- Horizontal video:
font_size: 22, max 6 words/cue, margin_v: 40.
Audio Enhancement Targets
| Platform |
Target LUFS |
Loudness Range |
| Social media (TikTok, Reels) |
-14 LUFS |
5-7 LU |
| YouTube |
-14 to -16 LUFS |
7-11 LU |
| Podcast |
-16 LUFS |
7-11 LU |
| Broadcast |
-24 LUFS |
7 LU |
The clean_speech preset targets -16 LUFS with 11 LU range — good for YouTube/social media.
Color Grade Intensity
intensity: 0.85 — recommended default for cinematic_warm on talking heads
intensity: 0.5 — subtle, barely noticeable
intensity: 1.0 — full effect, may look over-processed on some footage
Audio Ducking
- Use
sidechaincompress with speech as the key signal to lower music volume during dialogue.
- Typical settings: threshold=0.02, ratio=9, attack=200ms, release=500ms.
Concatenation
- Use the concat demuxer (
-f concat -safe 0) for same-codec segments.
- For mixed codecs or different resolutions, re-encode all segments first.
Quality Checklist
1---2name: openmontage-ffmpeg3version: "1.0.0"4description: 汇总剧坊中所有基于 FFmpeg 的音视频处理工具与关键参数:剪切拼接、字幕烧录、混音、响度、美颜与调色链、降噪。适用于无需 AI 推理的成片加工与平台化交付。5metadata:6 source: https://skillmd.com/skills/wanfeng1028/openmontage-ffmpeg7 license: AGPL-3.08---910# FFmpeg Skill1112## When to Use1314Use FFmpeg-backed tools for any video/audio processing that does not require AI inference:15cutting, trimming, speed adjustment, concatenation, audio extraction, mixing,16subtitle burn-in, overlay compositing, encoding, face enhancement, color grading,17and audio cleanup.1819## Tools That Use FFmpeg2021### Core Pipeline2223| Tool | Capability |24|------|-----------|25| `video_trimmer` | Cut, trim, speed adjust, concat video segments |26| `video_compose` | Full composition: cuts + subtitles + overlays + encode |27| `audio_mixer` | Mix speech/music/SFX, ducking, fades, extract audio |28| `frame_sampler` | Extract representative frames from video |2930### Enhancement Layer3132| Tool | Capability | Key Presets |33|------|-----------|-------------|34| `face_enhance` | Skin smoothing, sharpening, warm/cool tones | `talking_head_standard`, `soft_skin`, `sharpen` |35| `color_grade` | Cinematic color grading with intensity control | `cinematic_warm`, `cinematic_cool`, `moody_dark` |36| `audio_enhance` | Noise reduction, loudness normalization, EQ | `clean_speech`, `voice_clarity`, `podcast` |3738## Key Patterns3940### Enhancement Chain Order4142Apply enhancements in this order to avoid filter interactions:43441. **Subtitles first** — burn into the base video452. **Face enhance** — smoothing/sharpening works best on ungraded footage463. **Color grade** — applies look after face is already enhanced474. **Audio enhance** — independent of video, apply last4849Each step is optional and gracefully skipped if the tool is unavailable.5051### Lossless vs Re-encode5253- Use `-c copy` (codec copy) when you only need to cut or concat without altering frames. This is instant and lossless.54- Re-encode (`-c:v libx264`) when applying filters (speed change, subtitles, overlays, scaling).55- Default CRF is 23. Use 18-20 for higher quality when the output is the final deliverable.5657### Subtitle Burn-in5859- Prefer SRT format for simple word subtitles.60- Use `force_style` with full ASS color format: `&H00FFFFFF` (not `&HFFFFFF`).61- Always escape Windows paths (`C\:` not `C:`) in the subtitles filter.62- Vertical video: `font_size: 18`, `max 3 words/cue`, `margin_v: 50`.63- Horizontal video: `font_size: 22`, `max 6 words/cue`, `margin_v: 40`.6465### Audio Enhancement Targets6667| Platform | Target LUFS | Loudness Range |68|----------|-------------|----------------|69| Social media (TikTok, Reels) | -14 LUFS | 5-7 LU |70| YouTube | -14 to -16 LUFS | 7-11 LU |71| Podcast | -16 LUFS | 7-11 LU |72| Broadcast | -24 LUFS | 7 LU |7374The `clean_speech` preset targets -16 LUFS with 11 LU range — good for YouTube/social media.7576### Color Grade Intensity7778- `intensity: 0.85` — recommended default for cinematic_warm on talking heads79- `intensity: 0.5` — subtle, barely noticeable80- `intensity: 1.0` — full effect, may look over-processed on some footage8182### Audio Ducking8384- Use `sidechaincompress` with speech as the key signal to lower music volume during dialogue.85- Typical settings: threshold=0.02, ratio=9, attack=200ms, release=500ms.8687### Concatenation8889- Use the concat demuxer (`-f concat -safe 0`) for same-codec segments.90- For mixed codecs or different resolutions, re-encode all segments first.9192## Quality Checklist9394- [ ] Output plays without artifacts on desktop and mobile95- [ ] Audio and video remain in sync after processing96- [ ] Subtitles are in the bottom 20% of frame, never covering the face97- [ ] Audio loudness is within target range for the platform98- [ ] Enhancement is visible but natural — skin tones look healthy, not orange99- [ ] No audio clipping or silence gaps at cut points100- [ ] File size is reasonable for the target platform