name: loudnorm description: Normalize audio loudness to broadcast levels using ffmpeg's two-pass loudnorm filter. Measures the input, then applies normalization with the measured parameters. Use as a final-stage audio leveling step.
loudnorm
ffmpeg two-pass loudnorm. Outputs broadcast-safe audio (default targets: I=-14 LUFS, TP=-1.5 dBTP, LRA=11).
Inputs
input: video or audio pathout: output pathI(optional): integrated loudness target, default-14TP(optional): true peak target, default-1.5LRA(optional): loudness range, default11
Output
Media file with normalized audio. Video stream copied (no re-encode).
How
- Measure pass:
ffmpeg -i <in> -af loudnorm=I=<I>:TP=<TP>:LRA=<LRA>:print_format=json -f null -→ parse the JSON block from stderr. - Apply pass:
ffmpeg -i <in> -af loudnorm=I=<I>:TP=<TP>:LRA=<LRA>:measured_I=<>:measured_TP=<>:measured_LRA=<>:measured_thresh=<>:offset=<>:linear=true:print_format=summary -c:v copy <out>.
Status
Stub. Salvageable command construction in archive/pre-pivot:pipeline_v2.py:672-778.