commit d3ea193a58298bff55bc955a1deb99b7d337dd06
parent 658655faf5822f890df7b0350da82fb63b43263d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 17 Oct 2026 17:18:41 -0400
umtool: render.montage documented (README, docs/report-video.md, FACTS, CHANGELOG); the tally's date line on its own ground
The live smoke on real clips showed a tally's date line running off its short ground and unreadable over a
white page; it is drawn on a ground of its own now.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
5 files changed, 111 insertions(+), 1 deletion(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **Report videos can be montages.** A cut of one phrase said many times can now be edited as one: each clip cut tight to the phrase as said (found in its captions, or in whisper's word timings when the corpus keeps them) and snapped to the pauses around it; a white flash, a whip or a dip to black on every cut; a running count on the picture (a small "#12 · 2 May 2019 · YouTube", a big number that slams in, or tally marks), the year large in a corner when it changes; a punch-in as the phrase starts or a slow zoom; the end of the phrase repeated on chosen clips ("…news day-day-day"); clips that get shorter toward the end; and a closing wall of 9, 16 or 25 clips filling in and then all saying it together. All of it is set under `render.montage` in the video manifest, and none of it is a card. Six named styles to audition — Straight, Flash and count, Accelerate, Stutter, Wall finale, Whip and years — are listed by `node umtool/report-to-video/montage-styles.mjs list`, and `apply <style> <manifest> --out <file>` writes a manifest with one applied. A manifest without `render.montage` renders exactly as before.
- **`pnpm heavy` caps what it runs.** A command admitted to the heavy slot through `pnpm heavy -- <cmd>` (or `scripts/queue-lock.mjs --heavy`) now runs in a memory-capped systemd user scope of its own — 8 GB, 2 GB of swap — so a runaway render or build is stopped in its scope instead of taking the desktop session down. A command that sets its own `MemoryMax=`, or one started from inside a capped unit or scope (the live editor and umtool, a publish stage's build), is run as before. `HEAVY_CAP=0` turns it off; `HEAVY_CAP_MB` and `HEAVY_CAP_SWAP_MB` size it.
- **A media move says how far its copy got again with the newer rsync.** rsync 3.5.1 as packaged since mid-October writes its progress with a unit on the byte count and an unscaled rate, which the move did not read: the job showed no progress bar and no "Copying… · N % ·" lines, and the log filled with rsync's raw redraws. Both forms are read now, and the rate reads as before (for example 1.16GB/s). Needs a restart of the editor.
- **A full download from Odysee's stored media URL survives a dropped connection.** When the connection to the file's server drops mid-file (`fetch failed`, a reset, a timeout, a body cut short), the same download now checks what came down, pauses 45 seconds, opens the video's page again and goes on from the last clean byte — it no longer ends the job. Each one is in the job log as "Connection dropped at <bytes> — reopening the page and resuming (k of 6)". After six drops in a row with no progress the download stops and keeps what it has for the next run, as before. A refusal that follows bytes the server served is handled the same way; a refusal straight after the page was opened still stops at once. A continuation is not a new file: it does not wait the 20-minute rest between files, and the whole run is still one attempt on the video's record (one of the two full-audio attempts before a salvage). The attempt records how many continuations it took. Needs a restart of the editor.
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -10387,3 +10387,25 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri
`dropGapBytes` (default `dropAfterBytes`; 0 = every later request cut before its first byte): the cut is mid-body
(headers + part of the body, then the socket destroyed) or, on a request's first byte, before any response; a cut
request is `dropped: true` with the bytes it sent. `cdn.lock()` takes an unlock back.
+
+## Release 33 lane M3: montage editing in report-to-video (verified 2026-10-17, branch `r33/montage`)
+
+- `render.montage` (object; absent or `null` = off) is read only by `umtool/report-to-video/montage.mjs` (pure) and
+ the montage hooks in `build-video.mjs`; without it every argv is unchanged (a 4-clip render on `main` and on the
+ branch: identical md5 for the final and every segment). Keys: `tighten`, `phrasePad`, `cut`, `flashColor`,
+ `counter`, `punch`, `stutter`, `ramp`, `wall`, `yearStamp` (`MONTAGE_KEYS`; README "`render.montage`").
+ `validateMontage` is in the build's validators and `lint.mjs` `validatorErrors`.
+- A clip's phrase is `montage.match`, else `onscreen.title`; its date `montage.date` (YYYYMMDD) → `date` → the
+ record's `uploadDate`; its source `montage.platform`. Word timing: whisper.cpp full JSON in the corpus's
+ `transcript.json` (`transcription[].tokens[].offsets` in ms) first, else the cues by character position. Parakeet's
+ `chunk_data` and YouTube cue files carry no word offsets.
+- Montage cuts are made inside each clip segment, so a montage's concat is always the hard-cut stream copy (`D = 0`
+ whatever `render.transition` says). A segment's frames are planned exactly (`floor((cutB−cutA)·fps)` plus stutter
+ repeats) and recorded in `<id>.cut.json` `montage: {phrase, found, tight, frames, seconds, pieces}`.
+- The wall is a segment with no timeline entry: `segments/montage-wall.mp4` (+ `.cut.json` `montageWall`), tiles in
+ `segments/montage-wall/<clipId>.mp4`; the build appends `{type: "montage-wall", id: "montage-wall", title: "All
+ together"}` to its entries (chapters, `--chapters-only`), and `verify-build` counts it as one more chapter.
+- `montage-styles.mjs` is the interface umtool's take maker reads: `MONTAGE_STYLES: Record<name, {label, summary,
+ patch}>` (patch = RFC 7386 merge patch, `{render: {montage: {…every key…}}}`), `montageStyle(name)` (deep copy or
+ null), `mergePatch`, `applyMontageStyle`; CLI `list [--json]` / `apply <style> <manifest> [--out]`.
+- A montage refuses `render.chrome` (the deck), `render.rail`, `chromeEngine: "hyperframes"` and any clip `muteFrom`.
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -724,6 +724,28 @@ anyway**; a umtool job working in the project refuses. Its verdict row and the
notes on it are kept: the agent reads them back, and a verdict on a take that is
gone shows as missing.
+## Montages (`render.montage`)
+
+A cut of one phrase said many times — every "slow news day" — is a montage, and
+`render.montage` gives it its editing: each clip cut tight to the phrase
+(`tighten: "phrase"`, ± `phrasePad`), a cut style (`flash`, `whip`, `dip` or
+`hard`), a running counter (`chip`, `big` or `tally`, with the date and the
+source), a punch-in (`snap` at the phrase, or a slow `drift`), a `stutter` on
+chosen clips, a `ramp` that shortens the clips toward the end, a `wall` of 9, 16
+or 25 tiles saying it together, and a `yearStamp` when the year changes. All are
+overlays on the footage or the footage itself — never a card. A clip's phrase is
+its `montage.match` (else `onscreen.title`), its date `montage.date`.
+
+Every key, its values and where each is made: [report-to-video
+README](../report-to-video/README.md#rendermontage--montage-editing-release-33).
+The build and `--lint` refuse an unknown key or a bad value, saying which, and a
+montage beside the deck, the rail or a clip's `muteFrom`.
+
+The named styles (`report-to-video/montage-styles.mjs`) are the ones worth
+auditioning as takes: **Straight**, **Flash and count**, **Accelerate**,
+**Stutter**, **Wall finale**, **Whip and years**. Each is a merge patch that
+sets every montage key, so applying one over another leaves exactly the second.
+
## Operator notes, timed notes and the generated-manifest guard
Notes on a project live in `<project>/notes.json` (shape and CLI:
diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md
@@ -12,6 +12,7 @@ Two scripts and a manifest:
| `render-cards.mjs` | stable | draws the timeline footer and marker, plus optional card stills. Imported by `build-video.mjs`. |
| `resolve-windows.mjs` | stable | widens clip windows from cue spans to whole sentences. Run once after authoring a manifest. |
| `brand.mjs`, `brand-cards.mjs` | stable | the opt-in brand preset (`render.brand`); see [its section](#the-archilyzer-media-preset-renderbrand). |
+| `montage.mjs`, `montage-styles.mjs` | stable | montage editing (`render.montage`) and its named styles; see [its section](#rendermontage--montage-editing-release-33). |
| `<report>/video.manifest.json` | per report | the edit decision list. **This is the regeneration source of truth**, not the report. |
```
@@ -725,6 +726,66 @@ recordings' dates; the quote, verbatim); a thread's outcome is its last clip's
`claim.verdict`. Each task refuses a cut that has the other panel, unless
forced over a draft of it, which it then replaces.
+### `render.montage` — montage editing (release 33)
+
+A montage is one phrase said many times: dozens of short clips, cut tight, run
+in order. `render.montage` turns on the techniques for it. All of it is opt-in;
+a manifest without `render.montage` (or with `null`) renders byte for byte as
+before. Each clip's phrase is its `montage.match` (what
+the phrase seed writes), else its `onscreen.title`; its date is
+`montage.date` (`YYYYMMDD`), else `date`, else the record's upload date; its
+source is `montage.platform`.
+
+```jsonc
+"render": { "montage": {
+ "tighten": "phrase", // "phrase" | "sentence" | null (null and "sentence": today's cut)
+ "phrasePad": 0.6, // seconds kept either side of the phrase
+ "cut": "flash", // "hard" | "flash" | "whip" | "dip"
+ "flashColor": "white", // "white" | "accent" | "#rrggbb"
+ "counter": { "style": "chip", "position": "top-left", "of": false, "showDate": true, "showSource": true },
+ "punch": { "mode": "snap", "scale": 1.15, "anchor": "upper" },
+ "stutter": { "every": 5, "clips": ["s12"], "times": 3, "length": 0.35, "step": 0.04 },
+ "ramp": { "from": 4, "to": 1.4 },
+ "wall": { "at": "end", "tiles": 16, "build": 8, "year": true },
+ "yearStamp": true
+} }
+```
+
+| key | what it does |
+|---|---|
+| `tighten: "phrase"` | Cuts each clip to the phrase ± `phrasePad`, never outside the clip's `start`/`end`. The phrase is found in the clip's cues by character position (a cue's characters spread evenly over it), or by whisper.cpp's token offsets in the corpus's `transcript.json` when it keeps them. Each edge then snaps to the nearest silence within `snapWindow`, as every cut does, but only where the snap stays outside the phrase. A phrase not found keeps today's cut and says so (`note`). |
+| `cut` | `flash`: the first 3 frames of each clip fade from the flash colour. `dip`: 2 frames to black before the cut and 2 up from it. `whip`: the last 4 frames slide out left and the first 4 slide in from the right, blurred along the move. `hard`: none. The cut's first and last segments have nothing to cut from or to. Every segment's sound fades in and out over 15 ms (no click). |
+| `counter` | An overlay, never a card. `chip`: "#12 · 2 May 2019 · YouTube" on a translucent ground, the whole clip. `big`: the number, large in the accent colour, slamming in on each cut and gone by 1.5 s, the date under it. `tally`: tick marks in fives, the newest landing in the accent. `of: true` adds "of N". Corners: `top-left`, `top-right`, `bottom-left`, `bottom-right`. |
+| `punch` | `snap`: the picture jumps to `scale` (1.15) at the phrase's onset. `drift`: a slow zoom from 1 to `scale` (1.08) over the clip. `anchor: "upper"` holds the upper third (where a face usually is); `"center"` the middle. |
+| `stutter` | On every `every`th clip and on the clips named in `clips`: the phrase's last `length` seconds are heard `times` times in all (2–4), each repeat `step` more zoomed — "…news day-day-day". The clip is that much longer. |
+| `ramp` | Clip k's cut is at most lerp(`from`, `to`, k/(N−1)) seconds — the first `from`, the last `to` — trimmed evenly around the phrase, never into it. Needs `tighten: "phrase"`. |
+| `wall` | One more segment at the `end` (or `start`): a grid of 9, 16 or 25 tiles, each playing a clip's phrase (clips spread first to last; fewer clips than tiles go round again). Tile i appears at build·(1−(1−i/tiles)²) seconds, so the last come fastest; the newest tile is heard, the rest ducked; at `build` every tile says it together, then the cut. `year: true` labels each tile with its year. Its chapter is "All together". |
+| `yearStamp` | On the first clip of each year, the year large in the corner across from the counter for about a second. |
+
+**Where it is made.** Everything except the wall is inside each clip's own
+segment encode: the trim points, the pieces (punch-in, stutter, drift), the cut
+style on the segment's first and last frames, the drawtext/drawbox overlays.
+So the concat stays the stream copy of hard cuts — a montage is joined hard
+whatever `transition` says — no chrome layer is rendered, and each segment's
+length is known to the frame before it is encoded (`<id>.cut.json`'s
+`montage.frames`). The wall's tiles are small files in
+`segments/montage-wall/`, composited into `segments/montage-wall.mp4`.
+
+**Validation.** The build's validators and `--lint` refuse unknown keys and bad
+values in words that say which, and a montage beside `render.chrome` (the deck),
+`render.rail`, `chromeEngine: "hyperframes"` or a clip's `muteFrom`.
+
+**Named styles.** `montage-styles.mjs` holds the styles worth auditioning as
+merge patches (RFC 7386) on the manifest: `straight`, `flash-count`,
+`accelerate`, `stutter`, `wall-finale`, `whip-years`. Each sets every montage
+key, so one over another leaves exactly the second. umtool's take form lists
+them; from the terminal:
+
+```
+node umtool/report-to-video/montage-styles.mjs list
+node umtool/report-to-video/montage-styles.mjs apply flash-count video.manifest.json --out takes/flash/video.manifest.json
+```
+
### `publish.youtube` — the upload's text (`out/youtube.txt`)
```jsonc
diff --git a/umtool/report-to-video/montage.mjs b/umtool/report-to-video/montage.mjs
@@ -790,7 +790,11 @@ export function montageOverlayFilters({ settings, ctx, render, font }) {
);
});
if (words.line) {
- out.push(dt({ text: `'${words.line}'`, fontsize: small, fontcolor: fg, x: x0 + pad, y: y0 + pad + t.height + Math.round(small * 0.35) }));
+ // On a ground of its own: the line is wider than a short tally.
+ out.push(dt({
+ text: `'${words.line}'`, fontsize: small, fontcolor: fg, box: 1, boxcolor: `${bg}@0.6`, boxborderw: pad,
+ x: x0 + pad, y: y0 + pad + t.height + Math.round(small * 0.35),
+ }));
}
}
}