The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Remove dialogue: verified on the CPU ComfyUI, and the test's provider context typed
Claudecadabebb21df
diff --git a/docs/research/dbs-separation-7.md b/docs/research/dbs-separation-7.mdindex a6593017..c7ffc028 100644--- a/docs/research/dbs-separation-7.md+++ b/docs/research/dbs-separation-7.md@@ -257,7 +257,7 @@ Honest expectation: the separation half becomes CPU-friendly (23 MB instead of t`AudioMerge` scales the whole mix down when it peaks over 1.0 (§2.1), which acts as a crude safety limiter; the level then differs from the dB asked for. With `channels: mono` the mix is mono: for a stereo video, prefer `each channel`, or the two-stem route below.-**Video jobs need no new graph.** Remove dialogue is a two-step chain: graph A on the video, then the existing `mux` op. "No dialogue": `video-mux-audio-replace` with the `background` stem. "Dialogue only": the same with the `voice` stem. "Lower the music": `video-mux-audio` with `audio` = voice, `audio2` = background and `backgroundVolumeDb` (the provider already picks between the two mux graphs). The picture is stream-copied in every case.+**Video jobs need no new graph.** Remove dialogue is a two-step chain: graph A on the video, then the existing `mux` op. "No dialogue": `video-mux-audio-replace` with the `background` stem. "Dialogue only": the same with the `voice` stem. "Lower the music": `video-mux-audio` with `audio` = voice, `audio2` = background and `backgroundVolumeDb` (the provider already picks between the two mux graphs). The picture is stream-copied in every case. *As built (D2):* the "Lower the music" mux waits on the one split twice (voice into `audio`, background into `audio2`), which `createPipeline` now allows when each slot names its own stem. Verified on the CPU ComfyUI with a 15 s H.264 + AAC stereo clip, all three outcomes: the result's video packets hash the same as the source's (ffmpeg `framemd5` with `-c copy`), voice + background add back to the decoded source within 3.1e-5 (16-bit FLAC), the new AAC soundtrack correlates 0.997–0.998 with the stem (or voice + bed at −12 dB) it was made from, and the split ran at 0.28x real time (54.5 s) with each mux about 1–2 s.### 4.5 Library tooling changesdiff --git a/tests/remove-dialogue.test.ts b/tests/remove-dialogue.test.tsindex 77886bfa..8eb589b7 100644--- a/tests/remove-dialogue.test.ts+++ b/tests/remove-dialogue.test.ts@@ -21,7 +21,7 @@ import {import { splitTime } from "@/lib/av/split";import { resolveWorkflowId } from "@/lib/comfy-variants";import { HUB_MODES, modeHref } from "@/lib/hubs";-import type { Generation, GenInput } from "@/lib/catalog/types";+import type { Generation, GenInput, Operation } from "@/lib/catalog/types";// Video tools → Remove dialogue (DBS D2): the planner, the two-step chain on the open engine (graph A, then the// stream-copy mux), the graph the mux runs, the provider's bindings and the API in demo mode.@@ -338,7 +338,7 @@ describe("the mux graph the provider picks", () => {});describe("the provider's bindings for the two steps", () => {- const ctx = (op: string) => ({+ const ctx = (op: Operation) => ({generationId: "gen1",op,upload: async (_d: unknown, _t: unknown, name: string) => `up_${name}`,