audio.mix
Combine a video's voice track with background music and automatically lower the music under speech using sidechain ducking, with optional fades.
Instructions
Mix a video's voice track with background music, ducking the music under the voice with a sidechain compressor. Video is kept (stream copy); audio is re-encoded. Fades optional.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duck | No | Sidechain-compressor ducking keyed on the voice (dB threshold, ratio, attack/release in ms) | |
| music | Yes | Background music file | |
| video | Yes | Video file whose audio track is the voice | |
| fadeIn | No | Fade-in duration in seconds (default 0) | |
| output | Yes | Path to write the mixed file | |
| fadeOut | No | Fade-out duration in seconds (default 0) | |
| musicGainDb | No | Gain applied to the music in dB before ducking |