Project disclosure. The author maintains Timeline Studio, the open-
An editable video template has to produce two things at once. The viewer should see the intended cut, and the editor should still have the clips, timing, and effect settings needed to change it. Timeline Studio’s Memory Vortex template is a useful case because it uses the same 48 media slots twice.
A still from each slot is available to the glass tunnel in the opening. The resolved media ranges then supply the full-screen shots that follow. A change to one binding should give both uses the same
An earlier test of a three-panel template exposed a surprisingly ordinary failure. A 24-seconde project to roughly 43.73 seconds, but the player still showed the old footage at around 3.10 seconds. The new composition was farther down the timeline. From the preview and the visible tracks, it looked as if the template had done nothing
This exposed a distinction between committing a new sequence and revealing it. The apply handler computes the append offset, creates the new clips and effects, and determines an absolute preview time inside the generated region. It commits that time with the new clip state, then requests that the timeline reveal the first generated clip. Seeking through the old timeline during the same state update could clamp the target against the old duration. Template apply handler.
That gives us an acceptance check for Memory Vortex. Apply the template with an empty project, then repeat with existing footage. In the second case, verify the start offset and the picture at the new playhead as well as the final project length.
Three clocks in one short sequence.
Memory Vortex uses a measured cut schedule on a 30 fps reference with a default tempo of 106 BPM. A frame index in the recipe is an offset from the beginning of the template. The editor turns that into project time by applying the tempo ratio and adding the template start. A video clip has a third coordinate, its position inside the
For a constant-speed shot, those conversions can be expressed like this. The snippet shows the timing model with illustrative variables.
const secondsPerReferenceFrame = (106 / selectedBpm) / 30;
const timelineTime = templateStart + referenceFrame * secondsPerReferenceFrame;
const clipLocalTime = timelineTime - clipStart;
const sourceTime = sourceStart + clipLocalTime * playbackRate;
At the default tempo, the opening occupies 81 frames. The first full-screen shot starts at frame 81, or 2.70 seconds into the generated region. Later cuts use the measured frame schedule, with short dissolves between adjacent shots. The schedule also produces timeline markers, so a visual cut and its beat marker can be checked separately.
On a project with existing footage, 2.70 seconds is still the offset inside the template, while the player’s time includes the append offset. Reference template timing · Memory Vortex cut schedule
Resolve video ranges before sampling the opening.
A media slot identifies an asset, but that identifier alone cannot tell the opening which video frame to show. A or duration. In the released implementation, the template resolves the shot first and samples its midpoint through the same
The atlas builder groups shots bys the requests to milliseconds, sorts and deduplicates timestamps peres the WebCodecs route and can fall back to video-element seeks
The builder then returns each sampled frame to its original slot index. This matters when the sample requests are sorted in a different order from the shots. Images use the same slot positions and are center-cropped to the tile dimensions. Preparation checks cancellation betweenction paths
What the renderer gets.
The output of preparation is one WebP atlas, with eight columns and six rows of 224 × 280 pixels. That makes the atlas 1792 × 1680. A single decoded RGBA copy would occupy about 11.5 MiB before accounting for other browser surfaces or retimeline clips
At render time, a pane’s position is a function of the effect’s local time. Canvas 2D computes the polygon, clips to it, and uses a source rectangle in drawImage() to sample an atlas tile. The angle and fade are derived from the current time and the pane index. The effect can therefore draw a frame after a seek using the atlas and effect settings. Source video decoding for the opening happens during preparation. Decoding for the full-screen shots continues through the normal timeline media path. Canvas pane renderer
There are two ways to edit the result. Reapply the template with new bindings to rebuild both the atlas and the sequence. To replace a single shot while keeping its timeline slot, choose a newneeds a rate of 1.5×, subject to the editor’s supported speed limits. The replacement keeps the clip ID and duration. The next beat stays at the same timeline position. Replacement timing · Clip update
Check the frames around a cut.
The release smoke project contained 49 visual clips, including the opening, one timeline effect, and one music track. The sample export was a 4:5 video at 30 fps. In that export, frame 80 still shows the tunnel, frame 81 shows the first full-screen shot, and frame 98 shows the first dissolve in progress. These checks catch different failures. The first pair locates the hard cut. The third frame confirms that the renderer has both adjacent images when the transition is active. Released template
You can extract those frames from a 30 fps export with FFmpeg. The output filenames are sequential, while the numbers in the filter are zero-based frame indices.
ffmpeg -i export.mp4
-vf "select='eq(n,80)+eq(n,81)+eq(n,98)'"
-fps_mode passthrough cut-check-%02d.png
A second check uses aranges, then compare the atlas panes with their matching full-screen shots. Finally, replace one shot and check that the next beat remains fixed. Together these checks cover the handoff from the template recipe to contains the template, clip model, and browser renderer
Disclosure. The author maintains Timeline Studio. OpenAI Codex drafted this English case study from the project’s released code, the author’s reported editor behavior, and export evidence. The featured image contains three frames from the Timeline Studio sample export.