commit 1206a68110122b327ff6723751ca0b3b74e3511a
parent bd9d91fd5e478883e235bf0f5f9843a889269368
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 5 Nov 2026 16:02:20 -0500
umtool: video entry docs (report-video.md "A video entry", knobs.md, cli.md, CHANGELOG); a take window times one by its span
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
5 files changed, 72 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **umtool: a report video can end on a video of the project, full frame, with its own sound.** A meme the subject posted (the Puss in Boots clip of the Mr. Obvious cut) could not be played as itself: `image` is a still and a clip is a corpus window inside the deck. A `video` timeline entry plays a project file's span (`from`, `to`; absent: the file's end) as the whole frame (`fit: contain`, pillarboxed on black, or `cover`), with NOTHING drawn over it -- no deck, header, QR, rail, counters, captions or any overlay layer, in the render and in Play. The item before it (its chrome too) fades to black and the video fades up (`enter`, 0.5 s each; `"cut"` opts out), without shortening the video; as the last entry the cut ends on its final frame (no end fade). Its sound is levelled like a clip's, with an optional bass boost before the level (`audio.bass`, dB). `umtool timeline <p> [--take <t>] add-video <src> --from 32.26 --bass 8` adds one; `set-video <id> key=value` sets its knobs.
- **`posts reread --pause "@71.2=0.45"`: a pause at a time of the take.** A read whose word timings drift (a script word said as several -- "45" as "forty-five") put a word-named pause inside the next word. `@<seconds>` names the time instead; the cut is the quietest point within 0.15 s of it, kept on later re-cuts.
- **umtool: a slur can be masked by its first and last letter, so its form is told apart.** The slur filter's pill showed one mask per slur for every form ("n*****" for the "-a" form as for the "-er" one). `umtool posts slurs <p> edges <word>` (a slur's word, id or any form names it; `--off` takes it back) now masks every form of that slur as its first letter, stars and its last letter, in the case the post wrote it -- "n***a", "n****s", "f****t", "f*****s", "N***A" (`render.posts.slurs.edges`). The one mask per word is what the card's pill, Play, the bench, a chapter line, a caption and `posts slurs ls` show (`ls` says `edges: …`, by mask); the Cut tab's Options → Reads and voices → Slur filter has **Edge mask** and **First letter only** beside a word. A cut without `edges` renders exactly as before; the read's stand-in ("n-word") is unchanged.
- **A reply that is only a video with sound now plays its sound, and plays to its end.** A picture-only reply whose attachment is a video with audio (the "It's time to stop" meme from its original upload) used to play silent, cut to 4 s. Now its sound plays through its beat before the reply is read, mixed like any attachment's sound and never ducked under the read. The beat lasts the whole clip, up to 8 s. Play unmutes it on its own clock during the beat. A GIF stays silent, and the same post carried up as context shows a still with no sound. The cut's picture-only rule now has a command: `umtool posts picture-reply <p> [on=] [image=] [min=] [max=] [maxSound=] [--in-take <take>]`.
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -115,6 +115,7 @@ Inbox cannot disagree about what is wrong with one.
| `posts attach <project> [<item> … \| --all] [--dry-run] [--json]` | a post item with **no attachment whose capture holds one** (captured after it went in -- `posts repeats` marks them `NOT ATTACHED`): the capture's media (its own channel's `posts-media/<postId>/`, else any channel the cut's posts come from) copied into the project's `posts-media/<slug>/<postId>/` and measured, set as the entry's `media` as `posts reel` would have made it -- nothing else of the entry changes (its paraphrases, narration, knobs kept); an item that has an attachment is never touched. ONE write (one undo point: `timeline <p> undo`), refused whole in the build's words |
| `posts combo <project> [on=on\|off] [label=L] [position=top-right\|top-left\|bottom-right\|bottom-left\|center] [color=#rrggbb] [scale=0.4-2.5] [sfx=off\|hit\|coin] [minCount=2-20] [match=id\|file\|audio] [--json]` · `posts combo <project> <item> off\|on\|auto\|label=…\|position=…\|color=…\|scale=…\|sfx=… [--json]` | the **combo badge's knobs** ([knobs.md](knobs.md#the-combo-counter)): the cut's (`render.posts.combo`, `updatePostComboRender`; no knobs prints them; `k=` the default again) or one post item's (`combo`, `updatePostCombo`): `off` draws no badge on it -- it still counts -- `on`/`auto` the cut's again. Refused in the build's words (**exit 1**) |
| `new <slug> --from-posts <channel> [--channel <more>…] [--since D] [--until D] [--own] [--with-media] [--replies …] [--order …] [--limit N]` | a **posts reel**: the scaffold with the deck on (no `siteOrigin`: each post's QR opens the post, `deck.qr.links: "original"`), then `posts reel` with the same filters |
+| `timeline <project> [--take <t>] add-video <src> [--from S] [--to S] [--fit contain\|cover] [--bass dB] [--gain dB] [--enter cut\|<out>,<in>] [--hold S] [--title T] [--id ID] [--after <id>\|-] [--dry-run] [--json]` · `timeline <project> [--take <t>] set-video <id> <key>=<value>…` | **a video entry** ([report-video.md](report-video.md#a-video-entry)): a file of the project (`src`, relative; probed, its `fileSeconds` written) played FULL FRAME with its own sound, nothing drawn over it, at the end unless `--after` (`-`: the start), into the cut or the take's timeline only (`--take`, an undo point of the take's); `set-video` sets `from= to= fit= audio.bass= audio.gain= enter=cut\|<out>,<in> enter.out= enter.in= holdLast= deck=hidden\|shown title= note= src=` (`key=` clears). `--dry-run`: the entry and its place, nothing written. `--json`: `{ok, op, take?, inserted\|updated {id, at, entry}, revision?}`. **Exit 0 · 1 refused (no such file, take or entry; the build would not take it) · 2 usage** |
| `timeline <project> insert (--after <id\|-> \| --to-section N \| --group G) post:<channel>/<postId> [--id ID]` | **one post item** among the cut's entries, made as `posts reel` makes one |
| `timeline <project> insert (--after <id\|-> \| --to-section N \| --group G) post-json:<json>\|post-json:@<file> [--id ID]` | **a post item made by hand** — a post no archive holds (one kept only as a picture): `{post: "<channel>/<postId>", author, handle, date, text, media: ["posts-media/…"], parents?, quoted?, subjects?, redact?}`, its media measured, its id `p-<postId>` unless `--id`; refused in the build's words (**exit 1**). Its avatar: `posts avatar <project> <handle> <file>` |
| `modules list [--json]` · `modules apply <project> [--config FILE] [--dry-run] [--json]` · `modules apply <project> [--config FILE] --take <id> [--label L] [--at S --dur S \| --full] [--quick] [--force] [--from TAKE] [--keep-frames] [--patch-out FILE]` | the **video modules** (release 39): `list` every module, its kind, slot and where its settings live; `apply` maps the project's `module-config.json` (the modules a video wants, in MODULES-DESIGN's vocabulary) into the manifest's homes (`report-to-video/modules/config-loader.mjs`) — the preset, the deck's subtitle and QR, the counter's series and each clip's marks, the stamps, the rail's markers, the chapters, the pairs, the status ledger, the intro, the finale — and lists every field with no home, by path. Without `--take` the manifest is rewritten through `replaceManifest` (a snapshot first); with `--take` it is that take's patch (`takes/<id>.modules-patch.json`, or `--patch-out`) and the take is made from it as `take` makes one, the manifest untouched. **Exit 1** when the result would not build (the build's sentences) ([knobs.md](knobs.md#look-presets)) |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -678,6 +678,23 @@ its knobs are one writer, `updatePostItem` (`lib/report/manifest.mjs`), refused
| move, remove, a section, a group | the Cut tab's row (⠿, ⋯, the section bars), Play's reel strip | `umtool timeline <p> move\|remove\|section-move\|section-add …` | as a clip's |
| the card's page, an attachment, the faces | Play the cut, the post bench | — | `GET /api/report/post-item?project&id&w&h[&phase][&take]` · `?project&file=posts-media/…` · `?project&font=regular\|bold` |
+## A video entry (a file of the project, full frame, nothing over it)
+
+A video of the project played as the whole frame with its own sound, the chrome off over it
+([report-video.md](report-video.md#a-video-entry): the shape, the entrance, the end, the sound). Made and set
+by the timeline's writers, refused in the build's words (`validateVideoEntry`); on a take with `--take <t>`
+(the take's patch, an undo point of the take's own). `key=` clears a knob.
+
+| Knob | In umtool | From a terminal | Route |
+|---|---|---|---|
+| a video entry: `src` (a file of the project), at the end unless `--after` (`-`: the start); the file probed (`fileSeconds`) | Play plays it (full frame, its sound); the strip shows it as an item | `umtool timeline <p> [--take <t>] add-video <src> [--from S] [--to S] [--fit contain\|cover] [--bass dB] [--gain dB] [--enter cut\|<out>,<in>] [--hold S] [--title T] [--id ID] [--after <id>\|-] [--dry-run] [--json]` | `POST /api/report/timeline {op: "insert", …}` with the entry |
+| `from`, `to` — the source seconds it plays (`to` absent: the file's end) | — | `umtool timeline <p> [--take <t>] set-video <id> from=32.26 to=46.32` (`to=`: the end) | — |
+| `fit` — `contain` (default: pillar/letterboxed on black) or `cover` (fills the frame, cropped) | — | `set-video <id> fit=cover` | — |
+| `audio.bass` — dB of low shelf at 100 Hz (−12…24), before the loudness level; `audio.gain` — dB (−20…20), after it | — | `set-video <id> audio.bass=8 audio.gain=-2` | — |
+| `enter` — the join into it: `{out, in}` seconds (default 0.5, 0.5: the item before and its chrome fade to black, then the video fades up); `cut`: the cut's own transition | — | `set-video <id> enter=0.8,0.4` · `enter.out=1` · `enter=cut` | — |
+| `holdLast` — seconds on its last frame after `to` (0–10; default 0: the cut ends ON its final frame) | — | `set-video <id> holdLast=1.5` | — |
+| `deck` — `hidden` (default: nothing drawn over it) or `shown` (the chrome as over a clip) | — | `set-video <id> deck=shown` | — |
+
## A narrated post item
A post item read aloud, its attachment muffled under the read ([report-video.md](report-video.md#narrated-post-items):
diff --git a/umtool/docs/report-video.md b/umtool/docs/report-video.md
@@ -402,6 +402,56 @@ A still **never derives** a QR target. A clip's code is derived from the archive
that serves it; a screenshot has no such archive, and a code that resolves to the
wrong place is worse than no code — so only an explicit `citeUrl` draws one.
+### A video entry
+
+```jsonc
+{ "type": "video", "id": "finale-puss",
+ "src": "posts-media/ObviousRises-x/2117366108705767779/2117366108705767779_1.mp4", // a file of the project
+ "from": 32.26, // source seconds; default 0
+ "to": 46.32, // source seconds; absent = the file's end
+ "fit": "contain", // default: letter/pillarboxed on black · "cover": fills, cropped
+ "audio": { "bass": 8, "gain": 0 }, // dB: a low shelf at 100 Hz (ffmpeg bass=g=8:f=100:w=0.7), a gain
+ "enter": { "out": 0.5, "in": 0.5 },// the join into it (default); "cut": the cut's own transition
+ "holdLast": 0, // seconds on its last frame after `to`; default 0
+ "deck": "hidden", // default: NOTHING over it · "shown": the chrome as over a clip
+ "fileSeconds": 46.324, // the file's probed length (written by add-video; the estimate's `to`)
+ "title": "…", "note": "…" }
+```
+
+A plain video of the project played as the **whole 1920x1080 frame, with its own sound** -- a meme
+the cut ends on, a reaction the subject posted. Where `image` is a still and a `clip` is a corpus
+window framed into the deck's box, a video entry is drawn over by **nothing**: no deck or footer,
+no header or date line, no QR, no rail, markers or section titles, no counters, captions, clock,
+thread map, watermark or any overlay layer. The build lays every chrome region (the deck's shell,
+the feed, the posts windows, stamps, stats, effects, the finale) with an `enable` that leaves the
+entry's span out (`video-entry.mjs videoBlackouts`: from the frame the entrance's dip has made black
+to its end -- mid-dissolve into the next entry, or the cut's end), and the deck hides over it as over
+a teaser. Play draws it the same way. `deck: "shown"` keeps the chrome.
+
+**The entrance** (`enter`, default `{out: 0.5, in: 0.5}`): the item before -- its picture and every
+overlay, and its sound -- fades to black over its last `out` seconds (the teaser's dip, with no held
+black), then the video fades up from black over its first `in` seconds, its sound with it. Its
+segment starts with the cut's dissolve as black and silence (its **lead**), so the dissolve is black on
+black and the fades never eat the span: the video still plays `from`→`to` whole. `enter: "cut"` is the
+cut's own transition into it. There is **no fade at its end**: as the LAST entry the cut **ends on its
+final frame** -- `render.endFade` is not applied, and nothing is appended after it.
+
+**Its sound** is levelled like a clip's: the bass boost first, the span measured through it (ebur128),
+one gain toward the cut's loudness target (`render.loudness`, when it has one) -- so a boosted video
+is as loud as the cut and louder in the lows; `audio.gain` after that, as a clip's `audio.gain` is.
+
+**Its segment** is `lead + (to − from) + holdLast` (`videoSeconds`), the source span scaled per `fit`,
+and is rebuilt only when its key changes (`segments/<id>.video.json`: the file's path, size and mtime,
+`from`, `to`, `fit`, `audio`, `enter`, `holdLast`, the lead, the frame and the loudness target); every
+file is written through a rename, so a take `--from` another reuses it. The schedule carries it
+(`type: "video"`, `hideDeck`, `noChrome`, `enter`, its dip). Nothing to fetch (`--fetch-only` says
+so); `src` is relative to the project and may not climb out of it.
+
+```sh
+umtool timeline <p> --take mid-22 add-video posts-media/…/2117366108705767779_1.mp4 --from 32.26 --bass 8
+umtool timeline <p> --take mid-22 set-video video audio.bass=10 enter=0.8,0.4
+```
+
### Post items: a post as an entry of the cut
A post card laid OVER a clip (`posts[]`, the deck's feed and popups) says what was
diff --git a/umtool/lib/report/takeMaker.mjs b/umtool/lib/report/takeMaker.mjs
@@ -49,6 +49,7 @@ import path from "node:path";
import { pathToFileURL } from "node:url";
import { mergePatch } from "umtool-report-to-video/montage-styles";
import { postItemSeconds } from "umtool-report-to-video/post-item";
+import { videoSeconds } from "umtool-report-to-video/video-entry";
import { cutSlurState } from "umtool-report-to-video/post-slurs";
import { applyMontageRulings, readMontageRulings, rulingsLines } from "umtool-report-to-video/montage-rulings";
import { markKeepFrames } from "umtool-report-to-video/prune-frames";
@@ -246,6 +247,8 @@ export async function loadMontageStyles({ file = montageStylesFile() } = {}) {
/** An entry's length by the manifest's own numbers: a clip's cut, a post item's rule (post-item.mjs), else `seconds`, else 4 s. */
export function estimatedSeconds(e) {
if (e?.type === "post") return postItemSeconds(e);
+ // A video entry (video-entry.mjs): its span and its hold (a take's hard cuts: no lead).
+ if (e?.type === "video") return videoSeconds(e, 0);
if (e?.type === "clip") {
const a = Number(e.cutStart ?? e.start);
const b = Number(e.cutEnd ?? e.end);