video_duck_audio
Use sidechain compression to automatically reduce background music during speech in a video. Suitable for shorts, reels, and podcast clips.
Instructions
Mix background music under a video's voice with automatic ducking.
The video's own audio (voice/dialog) drives FFmpeg's sidechain compressor, so the music dips while speech plays and recovers in pauses — the standard treatment for shorts, reels, and podcast clips.
Args: input_path: Video whose existing audio drives the ducking. music_path: Background music or ambience to mix underneath. output_path: Where to save the result. Auto-generated if omitted. music_volume: Base music level before ducking (0-2, default 0.6). threshold: Sidechain level above which ducking engages (0-1). ratio: Compression ratio applied while voice plays (1-20). attack: How fast the music dips, in milliseconds (1-2000). release: How fast the music recovers, in milliseconds (1-9000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| attack | No | ||
| release | No | ||
| threshold | No | ||
| input_path | Yes | ||
| music_path | Yes | ||
| output_path | No | ||
| music_volume | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||