Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Workflows: the soundtrack split's note says how a surround file is split

Adarsh1ab88da5c688
diff --git a/tests/comfy-dbs.test.ts b/tests/comfy-dbs.test.ts
index a39ebaaa..c9fa909e 100644
--- a/tests/comfy-dbs.test.ts
+++ b/tests/comfy-dbs.test.ts
@@ -131,6 +131,14 @@ describe("the library spec", async () => {
expect(build.BINDING_KEYS.has("channels")).toBe(true);
});
+ it("gives Workflows the spec's note: a file with more than 2 channels is split in mono, its background from music + effects", () => {
+ const e = spec.SPEC.find((s: { id: string }) => s.id === "separate-soundtrack-dbs");
+ expect(entry.notes).toBe(e?.notes);
+ expect(entry.notes).toMatch(/the provider splits a file with more than 2 channels in mono and makes its background from music \+ effects \(node 4 rewired to AudioMerge add\)/);
+ // Not the rule before it: every channel separated on its own.
+ expect(entry.notes).not.toMatch(/forces it for inputs with more than 2 channels|6x for 5\.1/);
+ });
+
it("rounds sizes to two decimals, three only where two would read 0, so no other entry's size moves", () => {
// film_net_fp16 (68,882,302 bytes) stays 0.07, as tests/video-finish.test.ts expects after a full rebuild.
expect(build.gb(68_882_302)).toBe(0.07);
diff --git a/tests/media-probe.test.ts b/tests/media-probe.test.ts
index 80876586..7e602af3 100644
--- a/tests/media-probe.test.ts
+++ b/tests/media-probe.test.ts
@@ -91,7 +91,7 @@ describe("media probe", () => {
it("reads WAV, FLAC and MP3 lengths", () => {
expect(probeMedia(wav(2.5))).toEqual({ container: "wav", duration: 2.5, hasVideo: false, hasAudio: true, channels: 1 });
expect(probeMedia(wav(1, 48000, 2))).toMatchObject({ duration: 1, channels: 2 });
- // Split soundtrack separates every channel of a 5.1 file on its own: the header says how many there are.
+ // Split soundtrack splits a file with more than 2 channels in mono (ComfyUI saves at most stereo): the header says how many there are.
expect(probeMedia(wav(1, 48000, 6))?.channels).toBe(6);
// FLAC STREAMINFO: 44.1 kHz, 132300 samples = 3 s
const flac = Buffer.alloc(42);
diff --git a/tests/webm-probe.test.ts b/tests/webm-probe.test.ts
index daaab008..a4587409 100644
--- a/tests/webm-probe.test.ts
+++ b/tests/webm-probe.test.ts
@@ -32,7 +32,7 @@ describe("probeWebm", () => {
expect(probeWebm(Buffer.concat([header, segment]))).toEqual({ hasAudio: true, hasVideo: true, width: 640, height: 360, channels: 1 });
});
- it("says how many channels the first sound track has (Split soundtrack splits each channel of a 5.1 file on its own)", () => {
+ it("says how many channels the first sound track has (Split soundtrack splits a 5.1 file in mono: ComfyUI saves at most stereo)", () => {
const el = (id: number[], body: Buffer) => Buffer.concat([Buffer.from(id), Buffer.from([0x80 | body.length]), body]);
const u = (n: number) => Buffer.from([n]);
const audio = (channels: number) => el([0xae], Buffer.concat([el([0x83], u(2)), el([0xe1], Buffer.concat([el([0xb5], Buffer.from([0x40, 0xe7, 0x70, 0, 0, 0, 0, 0])), el([0x9f], u(channels))]))]));
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 6be1ca0e..1699ab68 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -11100,7 +11100,7 @@
"vramGb": 0,
"license": "DBS weights Apache-2.0 (JusperLee; trained on DnR v2, CC BY 4.0); ComfyUI-DBS code MIT; vendored DBS code Apache-2.0 with MIT notices (BS-RoFormer, MSST, TIGER)",
"validated": true,
- "notes": "CPU OK, about 1.7 GiB on CUDA. audio = an audio file or a video (LoadAudio reads a video's soundtrack without decoding frames). DBSLoader model DBS-BSRNN-DnR (fast: 18.9 MB, 9.07 dB SI-SDR on DnR v2, the CPU default) or DBS-TIGER-DnR (best: 4.1 MB, 10.13 dB, about 3x slower on a CPU, the CUDA default); device auto. Measured on a 4-CPU host (torch 2.14.1+cpu, 10-20 s clips): DBS-BSRNN 0.17-0.33x real time per channel, DBS-TIGER 0.08-0.09x. DBSSeparate channels mono (the mean of the channels, the official usage) or each channel (every channel separated on its own: 2x the time for stereo, 6x for 5.1; the provider forces it for inputs with more than 2 channels, where the subtract below would also take speech out of the LFE and surrounds); output_sample_rate input. Outputs in order: voice (speech), music, effects (sfx), background = original minus speech (AudioMerge subtract: with mono it keeps the original stereo image at mono cost; AudioMerge scales the whole result down when it peaks over 1.0), and the pack's JSON report (model, device, rates, windows, seconds, times real time). Voice + background add up to the source, except on a loud master where AudioMerge had to lower the background to fit under full scale (FLAC holds no more). Voice is first, so a chain without a stem takes the dialogue. Trained on synthetic English mixes (DnR v2): dialogue separates well (15-16 dB), music against effects less so (5.7-7.8 dB). Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included; whether that reaches the weights or their outputs is unresolved (recorded as information)."
+ "notes": "CPU OK, about 1.7 GiB on CUDA. audio = an audio file or a video (LoadAudio reads a video's soundtrack without decoding frames). DBSLoader model DBS-BSRNN-DnR (fast: 18.9 MB, 9.07 dB SI-SDR on DnR v2, the CPU default) or DBS-TIGER-DnR (best: 4.1 MB, 10.13 dB, about 3x slower on a CPU, the CUDA default); device auto. Measured on a 4-CPU host (torch 2.14.1+cpu, 10-20 s clips): DBS-BSRNN 0.17-0.33x real time per channel, DBS-TIGER 0.08-0.09x. DBSSeparate channels mono (the mean of the channels, the official usage) or each channel (stereo stems: every channel separated on its own, 2x the time); output_sample_rate input. ComfyUI saves audio as mono or stereo only (a 5.1 waveform comes out as scrambled stereo three times as long), so the provider splits a file with more than 2 channels in mono and makes its background from music + effects (node 4 rewired to AudioMerge add) rather than the original minus the speech. Outputs in order: voice (speech), music, effects (sfx), background = original minus speech (AudioMerge subtract: with mono it keeps the original stereo image at mono cost; AudioMerge scales the whole result down when it peaks over 1.0), and the pack's JSON report (model, device, rates, windows, seconds, times real time). Voice + background add up to the source, except on a loud master where AudioMerge had to lower the background to fit under full scale (FLAC holds no more). Voice is first, so a chain without a stem takes the dialogue. Trained on synthetic English mixes (DnR v2): dialogue separates well (15-16 dB), music against effects less so (5.7-7.8 dB). Some FSD50K and FMA clips inside DnR v2 carry their own CC licences, NC variants included; whether that reaches the weights or their outputs is unresolved (recorded as information)."
},
{
"id": "captions-qwen3-asr",