Archilyzer · Source

archilyzer

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

commit 108ebb2d295bc314a6997b0d96217b89c3267e06
parent 2c4152940a0d1ae82cbe384c71a63afcf410f82e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 26 Oct 2026 12:53:08 -0400

umtool: a take started --from another keeps the brand intro's segment, so the first crossfade batch is reused too

The intro's record (brand-intro.intro.json) was not among the segment
files --from links, so a twin copied the intro in again from its cache:
a new inode and mtime, and the first crossfade batch missed.

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

Diffstat:
Mumtool/lib/report/takeFrom.test.mjs | 6+++---
Mumtool/report-to-video/build-video.mjs | 6++++--
2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/umtool/lib/report/takeFrom.test.mjs b/umtool/lib/report/takeFrom.test.mjs @@ -34,7 +34,7 @@ async function project() { // The other take, built: its segments, a pruned layer kept aside, a live one, a batch. const src = path.join(dir, "takes", "blurred", "out", "sourced"); for (const d of ["segments", "chrome/deck-frames", "chrome/deck", "chrome/feed-frames-nokey", "xfade-batches"]) await mkdir(path.join(src, d), { recursive: true }); - for (const f of ["s01.mp4", "s01.cut.json", "s01.attrib.txt", "s01.blur-0.txt", "s02.mp4", "s02.cut.json"]) await writeFile(path.join(src, "segments", f), `blurred ${f}`); + for (const f of ["s01.mp4", "s01.cut.json", "s01.attrib.txt", "s01.blur-0.txt", "s02.mp4", "s02.cut.json", "brand-intro.mp4", "brand-intro.intro.json"]) await writeFile(path.join(src, "segments", f), `blurred ${f}`); await writeFile(path.join(src, "chrome", "deck-frames", "frame_000001.png"), "png"); await writeFile(path.join(src, "chrome", "deck-frames", ".key"), "k1\n"); await writeFile(path.join(src, "chrome", "deck", "index.html"), "<html>"); @@ -64,10 +64,10 @@ test("linkFromTake: segments, keyed chrome frames (kept-aside ones too) and fini await writeFile(path.join(out, "sourced", "segments", "s02.mp4"), "the twin's own"); const got = await linkFromTake(p.dir, "twin", "blurred", out); const d = path.join(out, "sourced"); - for (const f of ["s01.mp4", "s01.cut.json", "s01.attrib.txt", "s02.mp4", "s02.cut.json"]) { + for (const f of ["s01.mp4", "s01.cut.json", "s01.attrib.txt", "s02.mp4", "s02.cut.json", "brand-intro.mp4", "brand-intro.intro.json"]) { assert.ok(sameFile(path.join(p.src, "segments", f), path.join(d, "segments", f)), f); } - assert.equal(got.segments, 5); + assert.equal(got.segments, 7); assert.ok(!existsSync(path.join(d, "segments", "s01.blur-0.txt")), "a file the build writes in place is not linked"); assert.deepEqual(got.frames, ["deck-frames", "stamp-frames"]); assert.ok(sameFile(path.join(p.src, "chrome", "deck-frames", "frame_000001.png"), path.join(d, "chrome", "deck-frames", "frame_000001.png"))); diff --git a/umtool/report-to-video/build-video.mjs b/umtool/report-to-video/build-video.mjs @@ -2147,9 +2147,11 @@ async function buildMontageWall({ M, entries, render, outDir, timeline, provenan /** * The files an entry's segment build writes in `segments/`: the picture and - * the records beside it. + * the records beside it (the brand intro's `.intro.json` too: with it, a take + * started `--from` another keeps the intro's file, and the crossfade batch + * over it, instead of copying the intro in again). */ -export const SEGMENT_FILE_SUFFIXES = Object.freeze([".mp4", ".cut.json", ".teaser.json", ".narration.json", ".quote.txt", ".attrib.txt", ".channel.txt"]); +export const SEGMENT_FILE_SUFFIXES = Object.freeze([".mp4", ".cut.json", ".teaser.json", ".narration.json", ".intro.json", ".quote.txt", ".attrib.txt", ".channel.txt"]); /** * Before an entry's segment is rebuilt: each of its files in `segDir` that is