Archilyzer · Source

archilyzer

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

commit f18aae045df6959c079323a9ec3c04a8fe6b05cb
parent e2e921ec985b6fa0877fe6482729185dd22b93b9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun, 18 Oct 2026 03:09:17 -0400

umtool: relocation tuned on the real windows (three quarters of the stretch at −40 dBFS: speech has gaps); docs (README, FACTS, CHANGELOG)

At 90% over −35 dBFS, s38's speech (raw −23 dB RMS with word gaps) never qualified and its cut was left
near-silent; at 75% over −40 dBFS it lands on 3.45–4.95 s, the speech ending "…slow news day".

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/FACTS.md | 12++++++++++++
Mumtool/report-to-video/README.md | 8++++++++
Mumtool/report-to-video/montage.mjs | 2+-
Mumtool/report-to-video/montage.test.mjs | 10+++++-----
5 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## [Unreleased] +- **Report videos cut clips from Rumble windows on the right second.** Some downloaded windows (Rumble's) keep their source's clock, so their picture starts a second or two in, and every cut from one landed that much late — in the slow-news montage, one clip's "slow news week" fell into the pause after it. The build now reads where such a window's picture starts and cuts on its own clock (and says so in the build log). In a montage with even loudness, a clip or wall tile that measures near-silent is taken for a phrase looked for in the wrong place: it is found again by the sound — the speech nearest where it was expected — recorded, said in the log, and never boosted from silence. - **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. diff --git a/plans/FACTS.md b/plans/FACTS.md @@ -10481,3 +10481,15 @@ parsed to 0 cues, indexing the video textless) is CLOSED by `200a3105` (transcri 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. + +## Release 33 lane M3d: the silent tile (verified 2026-10-18, branch `r33/silent-tile`) + +- A corpus window may keep its source clock: `start_time` 0.11–2.2 s on 5 of the slow-news project's 73 windows + (s50, s56, s63, s65, s70; all Rumble). Measured on s70/s65 against the cues: content at `ffmpeg -ss X` = source + `from + start_time + X`. `fetchClipAligned` (build-video) adds the container `start_time` to `fetchStart` when the video + stream starts > 0.05 s in; `--fetch-only` still reports the raw `fetchStart`. +- Under `render.montage.loudness`: near-silent (`nearSilent`: < −40 LUFS, or 15 LU under the run's median once 5 are + measured) → `relocateBySound` over the clip's extent (dBFS envelope, 75% of the stretch ≥ −40 dBFS, nearest the + estimate; tuned on s38/s70) → recut; records `montage.loudness.relocated {from, to, why}` and `montage.found: "sound"`; a wall-only tile: + `montageWall.sync[].relocated`. `loudnessGain` is 0 under −40 LUFS. Consensus shifts failing `shiftAllowed` (−10 dB) + keep the estimate (`by: "estimate"`, `held`). diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md @@ -170,6 +170,13 @@ change. ### Where a clip's source comes from +**A window keeps its own clock.** Some section downloads (Rumble's HLS cuts) keep their source's timestamps, so +the picture starts a second or two in (`start_time` 0.1–2.2 s on 5 of the slow-news project's 73 windows). ffmpeg's +`-ss` counts from that start, while the window's name counts from zero; measured against the cues, such a file's +content at `-ss X` is the source's `from + start_time + X`. So when a file's PICTURE starts late (> 0.05 s), the +build moves its `fetchStart` by the container's `start_time` and says so; any other file (an mp3's encoder delay +included) is cut as before. + Before a clip is fetched, `sources.mjs` looks for its source on disk, in this order, and the first place holding the clip's **padded** span (its extent plus `fetchPad`, to the same 0.02 s tolerance) wins: @@ -772,6 +779,7 @@ stutter's `every` counts the same number; the ramp counts places. | `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. | +| (near-silence) | Under `loudness`, a clip cut that measures near-silent — under −40 LUFS, or 15 LU under the run's median so far — is taken for a phrase looked for in the wrong place, not a quiet clip: the phrase is looked for again by the sound (`relocateBySound`: the stretch nearest the estimate in the clip's extent that is speech, three quarters of it at −40 dBFS or more — real speech has gaps) and the clip cut again from there; an exclusive wall's tile is checked the same way at its phrase. The build log says so, the record keeps `relocated: {from, to, why}` (source seconds), and near-silence is never raised (gain 0). A synced wall's consensus shift is refused for a tile when it lands 10 dB quieter than its estimate (`held`). | | `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 diff --git a/umtool/report-to-video/montage.mjs b/umtool/report-to-video/montage.mjs @@ -1215,7 +1215,7 @@ export function median(values) { * lands on the speech that ends there. Ties go to the later. Null when the * excerpt holds no speech. */ -export function relocateBySound(env, { hop = 0.005, start = 0, est, len, speechDb = -35, share = 0.9 }) { +export function relocateBySound(env, { hop = 0.005, start = 0, est, len, speechDb = -40, share = 0.75 }) { const n = Math.max(1, Math.round(len / hop)); if (env.length < n) return null; // Frames at speech level, counted over a sliding window: a stretch is diff --git a/umtool/report-to-video/montage.test.mjs b/umtool/report-to-video/montage.test.mjs @@ -1278,15 +1278,15 @@ test("relocateBySound: a phrase estimated into the silence after a long cue land // A 7.8 s cue of speech from 1.1 s to 9.4 s, silence after; the even-spread estimate put "slow news" at 9.7. const env = envOf(12, [[1.1, 9.4]]); const t = relocateBySound(env, { start: 0, est: 9.7, len: 1.2 }); - // Nearest the estimate with 90% of it speech: ending at most 0.12 s into the silence. - assert.ok(t >= 9.4 - 1.2 - 0.006 && t <= 9.4 - 1.2 + 0.121, `${t}`); + // Nearest the estimate with three quarters of it speech: ending at most 0.3 s into the silence. + assert.ok(t >= 9.4 - 1.2 - 0.006 && t <= 9.4 - 1.2 + 0.301, `${t}`); // The excerpt's own start is added. assert.ok(Math.abs(relocateBySound(env, { start: 355, est: 364.7, len: 1.2 }) - (355 + t)) <= 0.006); // Speech either side: the nearest wins. const two = envOf(12, [[0.5, 3], [6, 9]]); - // (Up to a tenth of the stretch may be the silence beside the speech.) - assert.ok(Math.abs(relocateBySound(two, { start: 0, est: 4.5, len: 1 }) - 6) <= 0.101); - assert.ok(Math.abs(relocateBySound(two, { start: 0, est: 3.6, len: 1 }) - 2) <= 0.101); + // (Up to a quarter of the stretch may be the silence beside the speech: real speech has gaps.) + assert.ok(Math.abs(relocateBySound(two, { start: 0, est: 4.5, len: 1 }) - 6) <= 0.251); + assert.ok(Math.abs(relocateBySound(two, { start: 0, est: 3.6, len: 1 }) - 2) <= 0.251); assert.equal(relocateBySound(envOf(5, []), { start: 0, est: 2, len: 1 }), null, "no speech"); assert.equal(relocateBySound(envOf(0.5, [[0, 0.5]]), { start: 0, est: 0, len: 1 }), null, "shorter than the phrase"); });