Archilyzer · Source

archilyzer

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

commit 10756f177d0ead47b3fd1b38cd29643a7358d090
parent 32a75a7eed175b464a21a450c0e05440eb7f4ccb
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 26 Oct 2026 23:15:40 -0400

report-to-video README: the chunked final encode and chrome frame reuse

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

Diffstat:
Mumtool/report-to-video/README.md | 32++++++++++++++++++++++++++++++--
1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md @@ -1886,6 +1886,34 @@ parsing — wrapping the expression in single quotes is what protects them. those changes touch, then the last pass, and files of a stale key are removed when the next batched build starts. Past 24² segments the batches grow instead, so the last pass stays 24 inputs wide. +- **The final encode is in keyed chunks** (`chunked-encode.mjs`, lane + fast-rerender). The cut's picture is encoded as runs of frames, each from the + few segments it touches -- crossfaded exactly as the whole-cut graph does it + (a lossless test checks it frame for frame), trimmed by frame number, the + chrome frames of its span laid over, its dips drawn -- at the cut's own + encoder settings, then joined by stream copy with the sound, which is one + pass over the whole cut. A chunk starts where a segment is fully in (its start + plus the crossfade) and runs to the same point of the next, cut every 1800 + frames from there; its key is its inputs' CONTENTS (each segment's bytes, the + sha1 of every chrome frame it reads), its graph in its own clock and the + encode settings. So a re-render encodes only the chunks whose pixels can + differ, and an insert or a longer intro moves every later chunk without + changing its key. `out/<variant>/chunks/` holds them (`chunks.json` says what + each was made of); `rebuild.ndjson` beside it logs, per build, what each + phase reused and what it rebuilt and why. `REPORT_VIDEO_CHUNK_JOBS` (default + 2) encodes that many at once; `REPORT_VIDEO_CHUNKED=0` or + `render.chunkedEncode: false` goes back to the batched single pass. It needs + no crossfade batches: no chunk opens more than a few segments. +- **Chrome frames are reused by their keys** (`frame-keys.mjs`). The deck, the + stamps, the feed and the finale are cue-interpreter pages, so what a frame + draws is the page less its cue list plus every element's value at that frame + (computed as GSAP draws it). A layer whose page changed is assembled from the + frames on disk with the same key -- its last render, or the one `take --from` + linked beside it -- and only the rest are captured, in ONE render of the page + that plays just those frames. Cue times sit on a 1/240 s grid + (`deck.mjs cueTime`, stamps on whole frames) so a moment the cut moved draws + exactly what it drew. A change every frame shows (a title, the pips after an + insert) still renders the layer whole. ## Two cuts from one manifest (`--variant`) @@ -1924,8 +1952,8 @@ out/ availability.json SHARED — a fact about the manifest, not about a cut <slug>.mp4 sourced <slug>-full.mp4 full - sourced/{cards,segments,qr,chrome,xfade-batches,schedule.json} - full/{cards,segments,qr,chrome,xfade-batches,schedule.json} + sourced/{cards,segments,qr,chrome,chunks,xfade-batches,schedule.json,rebuild.ndjson} + full/{cards,segments,qr,chrome,chunks,xfade-batches,schedule.json,rebuild.ndjson} ``` `xfade-batches/` exists only for a cut long enough to be crossfaded in batches