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.

Shorts: the full video's progress says the sound is being split while it is

Claude4aa6ebfbe7e1
diff --git a/src/lib/catalog/shorts.ts b/src/lib/catalog/shorts.ts
index ba4d7a36..9033f9af 100644
--- a/src/lib/catalog/shorts.ts
+++ b/src/lib/catalog/shorts.ts
@@ -1009,7 +1009,7 @@ export function stitchSteps(s: Pick<ShortsStitch, "ids" | "final">, gens: Record
const ids = s.ids.includes(s.final) ? s.ids : [...s.ids, s.final];
return ids.map((id) => {
const g = gens[id];
- const label = !g ? "A step" : g.op === "concat" ? "Stitching the segments" : g.op === "trim" ? "Cutting the original sound" : g.op === "mux" ? "Putting the sound back" : "Restyling";
+ const label = !g ? "A step" : g.op === "concat" ? "Stitching the segments" : g.op === "trim" ? "Cutting the original sound" : g.op === "separate-audio" ? "Splitting the sound" : g.op === "mux" ? "Putting the sound back" : "Restyling";
return { g, label };
});
}
diff --git a/tests/shorts.test.ts b/tests/shorts.test.ts
index 81038010..6cfdbdc8 100644
--- a/tests/shorts.test.ts
+++ b/tests/shorts.test.ts
@@ -319,6 +319,9 @@ describe("Shorts pipeline shape", () => {
const st = stitchSteps({ ids: ["j", "s"], final: "m" }, { j: g("succeeded", { op: "concat" }), s: g("succeeded", { op: "trim" }), m: g("running", { op: "mux", progress: 0.2 }) });
expect(st.map((x) => x.label)).toEqual(["Stitching the segments", "Cutting the original sound", "Putting the sound back"]);
expect(chainState(st).progress).toBeCloseTo((2 + 0.2) / 3);
+ // Original sound split on the GPU before the final mux.
+ const split = stitchSteps({ ids: ["j", "t", "x"], final: "m" }, { j: g("succeeded", { op: "concat" }), t: g("succeeded", { op: "trim" }), x: g("running", { op: "separate-audio", progress: 0.4 }), m: g("queued", { op: "mux" }) });
+ expect(chainState(split)).toMatchObject({ status: "working", label: "Splitting the sound" });
});
it("limits are Higgsfield's", () => {