Archilyzer · Source

archilyzer

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

commit a98b2270962ac2bcfe7599d940fcc2eef2e17125
parent bf7e2880d9b0d341d3aa7ea5609b47286441924c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed,  4 Nov 2026 20:01:45 -0500

umtool: a join's shot of the item before follows the path ITS segment took -- its own join's opening anchor, kept in its record (`joinAnchor`) and read back (a read that never pans again ends where it opened: mid-7's 430 s boundary opened panned elsewhere); the anchor is in the joined item's key

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

Diffstat:
Mumtool/report-to-video/post-render.mjs | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/umtool/report-to-video/post-render.mjs b/umtool/report-to-video/post-render.mjs @@ -429,6 +429,8 @@ export async function renderPostCards(entry, { box, render, dir, manifestDir, la } if (pf) { const pgeo = await page.evaluate(measureFollow); + // Its own join's opening frame (its record's `joinAnchor`): a read that never pans again ends where it opened. + if (pgeo && Number.isFinite(joinFrom.anchorY)) pgeo.joinAnchor = { y: joinFrom.anchorY }; const st = followStateAt(pf, followPath(pf, pgeo), endS); await page.evaluate(applyFollowState, st); if (pf.visits?.length) await page.evaluate(applyVisitState, { visits: pf.visits, st: st.visit ?? null }); @@ -503,6 +505,7 @@ export async function renderPostCards(entry, { box, render, dir, manifestDir, la return c && w ? { win: w.top - c.top, width: c.width, head: head && slot ? head.top - slot.top : 0 } : null; }); if (own) geo.joinAnchor = { y: Math.round((join.anchor / (join.A.width / own.width) - own.win - own.head) * 100) / 100 }; + if (geo.joinAnchor) out.joinAnchor = geo.joinAnchor.y; } out.follow = await shootFollow(page, { follow, total, fps, box, dir, geo }); // THE BRANCH MAP (post-branch-map.mjs): its own layer, shot on a transparent page, laid over the attachments. @@ -995,7 +998,7 @@ export function postSegmentKeyOf({ entry, redaction = null, box, place = [], ren ...(slursOn(redaction?.slurs) ? { slurs: redaction.slurs } : {}), // `jv`: the join's drawing (POST_JOIN_DRAW_V) and what the item before showed as it ended beyond its card -- its // clock (where this one's starts) and its parent's shot. - ...(from ? { joinFrom: { entry: from.entry, follow: from.plan.follow ?? null, total: from.plan.total, media: from.media.map((x) => [x.m.src, x.t, x.box]), fadeIn: from.fadeIn, jv: POST_JOIN_DRAW_V, clock: from.clock ?? null, ...(from.carry ? { carry: from.carry } : {}) } } : {}), + ...(from ? { joinFrom: { entry: from.entry, follow: from.plan.follow ?? null, total: from.plan.total, media: from.media.map((x) => [x.m.src, x.t, x.box]), fadeIn: from.fadeIn, jv: POST_JOIN_DRAW_V, clock: from.clock ?? null, ...(from.carry ? { carry: from.carry } : {}), ...(Number.isFinite(from.anchorY) ? { anchorY: from.anchorY } : {}) } } : {}), ...(plan.panel ? { panel: plan.panel } : {}), ...(layout?.panel === "top" || layout?.panel === "bottom" ? { layout: { panel: layout.panel, card: layout.card, slot: layout.slot } } : {}), // A caption, the clock, the pace (post-caption.mjs, post-clock.mjs): nothing for an item with none of them. @@ -1062,8 +1065,11 @@ export async function buildPostSegment(entry, { render, outDir, manifestDir, box const be = panelEntry(sceneEntry(censorEntry(bf.entry, redaction), bf.mediaScene ?? null, { censor: (e) => censorEntry(e, redaction) }), render); carry = joinCarryOf(be, postItemPlan(be, render, { prev: bf.prev ?? null, scene: bf.scene ?? null, mediaScene: bf.scene ? null : bf.mediaScene ?? null, join: bf.join ?? null }), box, render); } + // Where ITS read opened (its own join's anchor, in its record): its last frame is drawn from the same path. + const prevRec = joinFrom.join ? await readFile(postRecordPath(path.join(outDir, "segments", `${joinFrom.entry.id}.mp4`)), "utf8").then((t) => JSON.parse(t), () => null) : null; from = { entry: pe, plan: pp, carry, + anchorY: Number.isFinite(prevRec?.joinAnchor) ? prevRec.joinAnchor : null, // Its clock (post-clock.mjs) as its own segment runs it: from the clock item before IT. clock: clockPlan(pe, render, joinFrom.prev ?? null), media: held ? [] : ends.map((x, j) => ({ file: path.resolve(manifestDir, x.m.src), m: x.m, t: x.t, box: eb[j] })), @@ -1148,7 +1154,7 @@ export async function buildPostSegment(entry, { render, outDir, manifestDir, box // The follow frames are in the segment now: a rebuild shoots them again (they are many, and the key decides). if (cards.follow) await rm(path.dirname(cards.follow.list), { recursive: true, force: true }); // Through a rename: a record `--from` linked in (another take's) is replaced, never written through. - await writeFile(`${record}.tmp`, JSON.stringify({ version: 1, id: entry.id, key, layout: layout.mode, total: plan.total, steps: plan.steps.length, ...(zooms.length ? { zooms: zooms.map((z) => ({ i: z.i, at: z.t, source: z.source, span: z.span, region: z.region, word: z.word })) } : {}), ...(cards.captions?.length ? { captions: cards.captions.map((c) => ({ i: c.i, at: c.t, source: c.source, span: c.span, place: c.placed.place, rel: c.placed.rel, box: { x: c.placed.x, y: c.placed.y, width: c.placed.width, height: c.placed.height }, word: c.placed.word, covers: c.placed.covers, leader: c.placed.leader, ...(c.cutByPan ? { cutByPan: c.cutByPan } : {}) })) } : {}), ...(narration ? { narration: { take: take.file, ...plan.narration, gainDb: narration.gainDb, measured: narration.lufs, ...(bleeps ? { slurs: { mode: bleeps.mode, spans: bleeps.spans } } : {}) } } : {}), ...(cards.follow ? { follow: { blocks: plan.follow.blocks.length, shots: cards.follow.shots, frames: cards.follow.frames, pan: cards.follow.path.segments.length, max: cards.follow.path.max } } : {}) }, null, 2) + "\n", "utf8"); + await writeFile(`${record}.tmp`, JSON.stringify({ version: 1, id: entry.id, key, layout: layout.mode, total: plan.total, steps: plan.steps.length, ...(zooms.length ? { zooms: zooms.map((z) => ({ i: z.i, at: z.t, source: z.source, span: z.span, region: z.region, word: z.word })) } : {}), ...(cards.captions?.length ? { captions: cards.captions.map((c) => ({ i: c.i, at: c.t, source: c.source, span: c.span, place: c.placed.place, rel: c.placed.rel, box: { x: c.placed.x, y: c.placed.y, width: c.placed.width, height: c.placed.height }, word: c.placed.word, covers: c.placed.covers, leader: c.placed.leader, ...(c.cutByPan ? { cutByPan: c.cutByPan } : {}) })) } : {}), ...(narration ? { narration: { take: take.file, ...plan.narration, gainDb: narration.gainDb, measured: narration.lufs, ...(bleeps ? { slurs: { mode: bleeps.mode, spans: bleeps.spans } } : {}) } } : {}), ...(cards.follow ? { follow: { blocks: plan.follow.blocks.length, shots: cards.follow.shots, frames: cards.follow.frames, pan: cards.follow.path.segments.length, max: cards.follow.path.max } } : {}), ...(Number.isFinite(cards.joinAnchor) ? { joinAnchor: cards.joinAnchor } : {}) }, null, 2) + "\n", "utf8"); await rename(`${record}.tmp`, record); emit("note", { message: narration