Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 99fda5ed1a5920e19219a93c3e84667e2982f4d1
parent 66f4df9e663f86a3e6af708e266e689fcd42a25c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 15:42:06 -0500

umtool docs: beat reels -- the reels, Play the reel, the walk, a beat's verdict, undo and Cut the trailer (knobs.md, cli.md, report-video.md)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/docs/cli.md | 4++--
Mumtool/docs/knobs.md | 22++++++++++++++++++++++
Mumtool/docs/report-video.md | 25+++++++++++++++++++++++++
3 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md @@ -61,8 +61,8 @@ Inbox cannot disagree about what is wrong with one. | `takes styles [--json]` · `takes effects <project> [--json]` · `takes pick <project> <take> [--anyway] [--pin \| --unpin] [--json]` | the montage styles; the overlay effects the cut offers (`render.chrome.fx` presets: the Takes page's **Effect** list); **Use this take** — refused (exit 1) when the project changed since the take was made, until `--anyway`; `--pin` keeps the pick when newer takes are built (each whole-cut take of the manifest is otherwise its group's pick once built), `--unpin` lets go ([report-video.md](report-video.md#takes-alternative-renders-judged-side-by-side)) | | `takes ls <project> [--json]` · `takes relabel <project> <take> <label…>` · `takes supersede <project> <take> [--by <take>]` · `takes supersede <project> <take> --clear` · `takes delete <project> <take> [--dry-run] [--force]` | **take housekeeping** (the Takes page's ✎, **Mark superseded**, **Delete take**): first the working cut's line (`Latest: draft-22 · 28:03 · +N edits since`, and the edits in words; `--json`: `working`), then the takes with latest / picked (pinned) / superseded / RENDERING; a label fixed in `take.json` (an undo point of the take's own); a take folded away as superseded (verdicts.json, nothing deleted); a take deleted. Relabel and delete are refused (**exit 1**) while the take renders or a live render is made from it ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare)) | | `takes cancel <project> <take> [--json]` · `takes fork <project> <take> [--name N] [--json]` · `takes compare <project> <a> <b> [--json]` | **take housekeeping, the rest**: **Cancel render** (asked of the process rendering it, which stops its render's process group, marks the take cancelled and lets render mode go; exit 1 when it has not stopped); **Fork as variant** (a project beside this one, default `v-<take>`: the take's manifest, `variant.json`, the parent's media and assets linked, the take in it); two takes **side by side** (`<take>` or `<project>:<take>`: the facts, the cut's changes A → B, the look's differences) ([knobs.md](knobs.md#takes-relabel-supersede-cancel-delete-fork-as-variant-compare)) | -| `trailer <project> --take <t> (--beats FILE \| --beats-json JSON) [--intro] [--finale S] [--xfade 0.3] [--no-snap] [--out NAME] [--dry-run] [--json]` | a **trailer cut from the take's finished master**: spans of the master's own frames (the deck shows the whole timeline), clip beats in source seconds mapped by the take's build records, each clip beat's end moved forward into the next pause (through its sentence when one ends within 1 s) and its start back into the one before, so the crossfade lands in quiet, each move said (`--no-snap`: the edges as written), crossfaded, the take's encode, in the heavy slot; writes `takes/<t>/out/<slug>.trailer.mp4` and `.trailer.json`; **exit 1** on a refusal ([report-video.md](report-video.md#trailer-from-the-master)) | -| `trailer-beats <project> [ls] [--json]` · `add <clip> [<from>-<to>] [--at N] [--label L]` · `add-raw <at> <dur>` · `set <n> <from>-<to>` · `remove <n>` · `move <n> --to <m>` · `order` · `limit <s\|m:ss\|x\|instagram\|shorts\|tiktok>` · `xfade <s>` · `intro on\|off` · `candidates [--add]` | **the trailer's beats** (`promo/trailer-beats.json`, the Trailer page's file, what `trailer --beats` reads): each beat's length, the running length against the platform limit (X 2:20 by default), beats outside their clip's window, the cut's order, the walk's ★ clips ([knobs.md](knobs.md#the-trailers-beats)) | +| `trailer <project> --take <t> (--beats FILE \| --beats-json JSON) [--intro] [--finale S] [--xfade 0.3] [--no-snap] [--out NAME] [--dry-run] [--json]` | a **trailer cut from the take's finished master**: spans of the master's own frames (the deck shows the whole timeline), clip beats in source seconds mapped by the take's build records, each clip beat's end moved forward into the next pause (through its sentence when one ends within 1 s) and its start back into the one before, so the crossfade lands in quiet, each move said (`--no-snap`: the edges as written), crossfaded, the take's encode, in the heavy slot; writes `takes/<t>/out/<slug>.trailer.mp4` and `.trailer.json`; **exit 1** on a refusal ([report-video.md](report-video.md#trailer-from-the-master)) · `--reel <name> [--take <t>]`: a **beat reel** -- its own beats file (`promo/<name>-beats.json`), crossfade and intro, written to `<slug>.<name>.mp4`; no `--take`: its pinned take, else the one it was last cut from, else the latest finished master ([report-video.md](report-video.md#beat-reels)) | +| `trailer-beats <project> [ls] [--json]` · `add <clip> [<from>-<to>] [--at N] [--label L]` · `add-raw <at> <dur>` · `set <n> <from>-<to>` · `remove <n>` · `move <n> --to <m>` · `order` · `limit <s\|m:ss\|x\|instagram\|shorts\|tiktok>` · `xfade <s>` · `intro on\|off` · `candidates [--add]` · `verdict <n> confirmed\|note\|clear` · `title <text>\|none` · `take <t>\|none` · `undo` · `reels [--json]` · `new-reel <name> [--from <reel>] [--title T]` · `--reel <name>` on any | **the trailer's beats** (`promo/trailer-beats.json`, the Trailer page's file, what `trailer --beats` reads) or another **beat reel's** (`--reel`: `promo/<name>-beats.json`): each beat's length, the running length against the platform limit (X 2:20 by default), beats outside their clip's window, the cut's order, the walk's ★ clips; every write an undo point ([knobs.md](knobs.md#the-trailers-beats)) | | `rulings <project> [--json]` · `rulings <project> import [--dry-run] [--json]` · `rulings <project> set <clip\|key> keep\|cut\|not-him\|read-aloud [--reason R] [--match M]` · `rulings <project> clear <clip\|key>` | a montage's **clip rulings** (`montage-rulings.json`, the clip deck's): each clip and its ruling and the next render's kept clips; the earlier rulings in the seed's `edits.json`, once; one ruling set or cleared. A render leaves out every clip ruled cut, not-him or read-aloud ([report-video.md](report-video.md#ruling-the-clips)) | | `fetch <project> --body` · `fetch <project> --dry-run [--json]` · `fetch <project> [--wait] [--json]` · `fetch <project> --status [--json]` · `… [--reason R]` · `… --refetch <clipId>[,…]` · `… --refetch-video <slug>/<id>` · `… --take <take>` | **Fetch windows** (the Cut tab's and the clip deck's button): every clip's window asked of the editor as ONE fetch-windows batch — `--body` prints the body and asks nobody; `--dry-run` the editor's plan (groups per platform, cached, in flight, unresolved); no flag starts it (one paced job per platform queue), `--wait` follows the jobs to their end and names each window a job failed; `--status` follows the last run's jobs once. Clips the montage rulings leave out are not asked for. `--refetch <clipId>[,<clipId>…]` evicts the cached windows that OVERLAP those clips' fetch spans first (the editor's `evict-clips` `{slug, id, covering}`, one job per video, waited for), then fetches as usual — for windows known bad (cut from a corrupt saved video); `--refetch-video <slug>/<id>` does it for every window the project asks of that video; with `--dry-run` the eviction is a dry run too and names what it would remove. `--take <take>` asks for a TAKE's clips instead — its manifest as its walk reads it (the project's now with the take's patches; a draft's too, nothing rendered), so a clip only the take has is fetched; the run is recorded with `take`, and `--status --take` follows the take's last run (the cut's never reads a take's). Every run is recorded in `<project>/fetch-runs.json` (a refetch's evictions under `refetch`). Needs WORKER_TOKEN (else the editor's env files) and the editor at ARCHILYZER_EDITOR_URL. **Exit 1** when a job failed or the editor refused ([report-video.md](report-video.md#fetching-the-windows-and-stand-ins)) | | `prep <project> [--clips a,b] [--json]` · `prep <project> [--clips a,b] --wait` · `prep <project> --status [--json]` · `… --take <take>` | **Prepare clips for the walk** (the Cut tab's): what the clip bench makes on a clip's first open — a long recording's excerpt, the waveform — made ahead ([clip-bench.md](clip-bench.md#prepared-before-you-open-it)). No flag queues it and returns (a runner starts in the background, its log `out/bench-excerpts/prep.log`); `--wait` runs it here to the end; `--status` prints ready / to prepare / failed / not fetched and the runner. One clip at a time, each in the heavy slot (estimate 400 MB), under `nice -n 19` and `ionice -c3`; a prepared clip is skipped. A fetch that lands and a write that moves or adds a clip queue it too (`UMTOOL_BENCH_PREP=0` turns that off). `--take <take>`: a TAKE's clips (the take's walk page has the same button) — its manifest as its walk reads it, a draft's too — with its own status, queue, runner and log under `out/bench-excerpts/takes/<take>/`, so a take's clip that carries the cut's id with other bounds never shares the cut's state; a save on the take's walk queues it. The plan does not depend on the directory it is run from. **Exit 1** when a clip failed (`--wait`) | diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md @@ -721,6 +721,28 @@ length here ([report-video.md](report-video.md#trailer-from-the-master)). | move, remove, the cut's order | ↑ ↓ **remove**; **Order by the cut** | `move <n> --to <m>` · `remove <n>` · `order` | `{op: "move", index, to}` · `{op: "remove", index}` · `{op: "order"}` | | the limit, the crossfade, the intro | **limit** (a platform, or seconds), **crossfade**, **open on the brand intro** | `limit <s\|m:ss\|x\|instagram\|shorts\|tiktok\|default>` · `xfade <s>` · `intro on\|off` | `{op: "settings", limit?, xfade?, intro?}` | | the walk's ★ clips | **★ from the walk**: each **Add** | `umtool trailer-beats <p> candidates [--add]` | `GET` (`candidates`) | +| undo the last write (every write is an undo point) | **Undo** (the beats); **Undo last write** / `U` (the reel's walk) | `umtool trailer-beats <p> undo` | `{op: "undo"}` | + +### Beat reels: more than one, played, walked and cut from the master + +A project has as many reels as it wants -- the X trailer, a teaser, a "Kirsche-first" cut -- each its own file, +`promo/<name>-beats.json` (`trailer` is `promo/trailer-beats.json`, its path unchanged), with its own limit, crossfade, +intro, `title` and `take` (the take it is cut from, pinned; else the take it was last cut from, else the latest take +with a finished master). Every command and route above takes the reel (`--reel <name>`, `reel` in the body or query; +default `trailer`). A reel is PLAYED and WALKED from a take's **rendered master** (`takes/<t>/out/<slug>.mp4`): each +beat is the span `umtool trailer` cuts (`lib/report/reelPlay.mjs`, the trailer's own `planTrailer` over the take's +build records, the edges as written), so the chrome on screen is the final render's and the preview is seeks, not a +build. A reel whose takes have no master says so and links the render (the Takes page); nothing renders on its own. +Its cut is `takes/<t>/out/<slug>.<name>.mp4` (the trailer reel: `<slug>.trailer.mp4`), with `<…>.trailer.json` beside it. + +| | In umtool | From a terminal | Route | +|---|---|---|---| +| the reels; a new one (empty, or a copy) | the Trailer page's **reels** row, **+ New reel** | `umtool trailer-beats <p> reels [--json]` · `new-reel <name> [--from <reel>] [--title T]` | `GET /api/report/trailer-beats` (`reels`) · `{op: "new-reel", name, from?, title?}` | +| a reel's title, the take it is cut from | **title** | `trailer-beats <p> --reel R title <text>\|none` · `take <t>\|none` | `{op: "settings", title?, take?}` | +| play the reel from a take's master: the crossfades, the clock against the limit, the strip of beats; `M` a note on the beat on screen (anchor `reel`), `E` walk it, `N`/`P` beats, `[`/`]` notes | **Play the reel** → `/projects/<p>/trailer/play?reel=&take=` (the take picker) | `umtool notes <p>` reads the notes | `GET /api/report/reel?project&reel&take` · the master: `GET /api/report/reel/media?project&take&what=master` | +| walk a beat: in/out handles on the master's frames (`[` `]` in, `,` `.` out, Shift 0.5 s; `I`/`O` at the playhead), saved in the clip's source seconds (`Enter`), the clip's quote and source clock, `B` back to the reel | **Walk it** / `E` → `/projects/<p>/trailer/walk?reel=&take=&beat=n` | `trailer-beats <p> --reel R set <n> <from>-<to>` | `{op: "set", index, patch: {start, end}}` | +| a beat's verdict: `confirmed` (Y, and on to the next) or `note` (a note left on it) | the walk's **Confirm (Y)** · **Note (M)** · **Clear verdict** | `trailer-beats <p> --reel R verdict <n> confirmed\|note\|clear` | `{op: "set", index, patch: {verdict}}` | +| cut it: a job on umtool's runner (one at a time, the heavy slot, its log, **Cancel**), the result playing with its local path | the Trailer page's **Cut the trailer** | `umtool trailer <p> --reel <name> [--take <t>]` | `POST /api/report/reel {project, reel, take}` · `?cancel=<job>` · `GET ?job=<id>` · the file: `…/reel/media?what=cut&reel=` | ## Takes: relabel, supersede, cancel, delete, fork as variant, compare diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -1381,6 +1381,31 @@ records each piece's master span, its source seconds (as asked and as cut), the master it came from and the encode time. The command prints the mapped spans and the total length; `--dry-run` prints them and writes nothing, and `--json` is for agents. +### Beat reels + +A project may have several reels -- the X trailer, a teaser, a cut that opens on one speaker -- +each a beats file of its own, `promo/<name>-beats.json` (the reel `trailer` is +`promo/trailer-beats.json`), with its own limit, crossfade, intro, title and the take it is cut +from. `umtool trailer <project> --reel <name> [--take <t>]` cuts one with its own settings to +`takes/<t>/out/<slug>.<name>.mp4` (the trailer reel keeps `<slug>.trailer.mp4`); with no `--take` +it uses the reel's pinned take, else the take it was last cut from, else the latest take with a +finished master, and says which. `umtool trailer-beats <project> --reel <name> …` edits one, and +`reels` / `new-reel <name> [--from <reel>]` list and make them. + +The Trailer page (`/projects/<p>/trailer?reel=<name>`) plays and walks a reel from a take's +rendered master, as the cut's Play and walk do for the cut. Each beat is mapped by the same +`planTrailer` the cut uses (`lib/report/reelPlay.mjs`), with the edges as written: the cut then +moves each edge into its pause, as above. **Play the reel** (`…/trailer/play`) plays the beats +back to back, the reel's crossfade dissolved in the browser. It shows the running clock against +the limit and a strip of the beats, and takes notes anchored to a beat (`M`; the `reel` anchor, +which `umtool notes` prints with the writer to use). **Walk it** (`…/trailer/walk?beat=n`) is the +bench over one beat. Its in/out handles and nudge keys work on the master's frames, and a save +writes the clip's source seconds. Each beat gets a verdict (`confirmed`, or `note`). Every write +goes through the one writer and leaves an undo point (`U`, **Undo**, `trailer-beats … undo`). +**Cut the trailer** runs `umtool trailer --reel` as a job on umtool's runner (the heavy slot, its +log, Cancel), and the file then plays on the page with its local path. A reel whose take has no +master says so and links the Takes page to render one. Nothing renders on its own. + ## Montages (`render.montage`) A cut of one phrase said many times — every "slow news day" — is a montage, and