Archilyzer · Source

archilyzer

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

commit b8664222eb8da49e57c6bb1ed45b41d4e178f9e0
parent 6d603c039a45a0880fa1ea9e448b55db0549947b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu,  5 Nov 2026 01:57:49 -0500

umtool: vertical --landscape builds a part of a take with only the deck markers it carries; the look's key list in the video-ops test

The 16:9 build of a short's items (umtool vertical --landscape) refused: the take's deck markers
follow entries the part does not carry. renderForPart (vertical-plan.mjs) keeps the markers after
entries it has. common's videoOps test names the look keys, format and vertical now among them.

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

Diffstat:
Mcommon/lib/report/draft/videoOps.test.ts | 2+-
Mumtool/lib/report/verticalCli.mjs | 2+-
Mumtool/report-to-video/vertical-plan.mjs | 11+++++++++++
Mumtool/report-to-video/vertical.test.mjs | 8+++++++-
4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/common/lib/report/draft/videoOps.test.ts b/common/lib/report/draft/videoOps.test.ts @@ -169,7 +169,7 @@ test("the look ops (release 38): look, slide and room through the look's own rul assert.match(r.applied[1]!.warnings![0]!, /the slide's knobs show once the join style is blur slide/); assert.deepEqual( r.refused.map((x) => x.why), - ["render.transition must be a number of seconds from 0 (a hard cut) to 3", '"chrome" is not a look setting (headerHeight, footerHeight, qr, transition, transitionStyle, loudness, captions, room, slide, blur, intro)'], + ["render.transition must be a number of seconds from 0 (a hard cut) to 3", '"chrome" is not a look setting (headerHeight, footerHeight, qr, transition, transitionStyle, loudness, captions, room, slide, blur, intro, format, vertical)'], ); assert.equal((manifest.render as { transition: number }).transition, 0.4, "the input is not touched"); }); diff --git a/umtool/lib/report/verticalCli.mjs b/umtool/lib/report/verticalCli.mjs @@ -184,7 +184,7 @@ export async function verticalCommand(args, { reportsRoot = REPORTS_ROOT, log = made = await RF.reframeTake({ takeDir, outDir, slug, beats, items, plan, render: { ...takeManifest.render, vertical: { ...(takeManifest.render?.vertical ?? {}), ...knobs } }, outFile, log: say }); } else if (landscape) { const renderPath = path.join(dir, `.vertical-${take}-${name}.render.json`); - await writeFile(renderPath, JSON.stringify({ ...takeManifest, timeline: plan.timeline }, null, 2) + "\n", "utf8"); + await writeFile(renderPath, JSON.stringify({ ...takeManifest, render: P.renderForPart(takeManifest.render, plan.timeline), timeline: plan.timeline }, null, 2) + "\n", "utf8"); const own = path.join(takeDir, `out-landscape-${name}`); const argv = [process.execPath, path.join(PIPELINE_DIR, "build-video.mjs"), renderPath, "--out", own, "--skip-fetch", "--no-chapters"]; say(`vertical --landscape: building ${plan.timeline.length} item(s) 16:9 in the heavy slot …`); diff --git a/umtool/report-to-video/vertical-plan.mjs b/umtool/report-to-video/vertical-plan.mjs @@ -147,3 +147,14 @@ export function layoutTag(knobs = {}, { reframe = false } = {}) { if (knobs.side) parts.push(knobs.side); return parts.length ? parts.join("-") : "vertical"; } + +/** + * A take's render for a PART of its timeline (the landscape build of a short's items): the deck's markers that + * follow an entry the part does not carry are left out (the deck refuses a marker after a missing entry). + */ +export function renderForPart(render, timeline) { + const ids = new Set((timeline ?? []).map((e) => String(e?.id ?? "").replace(/~\d+$/, "")).concat((timeline ?? []).map((e) => e?.id))); + const deck = render?.chrome?.deck; + if (!isObj(deck) || !Array.isArray(deck.markers)) return render; + return { ...render, chrome: { ...render.chrome, deck: { ...deck, markers: deck.markers.filter((m) => isObj(m) && ids.has(m.after)) } } }; +} diff --git a/umtool/report-to-video/vertical.test.mjs b/umtool/report-to-video/vertical.test.mjs @@ -7,7 +7,7 @@ import { } from "./vertical.mjs"; import { postLayout } from "./post-item.mjs"; import { applyLookPatch, validateLook } from "yt-dlp-transcript-common/lib/report/look.mjs"; -import { beatsOf, cutClip, layoutTag, piecesWhole, planVerticalCut } from "./vertical-plan.mjs"; +import { beatsOf, cutClip, layoutTag, piecesWhole, planVerticalCut, renderForPart } from "./vertical-plan.mjs"; import { masterSpans, reframeGraph, spanRegions } from "./reframe.mjs"; const W = 1080; @@ -235,3 +235,9 @@ test("landscape side panel: a third of the picture, at its right or left", () => assert.ok(g.x + g.w <= 1920); assert.equal(landscapeSideGeometry({ x: 0, y: 56, w: 1920, h: 1024 }, "left").x < 100, true); }); + +test("a part of the timeline keeps only the deck's markers after entries it carries", () => { + const render = { fps: 30, chrome: { deck: { markers: [{ after: "a", label: "A" }, { after: "z", label: "Z" }] } } }; + assert.deepEqual(renderForPart(render, [{ id: "a" }, { id: "b~2" }]).chrome.deck.markers, [{ after: "a", label: "A" }]); + assert.equal(renderForPart({ fps: 30 }, []).fps, 30); +});