commit 42133c0e274f5826bc4ceae690c2b3d1ddf94e04
parent 8ef4e347bd21709ff0770608dcd6f03694758740
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 18 Oct 2026 02:50:00 -0400
umtool: docs for montage polish — wall.spread/distinct/label and render.montage.loudness (README, docs/report-video.md, FACTS, CHANGELOG)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **Montages are level, and their walls don't repeat themselves side by side.** With `render.montage.loudness` (every montage style has it, at −16 LUFS), each clip and each wall tile is measured and brought to the same loudness, with a limiter so a quiet clip raised up cannot clip — an old upload and a recent stream no longer jump in level at the cut. `wall.spread: "stream"` keeps two clips of one stream, or a stream and its mirror on another platform, from touching in the wall's grid, and `wall.distinct` takes one clip per stream when there are enough. `wall.label` puts each tile's year, its number or both in its corner. Build to the wall uses all three. Manifests without them render exactly as before.
- **A montage can build to its wall.** The closing wall can fill in groups of 1, 1, 2, 4, 8 … tiles, each group sliding in on a beat that comes a little sooner than the last; a group says the phrase together, with every tile's first syllable placed on the beat (from whisper's word timings, or from the captions checked against the sound), and at the end every tile says it on the same frame. The wall can take the latest clips instead of a spread (`wall.clips: "tail"`) and take them out of the run before it (`wall.exclusive`), so it condenses the repetition instead of repeating it; the count before it then stops where the wall begins. A ramp can end at the wall's first beat (`ramp.into: "wall"`), so the cuts speed straight into it. A seventh style, **Build to the wall**, puts these together: whip cuts getting shorter, tally marks, then the latest twenty-five in synced groups. Manifests without the new keys render exactly as before.
- **Variant auditions: make takes on umtool's Takes page, and use one.** A report video's Takes page (the Cut tab's **Takes — N**, or **Make takes** when there are none yet) has **New take**: a montage style or none, a label, a group, the window (from S seconds for D seconds, or the full cut), an optional patch (JSON, checked before it is sent) and **quick render**. **Make all styles** makes one take per montage style with the same window. A take is rendered beside the project from the media the project already has — nothing is fetched — and appears when it is built, its changes listed in plain lines (`render.montage.cut: flash`, `render.crf: 34 (was 30)`); **Rebuild** makes it again against the cut as it is now. **Use this take** makes the take's manifest the project's and marks it **picked**, one per group; the Cut tab's **Undo last edit** takes it back. When the cut changed since the take was made, the card says so and waits for **Use anyway**. The same from a terminal: `umtool take`, `umtool takes make` (a recipe, or `--all-styles`), `umtool takes styles`, `umtool takes pick`. Nothing calls a model. Needs a restart of umtool.
- **A montage from a phrase.** umtool's new project can be seeded from a phrase said across channels: `umtool new <slug> --seed phrase --phrase '<regex>' --channels a,b --prefer <channel>`, or the new-project form's seed "a phrase across channels" when no source is given. Every place the transcripts say it becomes a clip, in date order, found even where a caption line split the phrase in two; a stream that the preferred channel also holds (a Rumble copy, say) is cut from that copy; a stream and its clip upload are one clip; `--exclude` leaves out lines that match (a chat line read out), and a caption speaker change is noted for a voice check. The scan is kept beside the manifest as `phrase-scan.json`.
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -10468,3 +10468,16 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri
on the template's rise (`templateOnset`); on synthetic takes both are exact to the 5 ms hop.
- Of the slow-news project's 73 clips (2026-10-18): 40 have whisper.cpp token offsets in `transcript.json`, 16 a
parakeet `chunk_data`, 17 no `transcript.json` (YouTube captions only).
+
+## Release 33 lane M3c: montage polish (verified 2026-10-18, branch `r33/montage-polish`)
+
+- `render.montage.loudness {target (−40…−5 LUFS, default −16), mode "clip"}`: one ebur128 integrated measurement per
+ clip cut (raw `cutA`–`cutB`) and per wall tile (`from`–`to`), gain = target − measured held to ±20 dB (0 under −60
+ LUFS), applied as `volume=…dB,alimiter=limit=0.891:level=0:latency=1` (`levelFilters`). Records:
+ `<id>.cut.json` `montage.loudness`, `montage-wall.cut.json` `montageWall.loudness[id]`.
+- `clipStream(entry)`: `montage.stream` → the clip's day → its video. Same-day clips count as one stream (on the
+ slow-news project the YouTube/Rumble mirrors of one day share it).
+- `wall.spread "stream"` → `wallCells` (cell per tile, row-major), recorded as `montageWall.cells`; `wallPlan({cells})`
+ lays tile i in `cells[i]`, and the single-tile compose's grid origin is the top-left of all tiles. `wall.distinct`
+ (`distinctTileClips`) is refused with `exclusive`.
+- `wall.label "year" | "number" | "both"`; `year: true` resolves to "year" with today's drawtext unchanged.
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -808,6 +808,11 @@ 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.
+Every style levels its clips to −16 LUFS (`render.montage.loudness`): a 2019
+upload and a 2026 stream no longer jump in level at the cut. A wall's tiles can
+say their year, their number or both (`wall.label`), and `wall.spread: "stream"`
+keeps two clips of one stream (or a stream and its mirror, which share a day)
+from sitting side by side.
**Build to the wall** runs the clips with whip cuts, faster and faster, straight
into a wall of the latest 25: they are taken out of the run (`wall.exclusive`,
`wall.clips: "tail"`), arrive in groups of 1, 1, 2, 4, 8 and 9 on accelerating
diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md
@@ -749,7 +749,8 @@ stutter's `every` counts the same number; the ramp counts places.
"stutter": { "every": 5, "clips": ["s12"], "times": 3, "length": 0.35, "step": 0.04 },
"ramp": { "from": 4, "to": 1.4 }, // or { "from": 3.5, "into": "wall" }
"wall": { "at": "end", "tiles": 16, "build": 8, "year": true,
- "groups": "double", "sync": true, "clips": "tail", "exclusive": true },
+ "groups": "double", "sync": true, "clips": "tail", "exclusive": true,
+ "label": "both", "spread": "stream", "distinct": false },
"yearStamp": true
} }
```
@@ -767,6 +768,10 @@ stutter's `every` counts the same number; the ramp counts places.
| `wall.sync` | Default `true` with `"double"` groups, else `false`. Each tile is cut to start 0.12 s before its phrase's onset and end 0.25 s after the phrase, and is shown that 0.12 s before its beat, so the onset lands exactly on its group's beat and on the final beat: the crowd says it on one frame. The estimate is whisper's word offset when the corpus's `transcript.json` keeps them, else the cue estimate (character position). Neither is good to better than a few hundred milliseconds, and the loudness of one clip cannot tell "slow" from the word before it, so the tiles are aligned to EACH OTHER: each tile's speech-band spectrum (8 bands, 5 ms frames) over its phrase is matched to the mean of the others' within ±0.4 s of its estimate, four rounds, the median shift kept at zero (`consensusLags`); then all of them move together onto where their mean loudness rises (`templateOnset`, within ±0.3 s). Under three tiles: the sharpest loudness rise near each estimate (`refineOnset`). The wall's `.cut.json` records each tile's estimate, onset, `by` and its correlation with the rest (`r`), and the common `syncAnchor`. |
| `wall.clips` | `"spread"` (default): tiles from clips spread first to last. `"tail"`: the last `tiles` clips of the cut, in date order — group 1 is the earliest of them, the last group the latest. |
| `wall.exclusive` | `true`: the wall's clips are tiles only. They leave the run of clips (no segment, no chapter), so the counter, the tally and the ramp count the clips before the wall, and the wall condenses the repetition rather than repeating it. With fewer than 2 clips left outside the wall it is an error. A tile clip with no segment is cut from its window like any clip (`--no-network` holds). |
+| `wall.label` | What each tile says in its corner: `"year"` (what `year: true` means), `"number"` (its count, "#52": `montage.n`, else its place among the cut's clips) or `"both"` ("#52 · 2025"). |
+| `wall.spread` | `"stream"`: no two tiles from one stream touch across a row or a column where that can be avoided — the tiles keep their groups and their order, and as few move as far as they must (`wallCells`, a deterministic swap descent). A clip's stream is its `montage.stream`, else its DAY (a stream and its mirror on another platform have different ids but one date), else its video. The wall's `.cut.json` records the `cells`. |
+| `wall.distinct` | `true`: one tile per stream where the cut has enough — a tail takes the latest clip of each stream, then the latest of the rest; a spread spreads over each stream's first clip. Not with `exclusive`: trading a repeat for an earlier clip would put a later clip back in the run before the wall (an error; use `spread: "stream"`). |
+| `loudness` | `{ "target": -16, "mode": "clip" }` (LUFS): each clip's cut, and each wall tile, is measured once (ffmpeg `ebur128`, integrated) and given one gain to the target — at most ±20 dB, none for a stretch under −60 LUFS — then a lookahead limiter at −1 dBFS with no auto-level, so a raised quiet clip cannot clip. Deterministic: a measured gain, not an adaptive normaliser. The wall's crowd is limited as before. The cut record keeps `montage.loudness: {measured, gain, target}`; the wall's, each tile's. |
| `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
@@ -785,6 +790,8 @@ values in words that say which, and a montage beside `render.chrome` (the deck),
**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`, and `build-to-wall`
+(every style levels its clips, `loudness` −16 LUFS; build-to-wall's tiles say
+"#n · year" and keep one stream's repeats apart)
(whip cuts, a ramp from 3.5 s into the wall, a slow zoom, the tally, then an
exclusive tail wall of the latest 25 in synced groups 1,1,2,4,8,9 with years). Each sets every montage
key, so one over another leaves exactly the second. umtool's take form lists