Normalize loudness to a new file
normalize_audio_fileNormalize an audio file's loudness to a target LUFS with EBU R128 and true-peak limiting, writing a new file while leaving the source unchanged.
Instructions
Write a copy of a file's audio with its loudness brought to a target in LUFS (EBU R128, ffmpeg loudnorm, two passes: measure, then correct with a true-peak limit). The whole file is processed (no time range) and only the chosen audio stream is written. The source is not changed. Output .wav (24-bit PCM) or another audio extension; with a .mp4/.mov/.mkv output the video stream is copied and the audio is AAC. Returns before and after loudness (after is measured on the new file), gain_db and method (linear, or dynamic when loudnorm had to compress). To change loudness without a new file, measure with measure_loudness_of_file and use adjust_clip_volume. Works on the file on disk with ffmpeg, not on the timeline; Premiere Pro is not needed. ffmpeg and ffprobe must be installed (see check_ffmpeg), else FFMPEG_NOT_FOUND.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"output_path": "<output_path>"
},
"name": "normalize_audio_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the media file on this computer. | |
| overwrite | No | Replace output_path if it already exists. Default false: an existing file makes the tool fail with FILE_EXISTS. | |
| output_path | Yes | Absolute path of the file to write, e.g. .wav; must differ from path. The extension chooses the format. | |
| target_lufs | No | Integrated loudness target in LUFS, -70 to -5. Default -16 (podcasts, online video). -14 streaming music, -23 EBU broadcast. | |
| audio_stream | No | Which audio stream to use, 0-based among the file's audio streams (see probe_media_file). Default 0. | |
| true_peak_db | No | Highest true peak allowed, in dBTP, -9 to 0. Default -1.5. | |
| loudness_range | No | Loudness range target in LU, 1-50 (how much dynamics to keep when compression is needed). Default 11. | |
| timeout_seconds | No | Stop ffmpeg and fail with TIMEOUT after this many seconds. Default 1800. |