clipwright-bgm
MCP tool to write BGM placement annotations to an OTIO timeline. Records BGM volume, fade, and ducking instructions as metadata on A2 Audio track clips, which clipwright-render realizes as a mix.
Overview
- Input: Timeline OTIO file, BGM audio file, output path, optional parameters (volume, fade, ducking)
- Process: OTIO manipulation only (no ffmpeg/external OSS). Adds BGM clip to A2 Audio track and writes clipwright metadata
- Output: New OTIO file with BGM annotations (input timeline immutable, M5)
MCP Tool
clipwright_add_bgm
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
timeline |
string |
required | Input timeline file path (existing .otio) |
bgm |
string |
required | BGM audio file path (mp3/wav/m4a/aac/flac/ogg/opus/mp4/mkv/mov/webm) |
output |
string |
required | Output OTIO file path (newly generated, different from input) |
options |
object |
null |
BgmOptions (volume_db / fade_in_sec / fade_out_sec / ducking) |
Dependencies
| Package | Purpose |
|---|---|
clipwright |
Shared types, envelope, errors, inspect_media |
mcp[cli] |
MCP server |
pydantic |
Parameter validation |
Installation and Startup
uv add clipwright-bgm
clipwright-bgm
Or within a uv workspace:
uv run --package clipwright-bgm clipwright-bgm
Prerequisites
- Python 3.11 or later
- ffprobe available on PATH or specified via
CLIPWRIGHT_FFPROBEenvironment variable (used to determine BGM media length)
Metadata
Release files for clipwright-bgm 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clipwright_bgm-0.3.4.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clipwright_bgm-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.1 kB
Release files / clipwright_bgm-0.3.4.tar.gz
| Download URL | clipwright_bgm-0.3.4.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cba1a869c6c7b4725ce55be0ee285d952da9a7c9a469536b8da6cbbb10e7d83
|
|
BLAKE2b-256 checksum How to use checksums |
60010282965953c68546732a9b5e0a4cce4fd7099feac29bea940cc27fde5503
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.
Transparency logRelease files / clipwright_bgm-0.3.4-py3-none-any.whl
| Download URL | clipwright_bgm-0.3.4-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6be29c134ebebb91ef5e4dbcde07b1e8256e909e558e3e62c934b7febb63f800
|
|
BLAKE2b-256 checksum How to use checksums |
adf414b2d50f52c816a9af80161c77a6713d242d1f051fc8b0af7c87d5afe458
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.
Transparency log