Detect clipping and hot peaks
detect_clippingChecks audio or video files for digital clipping, sample/true peaks, flat-factor runs, and time ranges exceeding a true-peak threshold to prevent distortion after MP3/AAC encoding.
Instructions
Check for digital clipping and peaks that will distort after MP3/AAC encoding: sample peak, true peak, flat factor (runs of samples stuck at full scale), and the time ranges where the true peak crosses a threshold.
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>"
},
"name": "detect_clipping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a local audio or video file. ~ is expanded. | |
| start | No | Only analyse from this time (seconds or HH:MM:SS). | |
| duration | No | Only analyse this many seconds. | |
| max_rows | No | ||
| audio_stream | No | Which audio stream to use if the file has several (0 = first). | |
| threshold_dbtp | No | Report ranges where the frame true peak reaches this level. |