Mux and master sound
mux_audioMux a mix onto video with two-pass loudness normalization to -14 LUFS and -1.2 dB true peak; pads or trims audio to match frames, optionally adds grain, and returns output path plus loudness.
Instructions
Puts a mix under the video: two-pass loudness to -14 LUFS, true peak -1.2 dB, optional film grain. A mix shorter than the video is padded with silence, a longer one cut at the end. Before handing over, it checks the frame count and that the sound starts and ends with the picture. Returns the output path and the measured loudness.
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": {
"video": "<video>",
"audio": "<audio>",
"out": "<out>"
},
"name": "mux_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Default 24. | |
| out | Yes | ||
| audio | Yes | The mix, e.g. mix.wav. | |
| grain | No | Film grain, 0 for none. Default 2. | |
| video | Yes |