Audio mixing
Use FFmpeg/ffprobe; Python standard library optional. No extra packages, plugins, or models. Preserve sources; use float WAV intermediates.
- Inspect duration, channels, and sample rate with
ffprobe; measure LUFS/true peak usingebur128=peak=true. Align tracks; match rates/layouts. - Balance
volumeandpanfirst. Leave roughly 6 dB headroom; avoid independent stem normalization. - EQ in context: high-pass unwanted rumble without removing fundamentals; cut masking/resonances before boosting. Start with 1-3 dB moves. Check 200-500 Hz mud, 2-5 kHz harshness, 5-9 kHz sibilance; never cut blindly. Use
highpass,equalizer. - Compress uneven dynamics only (
acompressor; start near 2:1, preserve transients). Automate gain or duck music under speech (sidechaincompress). Fade edits; preserve tails. - Sum explicit gains with
amix=inputs=N:normalize=0; choose duration deliberately. Check bus peaks; lower gains if overloaded. - Honor delivery specs; otherwise start at -16 LUFS-I, <= -1 dBTP for full programs. Judge short SFX by peaks/context. Apply two-pass
loudnormto the final mix: reuse measured I/LRA/TP/threshold and target offset with identical targets. Prefer linear mode; check dynamic fallback. Set output sample rate explicitly. - Compare at matched loudness; check transitions, quiet/loud passages, and mono. Disclose unavailable listening; meters cannot confirm sound quality.
- Export requested format (default: 48 kHz/24-bit WAV). Remeasure the decoded delivery file for loudness, true peak, duration, and channels. Deliver commands and measurements.


