commit ef7ab460a171944cdc718180f79942fc21137c00
parent 8625e8f467d38789b4de87eb7a56b6adddd39e86
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 19 Oct 2026 10:12:37 -0400
report-to-video: render.transitionStyle -- the crossfade between clips may dip through black (fadeblack/fadewhite/dissolve), validated by lint and the build
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
6 files changed, 72 insertions(+), 2 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **A report video's cut can dip through black between clips.** `render.transitionStyle: "fadeblack"` (or `fadewhite`, `dissolve`; default `fade`) changes how the crossfade looks, not its length — for highlights where every clip shares one layout and a plain dissolve hides the jump.
- **Hop in on an assistant's clips in umtool: trim, split, merge, keep or cut them, and comment.** A report video whose cut is not a montage has a **Clip editor** on its Cut tab (`/projects/<id>/clips`). It loops the selected clip from what is on disk, and under it shows the clip's neighbourhood (± 60 s, or closer): the speaker turns coloured host and subject, the laughs, the words, the other clips, and the cut with a handle at each edge. Move the edges by dragging, typing, nudging (±0.1, ±0.5, ±2 s) or **Snap to words**; **Keep** / **Cut**; **Split here** at the playhead; **Merge with next**; **Add a clip** from a span dragged on the strip; **Restore the assistant's version**; **Bring in** a proposal the assistant left out. Each clip says whether it is "by the assistant" (with its score and why) or "edited by you", with its edit history. A comment on a clip is a note anchored to it, so an agent reading `umtool notes` can act on it and its reply shows in the clip's thread. **This is the host** on a speaker's turn corrects which voice is the host. Keys: space, J/L, I/O, S, M, K, X, ←/→. A keep or cut follows its clip when an edit moves the clip's start. It works on any report video; a cut without the clip finder's speakers simply has no colours.
- **Fetch a montage's windows from umtool, and swap in another upload when Rumble refuses one.** A report video's Cut tab and its clip deck have **Fetch windows**: one button asks the editor for every clip's window (a dry run first — how many per platform, how many already on disk — then Start, with each job followed to its end and each refused window named); `umtool fetch <project>` does the same from a terminal. When a window is refused for good (a Rumble video whose lookup answers 403 every time, a deleted recording), the clip deck offers a **stand-in** — the same moment in the stream's YouTube upload (or Odysee) — and **Use stand-in** switches the clip, noting where it came from; **Restore** puts it back. `umtool fallback <project>` is the terminal form. Every run is kept in the project's `fetch-runs.json`.
- **Cap a phrase montage at N clips, spread across the years.** `umtool new … --seed phrase --max N`, the New project form's **Max** and the phrase finder's **Max clips** keep N instances, each year's share in proportion to how often it was said there (at least one per year), preferring clips with no speaker change in the captions and spread through each year. The rest are listed in `phrase-scan.json`.
diff --git a/umtool/report-to-video/README.md b/umtool/report-to-video/README.md
@@ -1673,6 +1673,10 @@ parsing — wrapping the expression in single quotes is what protects them.
re-encode of the timeline via `xfade`/`acrossfade` — the concat demuxer can only
stream-copy hard cuts. Pass `--no-xfade` for a fast hard-cut build while
iterating; the last pass can add the transitions back.
+- **How the crossfade looks** (`transitionStyle`, release 35): `fade` (the default
+ dissolve), `fadeblack` (through black — a jump reads as a jump when every clip
+ shares one layout, a stream's webcam frame), `fadewhite` or `dissolve`. Same
+ length; a THEN/NOW wipe, a whip and a teaser's dip keep their own look.
- **A long cut is crossfaded in batches.** One ffmpeg that opens every segment at
once grows with the segment count: a 223-segment 1080p cut reached 8 GB and was
killed, where 46 segments were fine. Past 24 segments (`render.xfadeBatch`, or
diff --git a/umtool/report-to-video/build-video.mjs b/umtool/report-to-video/build-video.mjs
@@ -164,6 +164,7 @@ import { readDraftsReview } from "./drafts-review.mjs";
import { applyMontageRulings, readMontageRulings, rulingsLines } from "./montage-rulings.mjs";
import { validateDrafted, validatePublish } from "yt-dlp-transcript-common/lib/report/drafted.mjs";
import { validateAssist } from "yt-dlp-transcript-common/lib/clips/assist.mjs";
+import { transitionStyleOf, validateTransitionStyle } from "./transition.mjs";
// The lint a build runs before it renders, and the prune after its final mux.
import { lintManifest, lintManifestFile, narrationLengthErrors } from "./lint.mjs";
import { pruneChromeFrames } from "./prune-frames.mjs";
@@ -3815,7 +3816,7 @@ export function xfadeGraph(durs, D, joins = null, render = null, { joined = fals
const wipe = !dip && !!joins?.[i - 1]?.wipe;
// A whip cut (fx.mjs `whip`): the NOW clip slides in as the last slides out.
const whip = !dip && !wipe && !!joins?.[i - 1]?.whip;
- const vx = dip ? "transition=custom:expr='A'" : wipe ? "transition=wipeleft" : whip ? "transition=slideleft" : "transition=fade";
+ const vx = dip ? "transition=custom:expr='A'" : wipe ? "transition=wipeleft" : whip ? "transition=slideleft" : `transition=${transitionStyleOf(render)}`;
const ax = dip ? "c1=nofade:c2=nofade" : "c1=tri:c2=tri";
parts.push(`${vlab}${ins[i].v}xfade=${vx}:duration=${D}:offset=${off.toFixed(3)}[v${i}]`);
parts.push(`${alab}${ins[i].a}acrossfade=d=${D}:${ax}[a${i}]`);
@@ -4853,7 +4854,7 @@ export async function buildVideo({ manifestPath, opts = {}, out, only, fetchOnly
const errors = [
...validateCutEdits(whole), ...validateTeasers(whole), ...validateClaims(whole), ...validateThreadEntries(whole),
...validateFlipEntries(whole), ...validateNarration(whole), ...validateDrafted(whole), ...validatePublish(whole),
- ...validateStatsEntries(whole), ...validateMontage(whole), ...validateAssist(whole), ...validateFxEntries(whole),
+ ...validateStatsEntries(whole), ...validateMontage(whole), ...validateAssist(whole), ...validateFxEntries(whole), ...validateTransitionStyle(whole),
];
if (errors.length) throw new Error(`manifest: ${errors.join("; ")}`);
}
diff --git a/umtool/report-to-video/lint.mjs b/umtool/report-to-video/lint.mjs
@@ -87,6 +87,7 @@ import { validateStatsEntries } from "./stats.mjs";
import { validateMontage } from "./montage.mjs";
import { validateAssist } from "yt-dlp-transcript-common/lib/clips/assist.mjs";
import { validateFxEntries } from "./fx.mjs";
+import { validateTransitionStyle } from "./transition.mjs";
import { qrUrlFor } from "./render-cards.mjs";
import { cardNarrationSeconds, hasNarration, narrationsOf, validateNarration } from "./narration.mjs";
import { validatePodcast } from "./build-podcast.mjs";
@@ -237,6 +238,8 @@ export function validatorErrors(whole) {
...validateAssist(whole),
// Release 35: the effects' entry fields, clip lists and THEN/NOW pairs.
...validateFxEntries(whole),
+ // Release 35: the crossfade's look between clips.
+ ...validateTransitionStyle(whole),
];
if (deckOn(whole.render)) {
errors.push(...validatePosts(whole.posts, whole.timeline ?? [], whole.render).map((m) => `posts: ${m}`));
diff --git a/umtool/report-to-video/transition.mjs b/umtool/report-to-video/transition.mjs
@@ -0,0 +1,20 @@
+// How a cut crossfades from one clip into the next (`render.transitionStyle`):
+// one of ffmpeg xfade's own transition names. Absent = "fade", the dissolve
+// every cut has always had. "fadeblack" dips through black, so a jump in time
+// reads as a jump when two clips share a layout (a stream's webcam frame).
+// The length is still `render.transition`; a THEN/NOW wipe, a whip and a
+// teaser's dip keep their own look.
+
+export const TRANSITION_STYLES = Object.freeze(["fade", "fadeblack", "fadewhite", "dissolve"]);
+
+/** The xfade transition name for a plain join. */
+export const transitionStyleOf = (render) => render?.transitionStyle ?? "fade";
+
+/** @param {{ render?: { transitionStyle?: unknown } }} manifest */
+export function validateTransitionStyle(manifest) {
+ const s = manifest?.render?.transitionStyle;
+ if (s === undefined || s === null) return [];
+ return typeof s === "string" && TRANSITION_STYLES.includes(s)
+ ? []
+ : [`render.transitionStyle: ${JSON.stringify(s)} is not one of ${TRANSITION_STYLES.join(", ")}`];
+}
diff --git a/umtool/report-to-video/transition.test.mjs b/umtool/report-to-video/transition.test.mjs
@@ -0,0 +1,41 @@
+// render.transitionStyle: the crossfade's look between clips (transition.mjs).
+//
+// Run with: pnpm test:scripts
+import assert from "node:assert/strict";
+import test from "node:test";
+import { xfadeGraph } from "./build-video.mjs";
+import { TRANSITION_STYLES, transitionStyleOf, validateTransitionStyle } from "./transition.mjs";
+
+const RENDER = { width: 1920, height: 1080, fps: 30, transition: 0.5, audioRate: 48000, audioChannels: 2 };
+const xfades = (g) => g.parts.filter((p) => p.includes("xfade="));
+
+test("transitionStyle: absent is the dissolve every cut always had", () => {
+ assert.equal(transitionStyleOf(RENDER), "fade");
+ assert.equal(transitionStyleOf(null), "fade");
+ assert.deepEqual(xfades(xfadeGraph([10, 12], 0.5, null, RENDER)), ["[0:v][1:v]xfade=transition=fade:duration=0.5:offset=9.500[v1]"]);
+});
+
+test("transitionStyle: fadeblack dips every plain join through black, same timing", () => {
+ const g = xfadeGraph([10, 12, 4], 0.5, null, { ...RENDER, transitionStyle: "fadeblack" });
+ assert.deepEqual(xfades(g), [
+ "[0:v][1:v]xfade=transition=fadeblack:duration=0.5:offset=9.500[v1]",
+ "[v1][2:v]xfade=transition=fadeblack:duration=0.5:offset=21.000[v2]",
+ ]);
+ // The sound still crossfades as before.
+ assert.ok(g.parts.includes("[p0a][p1a]acrossfade=d=0.5:c1=tri:c2=tri[a1]"));
+});
+
+test("transitionStyle: a THEN/NOW wipe and a whip keep their own look", () => {
+ const joins = [{ wipe: true }, { whip: true }, null];
+ const g = xfadeGraph([10, 12, 4], 0.5, joins, { ...RENDER, transitionStyle: "fadeblack" });
+ const x = xfades(g);
+ assert.match(x[0], /transition=wipeleft/);
+ assert.match(x[1], /transition=slideleft/);
+});
+
+test("validateTransitionStyle: xfade's names only", () => {
+ assert.deepEqual(validateTransitionStyle({ render: {} }), []);
+ for (const s of TRANSITION_STYLES) assert.deepEqual(validateTransitionStyle({ render: { transitionStyle: s } }), []);
+ assert.equal(validateTransitionStyle({ render: { transitionStyle: "spin" } }).length, 1);
+ assert.equal(validateTransitionStyle({ render: { transitionStyle: 3 } }).length, 1);
+});