music-mix
Music mix
Puts a music bed under a finished video. The bed is trimmed to the video's exact duration, faded out at the tail, and ducked under the voice. This is the last step of the pack: base video → b-roll overlay → burned captions → music.
Mixing mechanics live entirely in scripts/music_mix.py. This file is judgment only —
when to enter, what track to pick, where the music comes from, what the user sees.
Entry condition
A finished video the user has signed off on. Captions already burned in is the
preferred input, because music is genuinely the last thing that happens. That is safe
because the script copies the video stream packet for packet (-c:v copy) and verifies
afterwards that the output's video packets hash identical to the input's — so burned
captions come through bit-exact, not "re-encoded but probably fine".
If the cut is still moving, wait. Remixing is cheap; re-rendering the pipeline is not.