Sequences

Several timelines in one project - a 16:9 and a 9:16 cut, cut-downs, alternatives - sharing its media and compositions, each with its own canvas, mix and delivery settings.

A project can hold several sequences: timelines of their own that share the project's media, folders, collections and compositions. Typical uses: a 16:9 cut and a 9:16 cut of the same edit, a 30 s and a 15 s version, a client cut beside an alternative, or a stringout of selects next to the edit. A project with one sequence (every project, until you add one) is exactly the document described above.

The open sequence is the document's top level. clips, tracks, markers, inPoint / outPoint, the canvas (width, height, fps, background, exportFrame), the mix (master, buses), the track switches and the delivery settings (delivery, outputs, encodeProfile) are the open sequence's. Every tool, op, export and the compact view work on them, as always. The others wait in sequences, each with its own copy of those keys:

"sequence": "main",                          // the open one
"sequences": [
  { "id": "main", "name": "Main" },          // the open one: its timeline is the top level
  { "id": "seq_v9", "name": "Reel 9:16", "width": 1080, "height": 1920, "fps": 30,
    "clips": [ /* … */ ], "tracks": [ /* … */ ], "markers": [ /* … */ ], "delivery": { "preset": "instagram-reels" } }
]

Opening another sequence parks the top-level keys in the open one's entry and brings the other's up, with a new revision - like any edit. A clip in a sequence that isn't open still counts: its media shows "used" in the bin, can't be removed while it is there (removeMedia and Remove from project refuse and name the sequence), and Replace file… trims it too; a comp it places can't be removed either. A project with one sequence named Main has neither key.

In the editor: the sequence menu at the left of the timeline toolbar (it shows the open sequence's name, and how many there are) lists them - click one to open it - and has New sequence… (a name, a canvas - the same as the open one, or 16:9, 9:16, 4:5, 1:1 - and, optionally, a copy of the open sequence's timeline to start from), Duplicate, Rename… and Delete… (click twice; the project is first kept as a version, so a deleted sequence can be restored from Projects → Versions). For the session each sequence keeps its own undo history, playhead and selection. The Export dialog, the Mixer, IN / OUT and the canvas settings all belong to the open sequence. Find timeline instances lists placements in other sequences too; clicking one opens its sequence.

Agents (fablecut_patch_project):

Reframe - fablecut_reframe {aspect?:"9:16"|"1:1"|"4:5"|"16:9"|"4:3"|"2:3", name?, clipIds?, follow?, smooth?, force?} makes a copy of the open sequence on that canvas shape and opens it (the project's shorter side kept: 1920×1080 → 1080×1920 for 9:16, 1080×1080 for 1:1), so the original cut stays as it was; without aspect it reframes the open sequence on its own canvas. Each full-frame shot - a video or still that isn't moved, scaled, cropped or keyed by hand - gets fit:"cover" and an x (or y) that keeps its subject in view. Frames are sampled 5 times a second at 96 px; the subject is where motion (against the shot's own movement, so a pan or a flicker doesn't count), detail and colour gather, pulled gently toward the centre. A virtual camera operator then holds still while the subject stays inside a dead zone and eases after it no faster than a pan speed, and the path becomes ordinary keyframes (thinned to within ~2 px), or one steady position. Shots with no clear subject are centred. Titles, picture-in-picture, clips placed or animated by hand and locked clips (unless force:true) are left alone and listed in the reply - check them on the new canvas with fablecut_frame {time}. follow:false only fits and centres; smooth 0…1 (default 0.5) holds longer and pans slower as it rises. props.reframe marks what Reframe did, so running it again replaces its own keys. A version is kept first. In the editor: New sequence… with a copy of the open sequence on another shape has Follow the subject in each shot; the Inspector's Reframe section on a video or picture of another shape than the canvas has Follow subject, Centre and Lively / Balanced / Steady (the selected clips, one undo step, with Cancel).

Highlights - fablecut_highlights {duration?, shot?, clipIds?, mediaIds?, name?, aspect?} finds the best moments of long footage and cuts them into a short edit: a new sequence (Highlights 30 s, or name), opened, so the timeline it came from stays as it was. It reads the video clips on the open timeline (clipIds limits them; mediaIds reads whole files instead), up to an hour of footage at a time: frames twice a second at 64 px, and the sound. Every half second is scored for movement, sound louder than the 20 s around it (a cheer, a laugh, a hit), its overall level, and a clear picture; black frames and flat colour count for little. Cuts already in the footage are found, and a moment never crosses one. It then takes the best moments of shot seconds (default duration / 8, kept within 1.5–4 s), apart in the same footage (by half a moment, at least a second) and spread over its shots, until the edit is duration seconds (default 30; 5…600), trims the last ones to fit exactly, and nudges each end up to 0.3 s to the quietest point near it, so no word or hit is cut through. The moments go back to back on V1 in story order, each a clip of its source with its props (a reframed clip's framing isn't carried over) and its linked sound clips beside it (their own tracks, linked again); their keyframes aren't carried over. A moment from a whole file (mediaIds) is one video clip that plays its own sound, with no separate audio clips. A clip played faster or slower counts by its length on the timeline: duration and shot are always seconds of the edit. In the editor (and Studio) the sound of a file longer than 30 minutes isn't read, so as not to decode it whole in the browser; its picture decides. Disabled clips and clips with a speed ramp are not read. aspect makes the new sequence 9:16, 1:1 or 4:5: the shots are then letterboxed, and fablecut_reframe {} fits them and follows the subject. The reply lists each moment (its source, times, length, why it was picked and its score). A version is kept first. In the editor: the sequence menu's Highlights… (15, 30, 60 or 90 s; a canvas, and Follow the subject in each shot on another shape) reads the selected video clips, else every video clip on the timeline, with progress and Cancel.

Recipes: vertical cut of a finished edit - fablecut_reframe {aspect:"9:16"}, then check the titles with fablecut_frame; by hand, addSequence {name:"Reel 9:16", from:"open", width:1080, height:1920}, then inSequence ops to re-position or re-scale the shots and setProject {delivery:"instagram-reels"} in it; reel from a long video - fablecut_highlights {duration:30, aspect:"9:16"}, then fablecut_reframe {}, music on an audio track and fablecut_beats {clipId:<the music>, retime:{every:2}}, then captions; cut-downs - duplicate the edit as "30 s" and "15 s" and tighten each with the trim ops inside inSequence; selects reel - an empty sequence the user drops favourite takes on, cut into the edit from the Source monitor.