Complete guide to FFmpeg filter_complex syntax, multi-input/output pipelines, and composition patterns. PROACTIVELY activate for: (1) filter_complex syntax questions, (2) Multi-input video composition (PiP, grids, overlays), (3) Video transitions (xfade, fades, wipes), (4) Audio mixing (amix, amerge), (5) Stream splitting and routing, (6) Named stream labels, (7) Complex filtergraphs, (8) GPU + CPU hybrid filter chains, (9) ABR encoding ladders, (10) Text and watermark overlays. Provides: Syntax reference, composition patterns, audio mixing examples, transition effects, GPU-accelerated filtergraphs, debugging tips.
View on GitHubJosiahSiegel/claude-plugin-marketplace
ffmpeg-master
plugins/ffmpeg-master/skills/ffmpeg-filter-complex-patterns/SKILL.md
January 20, 2026
Select agents to install to:
npx add-skill https://github.com/JosiahSiegel/claude-plugin-marketplace/blob/main/plugins/ffmpeg-master/skills/ffmpeg-filter-complex-patterns/SKILL.md -a claude-code --skill ffmpeg-filter-complex-patternsInstallation paths:
.claude/skills/ffmpeg-filter-complex-patterns/## CRITICAL GUIDELINES ### Windows File Path Requirements **MANDATORY: Always Use Backslashes on Windows for File Paths** When using Edit or Write tools on Windows, you MUST use backslashes (`\`) in file paths, NOT forward slashes (`/`). --- ## Quick Reference | Task | Command Pattern | |------|-----------------| | Basic filter_complex | `-filter_complex "[0:v][1:v]overlay"` | | Named labels | `[input]filter[output]` | | Chain filters | `filter1,filter2,filter3` | | Separate chains | `chain1;chain2` | | Map output | `-map "[label]"` | ## When to Use This Skill Use for **complex filtergraph operations**: - Multi-input compositions (PiP, grids, overlays) - Video transitions and effects - Audio mixing and routing - Stream splitting for multiple outputs - GPU + CPU hybrid processing **For basic filters**: use `ffmpeg-fundamentals-2025` **For hardware acceleration**: use `ffmpeg-hardware-acceleration` --- # FFmpeg filter_complex Reference (2025) Comprehensive guide to complex filtergraphs, multi-input compositions, and advanced filter chains. ## filter_complex Syntax ### Basic Structure ``` -filter_complex "filterchain1;filterchain2;..." ``` Each filterchain consists of: - **Input labels**: `[input_label]` - **Filter(s)**: `filter1,filter2,...` (comma-separated) - **Output labels**: `[output_label]` ### Complete Syntax ``` [input_label1][input_label2]filter=param1=value1:param2=value2[output_label] ``` ### Syntax Components | Component | Description | Example | |-----------|-------------|---------| | `[0:v]` | Video stream from input 0 | First input video | | `[0:a]` | Audio stream from input 0 | First input audio | | `[1:v]` | Video stream from input 1 | Second input video | | `[label]` | Custom named label | User-defined | | `,` | Chain filters sequentially | `scale,fps` | | `;` | Separate independent chains | `chain1;chain2` | | `=` | Parameter assignment | `scale=1280:720` | | `:` | Parameter separator | `w=1280:h=720` | ### Stream References |