🎥 Make videos programmatically with React
Docs: Read component timing when exporting OpenTimelineIO
Jonny Burger9896c9db5523
diff --git a/packages/docs/docs/export-opentimeline.mdx b/packages/docs/docs/export-opentimeline.mdxindex 70e469f923..714cd299d8 100644--- a/packages/docs/docs/export-opentimeline.mdx+++ b/packages/docs/docs/export-opentimeline.mdx@@ -64,8 +64,8 @@ Never leave both a fallback and the media it replaces active. A visual overlay r1. Find the `<Composition>` and note its `fps`, `durationInFrames`, `width` and `height`. If it has `calculateMetadata`, read what that function returns, and use the input props that are actually being used.2. Walk the component tree and collect every media element with a real `src`.-3. For each media element, compute its **absolute start frame** by adding up the `from` prop of every `<Sequence>` it is nested in. `<Series>` and `<TransitionSeries>` place their children back to back, so accumulate their `durationInFrames`.-4. Note `durationInFrames` of the closest wrapping `<Sequence>`, or the remaining composition duration if there is none.+3. For each media element, compute its **absolute start frame** from its own `from` prop plus the timing offsets of its ancestors, including `<Sequence>` and other components that accept timing props. `<Series>` and `<TransitionSeries>` place their children back to back, so accumulate their `durationInFrames`.+4. Note the media element's own `durationInFrames`, if set. Limit its active interval to the duration limits of its ancestors and the composition, as well as the available source duration.5. Note `trimBefore` and `trimAfter`, which are in frames and describe which part of the source file is used.6. Inventory every visible or audible construct that is not faithfully covered by those native clips. Group dependent constructs into the smallest intervals that can be rendered without changing their appearance or sound.