Remove silences from a clip or track
remove_silencesDetects silent sections in a clip or audio track with ffmpeg and ripple-deletes their timeline ranges across all tracks, keeping linked video and audio in sync.
Instructions
Find the silent parts of a clip's source media with ffmpeg (or of every clip on one audio track), map them to timeline time (clip start + source time - clip in point), and ripple-delete those ranges. Each range is extracted on ALL tracks (like a sync-locked ripple delete), so linked video/audio and everything else stays in sync; material of other clips inside a removed range is removed too. Clips with a speed other than 100 % or reversed are refused. Pass clip_id (or track_type + track_index + clip_index), or track_type + track_index alone for every clip of that track. Returns the removed ranges (timeline times before the edit), seconds_saved and the sequence duration before and after. dry_run returns the ranges only. Needs ffmpeg.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_silences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | The clip to clean up (from list_clips). | |
| dry_run | No | true: return the plan without changing anything. Default false. | |
| noise_db | No | Level below which audio counts as silence, in dBFS. Default -30. | |
| clip_index | No | With track_type + track_index: one clip by position. | |
| track_type | No | With track_index (and no clip_index): every clip of that track. Default "audio". | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| padding_seconds | No | Seconds of sound kept on each side of a removed silence so words are not clipped. Default 0.1. | |
| min_silence_seconds | No | Shortest silence that is removed, in seconds. Default 0.5. |