detect_silence
Identify silent ranges in a media file and get the keepable segments alongside them. Non-destructive analysis, does not modify the Premiere project.
Instructions
Find silent ranges in a media file and return both the silences and the complementary segments worth keeping. Analysis only — nothing in the project or on the timeline is modified. Requires ffmpeg on PATH: Premiere's scripting API exposes no audio-level or waveform data, so silence cannot be measured through the bridge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_path | No | Absolute path to the media file to analyse. Provide this or project_item_id. | |
| project_item_id | No | Node ID or name of a project item whose media path is resolved through Premiere. Provide this or media_path. | |
| noise_threshold_db | No | Level at or below which audio counts as silence, in dBFS. Closer to 0 is more aggressive (default: -30). | |
| min_duration_seconds | No | Shortest run of silence to report, in seconds (default: 1.5). |