Skip to content

feat(multicam): Prototype the proposed multicam schema (do not merge) - #139

Draft
jhodges10 wants to merge 5 commits into
mainfrom
claude/project-thread-otfkde
Draft

jhodges10 wants to merge 5 commits into
mainfrom
claude/project-thread-otfkde

Conversation

@jhodges10

@jhodges10 jhodges10 commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Prototype for feedback on the OTIO multicam proposal (upstream AcademySoftwareFoundation/OpenTimelineIO#427). Do not merge, the same as the effects prototype (#137). The C++/Python twin is jhodges10/OpenTimelineIO#2.

Refs #138

What it adds

  • Schemas. Multicam.1 (a Stack whose children are one Stack per angle, plus an optional global_start_time), MulticamClip.1 (an Item with multicam, angle and angle_track, whose source_range is in multicam time) and Timeline.multicams (a keyed dict, left out when empty). They are registered as built-in subclasses (ADR 0006), so every algorithm, edit and adapter already accepts them.
  • Algorithms in otio_core::multicam: resolve, validate and flatten. Flatten works in place, pads with a gap where an angle runs out, records metadata["otio.multicam"]["flattened_from"] and reports what it lost.
  • AAF, both ways. A new multicam read option (off by default, so a default read stays upstream's) reads each Avid Selector as a MulticamClip and the composition it selects into as a Multicam. Writing a timeline that has multicams makes a backing composition per multicam, a lower-level group composition named after it, and a Selector per cut with the other angles as alternates. A reader without multicam takes each Selector's choice, so it sees the flattened edit.
  • C ABI. 19 otio_multicam_* calls plus the aaf_multicam read option, generated into all seven SDKs. TypeScript gets a multicam namespace, aafMulticam, and hand-written newMulticam and newMulticamClip constructors for Alchemist web.
  • Docs. ADR 0014, a site guide "Multicam (prototype)" with an Avid section, the AAF format page, and the sample switch-a-multicam-angle (Rust, C, Go, TypeScript; the others have .unavailable notes).

Testing

  • crates/otio-core/tests/multicam.rs reads the C++ prototype's files and round-trips them. On both the synthetic edit and Trevor Aylward's Avid edit (13 angles, 62 cuts), Rust flatten matches C++ flatten.
  • crates/otio-aaf/tests/multicam.rs uses Trevor's Avid AAF, which is vendored (MIT). Read with multicam, it gives 1 multicam, 13 angles and 62 cuts, and flattening that gives the same timeline as the ordinary read. After a write and read back, the angles and cuts are unchanged. A plain read of the written file matches writing and reading the ordinary read. A cut into a track its angle lacks is refused.
  • The TypeScript/wasm suite builds a two-angle edit, writes it to AAF, and reads it back with and without aafMulticam. There is also a Go test.
  • These pass locally: cargo test for otio-core, otio-aaf and otio-capi; workspace clippy and fmt; otio-sdk-gen --check; rustdoc with -D warnings; npm test for the wasm package (65/65); and the Go tests.

Not here yet

  • No written file has been imported into Media Composer.
  • Python bindings.
  • Premiere and Resolve. Their OTIO exports don't record the live angle.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu

…uage

Multicam.1 (a Stack of angle stacks), MulticamClip.1 (an Item naming its
multicam, angle and angle track) and Timeline.multicams, as proposed for
OpenTimelineIO in upstream #427. Registered as built-in subclasses (ADR
0006), with resolve, validate and flatten in otio_core::multicam, the
otio_multicam_* C ABI, all seven SDKs, TypeScript constructors for Alchemist
web, a site guide and a sample. Tested against the C++ prototype's files
and Trevor Aylward's Avid test edit. ADR 0014. A prototype: do not merge.

Refs #138

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu
@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
otio-rust-docs Ready Ready Preview Nov 10, 2026 8:27am UTC

Request Review

Refs #138

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu
The Python package now registers Multicam.1 and MulticamClip.1 as built-in
schemas, so upstream's version-map generator test sees them; the fork's
prototype adds the same two entries.

Refs #138

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu
…mapping does not

Refs #138

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu
EXPERIMENTAL, ADR 0014. Reading with the new `multicam` option (off by
default, so a default read stays upstream's) turns each Avid selector into
a MulticamClip and the composition it selects into into a Multicam on
Timeline.multicams, its slots grouped into angles by slot name or by the
master clip each starts with. Writing a timeline with multicams makes a
backing composition per multicam, a lower-level group composition named
after it, and a selector per cut, so a reader without multicam sees the
flattened edit.

Trevor Aylward's Avid edit is vendored (MIT): it reads as 1 multicam of
13 angles and 62 cuts, flattening that gives the ordinary read, and a
write and read back keeps the angles and cuts.

The option is `aaf_multicam` in the C ABI and every SDK (`aafMulticam`
in TypeScript).

Refs #138

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ezp5TWEntn5wuf3kb2NFUu

This branch was successfully deployed

1 active deployment
Preview — 84bf1697 Deployed Nov 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants