mix_music_into_video
Mix background music into a video's existing audio, using adaptive loudness to keep music below speech level, with optional ducking while talking.
Instructions
Lay a music bed under a video's existing speech/ambience audio.
Gain is ADAPTIVE by default: both tracks are loudness-measured and the
music sits music_below_speech_db LUFS below the speech (14 = clearly
audible but secondary; 18-20 = barely-there). duck=true adds a gentle
side-chain dip while someone talks. Pass music_gain_db only to force a
fixed gain. Music for speech ads is complementary, not the main event.
Video stream is copied untouched; inputs may be URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duck | No | ||
| music | Yes | ||
| video | Yes | ||
| output_path | Yes | ||
| music_gain_db | No | ||
| music_below_speech_db | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||