Archilyzer · Source

archilyzer

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

commit ed42862a36c5fc149c2c441a613baab56dccdb5e
parent 94c3ff96738dbd1001e5643d58063f72396d0a5f
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 19 Oct 2026 16:01:28 -0400

docs: room at the clips' edges and the blur slide (report-video.md, FACTS, CHANGELOG)

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

Diffstat:
Meditor/CHANGELOG.md | 2++
Mplans/FACTS.md | 39+++++++++++++++++++++++++++++++++++++++
Mumtool/docs/report-video.md | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
3 files changed, 101 insertions(+), 4 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +- **Room at a report video's clip edges: a join no longer eats the end of a sentence.** With `render.room` (the Build tab's Look panel: **Room at the clips' edges**, Tail and Head), each clip's sound runs on past its cut to the first pause in its words — never more than 2.5 s — and fades there, then its picture keeps going, muted, for the length of the join, so the transition plays over quiet video; the clip after it starts the same length early, muted, when its first word comes straight away, so that word is not faded in under the join either. The words come from the project's word timings, else the transcript, else the sound's own silences. Captions stop where the sound does, and even loudness measures only what is heard. A clip cut from a downloaded window has only as much room as the window holds (the check says so; a saved whole video has plenty). The clip editor shades each clip's muted tail and head on the strip and has **Room at its edges** to turn it off for one clip. Highlights of a channel on no site now start with it on, and with 0.4 s blur slides. A manifest without `render.room` renders exactly as before. Needs a restart of umtool. +- **A report video's clips can blur-slide into each other.** `render.transitionStyle: "blurslide"` (the Look panel's Join: **blur slide**) slides the next clip in from the left while both sides of the cut are smeared sideways and lightly grained, for the join's length. A dip, a THEN/NOW wipe and a whip keep their own look. - **Find clips: the clip finder from one button on the video page.** A video page's **Find clips** runs the whole chain umtool's clip finder needs, as one job: it saves the source video, transcribes the recording, makes its word timings (kept beside the transcript as `words.json`, so a second project from the same recording reuses them), fetches the stream's chat replay (YouTube), finds who speaks when, and then asks umtool to find the narrated-video segments and propose the clips. Each step whose output is already on disk is skipped, and the job's log says which ran and which were skipped. When it is done the panel links the umtool project and lists the segments it found, each with **Find clips in this part**. A target length can be given. When the workers are paused or the backfill lane is held, the step that needs them stops with a sentence saying so, and **Run while paused** runs this one video past them. The button is off, with a line saying why, when the editor has no `UMTOOL_URL`. The same from a terminal: `pnpm ops find-clips --json '{"slug","id"}'` (a `dryRun` lists what each step would do). Needs a restart of the editor. - **Transcribe one video while the workers are paused.** With the transcription workers paused, the video page's Transcribe row offers **Transcribe now (workers paused)**: that one transcription runs on a worker the pause alone switched off, and the pause stays on — the worker is paused again when it finishes. A worker you drained, disabled by hand or that is marked degraded is never used, and the lanes stay held. `pnpm ops transcribe` and `transcribe-one` take `"whilePaused": true`. - **Fetch a stream's chat replay on its own.** Media tools → **Fetch live chat** on a video page (`pnpm ops fetch-chat`) fetches the video's live chat and nothing else, paced like every YouTube request and on the platform's download queue, into the chat cues the index and the clip finder read. A video on another platform says there is no chat fetcher for it, as does a chat already fetched or a video that was never live. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -10942,3 +10942,42 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri (disabled + `find-clips off` line without umtoolUrl), then the record's project link and `segments found` with `Find clips in this part` each. The Transcribe row's `Transcribe now (workers paused)` shows while the pool is paused. Media tools → `Fetch live chat`. + +## Release 36 lane E: room at the clip edges, the blur slide (verified 2026-10-19, branch `r36/blur-slide`) + +- **`render.room`** `{tail?: boolean, head?: boolean, minGap?: 0.1–2 (0.35), maxS?: 0–10 (2.5)}`; clip **`room`** + `false | {tail?: boolean, head?: boolean}` (beats the cut's per edge; `false` = none). An edge is on iff its key is + `true` (`{}` = off). Absent / `null` / neither edge = byte-identical (md5, in-suite). `validateRoom` + (`umtool/report-to-video/room.mjs`, export `umtool-report-to-video/room`) is called by `validateLook`, so the build's + validators, the lint and `updateRender` all check it; refused beside `render.montage`. `LOOK_KEYS` gains `room`. +- **When it applies**: build-video sets `dirs.room = {D, first}` only when `D > 0` (not `--no-xfade`, not a montage, + `render.transition` not 0), not a `--short`, and some clip has `clipRoom(e, render)`; `dirs.look` is read for its + words. `first` = `manifest.timeline[0].id` (that clip gets no head). Deck cuts get it too. +- **The rule** (file seconds; `cutA/cutB` = the snapped cut): words from `lookWordsFor(entry, …, src(cutA) − 1, + src(cutB) + maxS + 1)` (words.json → transcript.json → cues). TAIL `tailFromWords`: first word with `end > cutB`; if it + starts ≥ `cutB + minGap` → `cutB`; else extend through words while the gap to the next < `minGap`; cap `cutB + maxS`. + Cues whose run is capped, or no words → `silencedetect=noise=-35dB:d=0.3` over [min(cutA, cutB) − 0.5, + min(dur, cutB + maxS + 0.5)] (an open silence runs to the span's end): in a silence → `cutB`; else the next silence + start within maxS; none → `cutB`. HEAD (not the first clip): speech start = first word with `end > cutA` + (`max(cutA, start)`), from silences the end of the one holding cutA; muted head iff speech < `cutA + D`. + `roomPlan`: `picA = cutA − D` (clamped ≥ 0), `soundB = max(cutB, tail)`, `picB = soundB + D + 0.1` (clamped to the + file's duration → `clamped: ["tail"]`). Audio, after any `levelFilters(gain)`: `afade=t=in:st=head−0.06:d=0.06`, + `afade=t=out:st=soundB−picA:d=0.06` (afade silences before an in / after an out). +- **The cut record**: `start/end` = the PICTURE's span (`fetchStart + picA/picB`; muteFrom maps from it as before) + + `room: {sound: [srcA, srcB], head, tail, via: "words.json"|"transcript.json"|"cues"|"cues+silence"|"silence", + capped?, clamped?}`. Loudness measures `[cutA, soundB]`; captions read words of `[src(cutA), src(soundB)]` and + `seconds = soundB − picA` (`segmentCaptions({audible})`). Joins, chapters and offsets come from probed segment + lengths, unchanged. +- **Lint** `roomWindowWarnings`: a clip whose `cutEnd + maxS + D + 0.1 > end + fetchPad` (or head before + `start − fetchPad`) is warned "a fetched source clamps it"; room with `transition: 0` is warned "room does nothing". +- **Seed** `SITELESS_LOOK` = `{headerHeight: 0, footerHeight: 0, qr: false, transition: 0.4, transitionStyle: + "blurslide", loudness: {target: -16}, room: {tail: true, head: true}}` (was 0.5 / fadeblack, no room). +- **Clip editor**: op `room {clip, room: false | {tail?, head?} | null}` (updateClip "trim" edit, cut untouched; null + deletes); view `clips[].room` (as written), `clips[].roomEdges` (`{tail, head}` or null), `room {tail, head, minGap, + maxS, join}` (join = render.transition ?? 0.5, 0 in a montage). The strip draws `[data-strip-room="head"|"tail"]` from + `roomShade` (the rule on the unsnapped cut; no words → nominal D + 0.1 tail); toggle `[data-clip-room]`. Look panel: + `[data-look-room-tail]`, `[data-look-room-head]`. +- **The blur slide** (`transitionStyle: "blurslide"`, orchestrator's commit a012e9ff): xfade `slideright`; each + segment's last/first D s (only at a plain join: not a dip, wipe or whip) get `gblur=sigma=10:sigmaV=0.6` over D, + `gblur=sigma=16:sigmaV=0.6` over the D/2 nearest the seam, `noise=alls=7:allf=t+u` over D (`BLUR_SLIDE`, + `blurSlideEdges`, `enable=` windows in the segment's own `t`). diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md @@ -1088,7 +1088,8 @@ YouTube `&t=<s>s`, Twitch `?t=<h>h<m>m<s>s`, Rumble `?start=<s>`, anything else `t=<s>`), and a moved clip's link follows it (a link you wrote stays). The seed writes `provenance.channel` from the metadata and the look chosen for a one-video cut: `render` `headerHeight: 0, footerHeight: 0, qr: false, -transition: 0.5, transitionStyle: "fadeblack", loudness: {target: -16}`. With +transition: 0.4, transitionStyle: "blurslide", loudness: {target: -16}, room: +{tail: true, head: true}` (lane E; before it, 0.5 s `"fadeblack"`). With every clip linked, an empty `siteOrigin` is not a blocking decision. **From the editor** (release 36): `POST /api/report/clips {mode: "new", slug, @@ -1217,12 +1218,14 @@ render is byte for byte what it was), validated by the build and by the lint | clip `vertical` | `{crop: [x, y, w, h], aspect?}` | Fractions of the source picture: the box a vertical short is cut from, 9:16 on the source (`aspect` = the source's width / height, 16/9 when absent; within 3 %). Absent: the centred full-height box. | A site-less, one-video cut made by the clip finder starts with -`headerHeight: 0, footerHeight: 0, qr: false, transition: 0.5, -transitionStyle: "fadeblack", loudness: {target: -16}` (lane B's seed). +`headerHeight: 0, footerHeight: 0, qr: false, transition: 0.4, +transitionStyle: "blurslide", loudness: {target: -16}, room: {tail: true, +head: true}` (lane B's seed, with lane E's join and room). **The Look panel** (the Build tab, `/api/report/render`) sets them by hand: **Header**, **Timeline footer**, **QR code**, the length **Between clips** (0 is -a hard cut) and the **Join** (crossfade, dip to black, dip to white, dissolve), +a hard cut) and the **Join** (crossfade, dip to black, dip to white, dissolve, +blur slide), **Room at the clips' edges** (Tail, Head — below), **Loudness** (as recorded, −16 LUFS, or a custom target) and **Speaker captions** with each role's name and the size. **Save the look** writes only what changed (`lib/report/manifest.mjs` `updateRender`: token-guarded, the @@ -1254,6 +1257,59 @@ clip in the editor to frame it. From a terminal: `node umtool/report-to-video/build-video.mjs <project>/video.manifest.json --short <clipId>`. +## Room at the clips' edges, and the blur slide (release 36 lane E) + +A join of `render.transition` seconds fades over the last seconds of one clip +and the first of the next, so a tight cut loses the end of its last sentence +and the start of the next clip's first. **`render.room`** makes the join play +over quiet picture instead (`report-to-video/room.mjs`, validated by the build +and the lint through `validateLook`): + +| Key | Shape | What it does | +|---|---|---| +| `render.room` | `{tail?: true, head?: true, minGap?: 0.35, maxS?: 2.5}` | An edge is on when its key is `true`. **Tail:** from the cut's end the SOUND runs on to the first silence — the end of the run of words that crosses the cut's end or starts within `minGap` after it, the run stopping at the first gap of at least `minGap` between two words, never more than `maxS` past the cut's end — with a 60 ms fade there; the PICTURE then runs on, muted, for the join's length + 0.1 s. **Head:** when speech starts within the join's length of the cut's start, the picture starts that much earlier, muted, the sound fading in over the 60 ms before the cut's start (not on the cut's first clip). Not with a montage. | +| clip `room` | `false`, or `{tail?: boolean, head?: boolean}` | This clip's edges, whatever the cut says (`false`: none). | + +Absent, `null` or with neither edge on, the render is byte for byte what it +was. Room needs a join: with `render.transition` 0 it does nothing (the lint +says so), and a short has none. + +**The words** the rule reads: the project's `words.json` when the clip is from +the recording `reactions.json` describes, else the corpus transcript's whisper +words, else its cues spread over their words. With none — or a run of cues that +reaches the cap, which says the cues abut rather than that anyone talks on — +`silencedetect` on the clip's source (−35 dB, 0.3 s): the silence the cut's end +is in, else the next to start within `maxS`; none found leaves the sound at the +cut's end (a note says so). + +**Inside its source:** a saved whole video has room to spare; a fetched window +(the extent plus `fetchPad`) clamps the extension at its edge — the build notes +it, and the lint warns when a clip's room can reach past its window (widen the +extent, or fetch the source whole). + +The segment is the picture's span, and everything downstream measures it: the +cut record's `start`/`end` are the picture's (so a `muteFrom` still lands), and +`room: {sound: [from, to], head, tail, via, capped?, clamped?}` says what is +heard; captions are only the words heard and stop at the silence point; +`render.loudness` measures the audible part; the joins, the chapters and the +sound's sync come from the segments' lengths as ever (the cut is their sum less +the joins). + +**The clip editor** shades a clip's muted head and tail on the strip (the rule +on the cut as drawn; the build snaps the cut first) and says where its sound +stops; **Room at its edges** turns this clip's room off (`room: false`) or on +again. The Look panel's **Room at the clips' edges** sets `render.room`. + +**The blur slide** (`render.transitionStyle: "blurslide"`, the Join menu's +"blur slide"): the next clip slides in from the left (xfade `slideright`) while +both sides of the seam are smeared sideways and grained — each clip's last and +first `render.transition` seconds get a horizontal Gaussian blur (σ 10 across +the whole edge, and σ 16 more in the half nearest the seam, so ≈ 19 at it; +vertical σ 0.6, so it reads as motion, not focus) and a light temporal noise +(strength 7) — in the clip's own time, so a batched build's joins get it too +(`transition.mjs` `BLUR_SLIDE`). A dip, a THEN/NOW wipe and a whip keep their +own look. With room at both edges the slide runs over muted picture. + ## Operator notes, timed notes and the generated-manifest guard Notes on a project live in `<project>/notes.json` (shape and CLI: