Skip to main content

MCP tool to write BGM placement annotations to OTIO timeline. Records BGM volume, fade, and ducking instructions as metadata on A2 Audio track clips, which clipwright-render realizes as a mix.

Project description

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_FFPROBE environment variable (used to determine BGM media length)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clipwright_bgm-0.2.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clipwright_bgm-0.2.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file clipwright_bgm-0.2.0.tar.gz.

File metadata

  • Download URL: clipwright_bgm-0.2.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clipwright_bgm-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3f32a2cb6728d38a6999f979c4abac5f892ad2a4fcbe03f94d0ffe28232fff4b
MD5 91b6fc0f413fce147bac604738291a47
BLAKE2b-256 d2b3fbeb710ca4ab815d38caddbd7eb178f2597e88e7bd77dcc850d93f3ae604

See more details on using hashes here.

Provenance

The following attestation bundles were made for clipwright_bgm-0.2.0.tar.gz:

Publisher: publish.yml on satoh-y-0323/clipwright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clipwright_bgm-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: clipwright_bgm-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for clipwright_bgm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98b29708438615e4d1516b4aa35fd2a4ec2d3f65f32a2a1e5c4e88c54628909e
MD5 5b5c5ac6194d769c70dca32fa1e6e1f3
BLAKE2b-256 7c714b01cdb445323dba280be2da97d731235fa5fb642bc6fb25782060a418f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for clipwright_bgm-0.2.0-py3-none-any.whl:

Publisher: publish.yml on satoh-y-0323/clipwright

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page