clipwright-silence
MCP tool for silence detection and OTIO timeline generation. Detects silent intervals in a media file and writes a KEEP-interval timeline (.otio) that clipwright-render can use for automated cut editing.
Overview
- Input: Media file (video or audio), output OTIO path, optional detection parameters
- Process: Runs the ffmpeg
silencedetectfilter (default) or Silero VAD (opt-in) to find silence intervals, inverts them to KEEP intervals, applies padding and merging, and writes an OTIO timeline - Output: New OTIO file with KEEP intervals; input media is never modified (non-destructive, readOnly)
MCP Tool
clipwright_detect_silence
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
media |
string |
required | Input media file path (video or audio) |
output |
string |
required | Output OTIO timeline file path (.otio extension) |
options |
object |
null |
DetectSilenceOptions (see below) |
DetectSilenceOptions
| Field | Type | Default | Description |
|---|---|---|---|
silence_threshold_db |
float |
-30.0 |
Volume threshold (dB) for silence detection (silencedetect backend only; must be ≤ 0) |
min_silence_duration |
float |
0.5 |
Minimum duration (seconds) to classify as silence (silencedetect backend only; must be > 0) |
padding |
float |
0.1 |
Padding (seconds) added to both sides of each KEEP interval. Overlapping intervals are merged |
min_keep_duration |
float |
0.0 |
KEEP intervals shorter than this value (seconds) are discarded after padding and merging |
backend |
string |
"silencedetect" |
Detection backend: "silencedetect" (ffmpeg) or "vad" (Silero VAD / ONNX) |
vad_threshold |
float |
0.5 |
VAD backend only. Speech probability threshold (0.0–1.0); values ≥ this are speech |
vad_min_speech_duration |
float |
0.25 |
VAD backend only. Minimum speech segment duration (seconds) |
vad_min_silence_duration |
float |
0.1 |
VAD backend only. Minimum silence gap (seconds) between speech intervals |
Dependencies
| Package | Purpose |
|---|---|
clipwright |
Shared types, envelope, errors, subprocess runner |
mcp[cli] |
MCP server |
pydantic |
Parameter validation |
onnxruntime |
Silero VAD inference (VAD backend) |
Installation and Startup
uv add clipwright-silence
clipwright-silence
Or within a uv workspace:
uv run --package clipwright-silence clipwright-silence
Prerequisites
- Python 3.11 or later
- ffmpeg and ffprobe available on PATH, or set via environment variables:
CLIPWRIGHT_FFMPEG— path to the ffmpeg binaryCLIPWRIGHT_FFPROBE— path to the ffprobe binary
- For the
vadbackend:onnxruntimeis bundled as a dependency; no additional binary is required
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clipwright_silence-0.2.1.tar.gz.
File metadata
- Download URL: clipwright_silence-0.2.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92f6245f84edc53f9eca6eb06cc47cf507259cb9d95efa49ce77c904d7e8b105
|
|
| MD5 |
2641b22e3458b160bbd5ceb1470944c0
|
|
| BLAKE2b-256 |
c00cb05b3f155153df3921ea68569abe29d4d9bec277158ade97e412cb5c72d4
|
Provenance
The following attestation bundles were made for clipwright_silence-0.2.1.tar.gz:
Publisher:
publish.yml on satoh-y-0323/clipwright
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clipwright_silence-0.2.1.tar.gz -
Subject digest:
92f6245f84edc53f9eca6eb06cc47cf507259cb9d95efa49ce77c904d7e8b105 - Sigstore transparency entry: 1946372511
- Sigstore integration time:
-
Permalink:
satoh-y-0323/clipwright@80dd2488f4065e3ee5b30b1db81ba957c1f270ef -
Branch / Tag:
refs/tags/v0.20.0 - Owner: https://github.com/satoh-y-0323
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80dd2488f4065e3ee5b30b1db81ba957c1f270ef -
Trigger Event:
push
-
Statement type:
File details
Details for the file clipwright_silence-0.2.1-py3-none-any.whl.
File metadata
- Download URL: clipwright_silence-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb11dca22ea468b18c22437c9f1588cff15cfc72de5d0e96991119b8f7efec68
|
|
| MD5 |
43dc4e395ef93bb264f590e232afe60a
|
|
| BLAKE2b-256 |
0ef90753635b652c7261f401217af55126cc2ebbe775ad2a2d4806bac0bcb136
|
Provenance
The following attestation bundles were made for clipwright_silence-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on satoh-y-0323/clipwright
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clipwright_silence-0.2.1-py3-none-any.whl -
Subject digest:
eb11dca22ea468b18c22437c9f1588cff15cfc72de5d0e96991119b8f7efec68 - Sigstore transparency entry: 1946372701
- Sigstore integration time:
-
Permalink:
satoh-y-0323/clipwright@80dd2488f4065e3ee5b30b1db81ba957c1f270ef -
Branch / Tag:
refs/tags/v0.20.0 - Owner: https://github.com/satoh-y-0323
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@80dd2488f4065e3ee5b30b1db81ba957c1f270ef -
Trigger Event:
push
-
Statement type: