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
ComfyUI: video-fit-clip cuts, frames and retimes a concatenator clip with its sound or silence
Claudef203be29228f
diff --git a/scripts/comfy/hand-built/video-fit-clip.json b/scripts/comfy/hand-built/video-fit-clip.jsonnew file mode 100644index 00000000..180a0c0f--- /dev/null+++ b/scripts/comfy/hand-built/video-fit-clip.json@@ -0,0 +1,71 @@+{+ "1": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": ["5", 0],+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": ["7", 1],+ "skip_first_frames": ["6", 1],+ "select_every_nth": 1,+ "format": "None",+ "meta_batch": ["2", 0]+ },+ "_meta": { "title": "Clip at the film's frame rate, from startTime for duration seconds (0 = to the end), framesPerBatch frames per pass" }+ },+ "2": {+ "class_type": "VHS_BatchManager",+ "inputs": { "frames_per_batch": 64 },+ "_meta": { "title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)" }+ },+ "3": {+ "class_type": "ImageScale",+ "inputs": { "image": ["1", 0], "upscale_method": "lanczos", "width": 1280, "height": 720, "crop": "center" },+ "_meta": { "title": "Into the film's frame: scaled to cover, centre-cropped" }+ },+ "4": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": ["3", 0],+ "audio": ["1", 2],+ "frame_rate": ["5", 0],+ "loop_count": 0,+ "filename_prefix": "fuobe/video-fit-clip",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 19,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true,+ "meta_batch": ["2", 0]+ },+ "_meta": { "title": "H.264 + the window's sound (the provider swaps in silence for a muted or silent clip)" }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": { "value": 30 },+ "_meta": { "title": "fps" }+ },+ "6": {+ "class_type": "ComfyMathExpression",+ "inputs": { "expression": "round(a * b)", "values.a": ["8", 0], "values.b": ["5", 0] },+ "_meta": { "title": "Frames to skip: startTime x fps" }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": { "expression": "round(a * b)", "values.a": ["9", 0], "values.b": ["5", 0] },+ "_meta": { "title": "Frames to keep: duration x fps (0 = to the end)" }+ },+ "8": {+ "class_type": "PrimitiveFloat",+ "inputs": { "value": 0 },+ "_meta": { "title": "startTime (s)" }+ },+ "9": {+ "class_type": "PrimitiveFloat",+ "inputs": { "value": 0 },+ "_meta": { "title": "duration (s, 0 = to the end)" }+ }+}diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex c58ef45d..1fc6b948 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -2761,6 +2761,28 @@ export const SPEC = ['Sound tracks are kept as they are (the Ken Burns clips have none; the mux adds the voice and the bed).',},+ {+ id: 'video-fit-clip',+ title: 'One clip cut, retimed and framed for a packet-copy join: start/length at a set fps, centre crop, its sound or silence (VHS meta-batch, no model)',+ capability: 'trim',+ handBuilt: 'hand-built/video-fit-clip.json',+ bindings: {+ video: [b('1', 'video')], startTime: [b('8', 'value')], duration: [b('9', 'value')], fps: [b('5', 'value')],+ width: [b('3', 'width')], height: [b('3', 'height')], framesPerBatch: [b('2', 'frames_per_batch')], filenamePrefix: [b('4', 'filename_prefix')],+ },+ outputs: [{ node: '4', kind: 'video' }],+ defaults: { fps: 30, width: 1280, height: 720 },+ limits: { maxWidth: 2048, maxHeight: 2048, dimensionMultiple: 2 },+ vramGb: 0,+ license: 'n/a (no model; ComfyUI core + VideoHelperSuite GPL-3.0 code)',+ notes:+ 'The Canvas Video concatenator (r4/canvas-plus), one job per clip, then video-concat-encoded joins them: every clip comes out at the film\'s size (width x height, scaled to cover and centre-cropped), ' ++ 'at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideo resamples to fps and skips round(startTime x fps) frames, keeping round(duration x fps) ' ++ '(duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = skipped frames / fps, length = kept frames / fps), so picture and sound stay in sync. ' ++ 'framesPerBatch frames per pass (64): memory stays flat however long the clip. Muted clips and clips with no sound: the provider replaces the combine\'s audio with an EmptyAudio as long as the window ' ++ '(silenceVhsAudio), so every clip of a film has a sound track; when the window\'s length is unknown (no header, no end) the sound is dropped instead.',+ },+// ---- Music beds and audio joins --------------------------------------------------------{id: 'audio-loop-crossfade',diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex 98446178..61d4871d 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -659,6 +659,12 @@"error": null,"at": "2026-10-16T23:33:13.889Z"},+ "video-fit-clip": {+ "sha256": "f00ba60d6f7aac8a250bbf757483869be5bfef80727ce8c08d59b606f9bf5b27",+ "validated": true,+ "error": null,+ "at": "2026-10-26T01:42:33.801Z"+ },"video-inpaint-wan-vace": {"sha256": "71aaa43c8ac4bb0a764a9a835d96d1c47b33244f741611c7036ebea8ffcef3a7","validated": true,diff --git a/src/lib/comfy.ts b/src/lib/comfy.tsindex 4cd7dd90..02968f8d 100644--- a/src/lib/comfy.ts+++ b/src/lib/comfy.ts@@ -587,6 +587,25 @@ export function dropVhsAudio(wf: ComfyWorkflow): ComfyWorkflow {}return out;}+/**+ * The sound a VHS loader hands on replaced by `seconds` of stereo silence (the Video concatenator's muted+ * clips and clips without sound): every input fed by a loader's audio output takes an EmptyAudio instead,+ * so the clip still has a sound track as long as its picture and a join keeps the clips in step. The+ * loader's own sound is then never read (a file without one would stop VHS).+ */+export function silenceVhsAudio(wf: ComfyWorkflow, seconds: number): ComfyWorkflow {+ const loaders = new Set(Object.entries(wf).filter(([, n]) => n.class_type === "VHS_LoadVideo").map(([id]) => id));+ if (!loaders.size) return wf;+ const out = cloneWorkflow(wf);+ let id = "silence";+ for (let k = 2; out[id]; k++) id = `silence${k}`;+ out[id] = { class_type: "EmptyAudio", inputs: { duration: Math.round(seconds * 1000) / 1000, sample_rate: 44100, channels: 2 }, _meta: { title: "Silence as long as the clip" } };+ for (const n of Object.values(out)) {+ const a = n.inputs.audio;+ if (isLinkValue(a) && loaders.has(a[0]) && a[1] === 2) n.inputs.audio = [id, 0];+ }+ return out;+}/*** A silent clip read by core LoadAudio (video-append-endcard reads the ad's sound from the same upload): LoadAudio* stops with "No audio stream found in the file". The loaders go, with the sound nodes fed only by them (the card'sdiff --git a/src/server/providers/comfyui.ts b/src/server/providers/comfyui.tsindex 414d0af5..30e75568 100644--- a/src/server/providers/comfyui.ts+++ b/src/server/providers/comfyui.ts@@ -15,6 +15,7 @@ import {dropBranch,dropLoadedSound,dropVhsAudio,+ silenceVhsAudio,expandCaptionWorkflow,explainComfyError,canTakeLoras,@@ -926,6 +927,9 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,const timeline = manifest.expand === "timeline" ? readTimeline(extra.timeline) : null;if (manifest.expand === "timeline" && !timeline) throw new ProviderError("The voice track needs the lines' start times (params.extra.timeline)");delete extra.timeline;+ // A Video concatenator clip muted in the canvas (video-fit-clip): its sound becomes silence below.+ const muted = manifest.id === "video-fit-clip" && extra.mute === true;+ delete extra.mute;for (const [k, v] of Object.entries(extra)) values[k as BindingKey] = v;if (audio2 && ctx.op !== "dialogue" && ctx.op !== "voice-change") values.audio2 = audio2;// Soundtrack mix: a silent bed as long as the video, so neither track cuts the other short.@@ -994,6 +998,15 @@ export async function prepareWorkflow(endpointTemplate: string, input: GenInput,if (finish.dropSound) for (const n of Object.values(wf)) if (n.class_type === "CreateVideo") delete n.inputs.audio;// VHS meta-batch: a manager of its own per job (a stale one loses frames), and no sound link for a silent clip.wf = tagMetaBatch(wf, ctx.generationId);+ // A concatenator clip that is muted or has no sound: silence exactly as long as its kept frames, so every clip+ // of the film carries a track (a packet-copy join of clips with and without one would drift). Not knowing how+ // long the window is (no end, no header), it has no track instead.+ if (manifest.id === "video-fit-clip" && (muted || (clip && !clip.hasAudio && clip.hasVideo))) {+ const kept = Number(values.duration) > 0 ? Number(values.duration) : undefined;+ const rest = clipLength !== undefined ? Math.max(0, clipLength - start) : undefined;+ const seconds = kept !== undefined && rest !== undefined ? Math.min(kept, rest) : (kept ?? rest);+ wf = seconds ? silenceVhsAudio(wf, Math.max(1, Math.round(seconds * fps)) / fps) : dropVhsAudio(wf);+ }if (clip && !clip.hasAudio && clip.hasVideo) {wf = dropVhsAudio(wf);// Core LoadAudio reading the clip's own sound (the end card's ad): no sound, no sound track.diff --git a/tests/canvas-comfy.test.ts b/tests/canvas-comfy.test.tsnew file mode 100644index 00000000..a8ec14b9--- /dev/null+++ b/tests/canvas-comfy.test.ts@@ -0,0 +1,100 @@+import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import { afterAll, describe, expect, it } from "vitest";+import type { GenInput, Operation } from "@/lib/catalog/types";+import type { ComfyWorkflow, ManifestWorkflow } from "@/lib/comfy";+import type { MediaInfo } from "@/lib/media-probe";++// The canvas Video concatenator on the open engine (r4/canvas-plus): each clip's fit pass (video-fit-clip: cut,+// frame, 30 fps, its sound or silence) and the packet-copy join, as the provider binds them.+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "fuobe-canvas-comfy-"));+process.env.FUOBE_DATA_DIR = tmp;+process.env.COMFYUI_URL = "http://comfy.test:8188";+const { prepareWorkflow } = await import("@/server/providers/comfyui");+const { getModel } = await import("@/lib/catalog");+const { describeNode } = await import("@/lib/catalog/canvas");+const { planGeneration } = await import("@/lib/catalog/plan");+const { getPreset } = await import("@/lib/catalog");+afterAll(() => fs.rmSync(tmp, { recursive: true, force: true }));++async function prepare(id: string, input: GenInput, op: Operation, media: Record<string, MediaInfo> = {}) {+ return prepareWorkflow(id, { seed: 7, ...input }, {+ generationId: "gen1",+ op,+ upload: async (_data, _type, name) => `up_${name}`,+ media: (name) => media[name],+ serverRam: async () => undefined,+ });+}+const at = (wf: ComfyWorkflow, m: ManifestWorkflow, key: string) => (m.bindings[key] ?? []).map((t) => wf[t.node].inputs[t.input]);+const clip = (o: Partial<MediaInfo> = {}): MediaInfo => ({ container: "mp4", hasVideo: true, hasAudio: true, duration: 10, videoDuration: 10, width: 1920, height: 1080, fps: 25, ...o });+const combine = (wf: ComfyWorkflow) => Object.values(wf).find((n) => n.class_type === "VHS_VideoCombine")!;++describe("Video concatenator, open engine", () => {+ it("is the open fit-clip model's route, planned from the node's own step", () => {+ const m = getModel("oss-fit-clip")!;+ expect(m.routes).toEqual([expect.objectContaining({ op: "trim", provider: "comfyui", endpoint: "video-fit-clip" })]);+ const d = describeNode(+ {+ nodes: [+ { id: "a", type: "video-input", position: { x: 0, y: 0 }, data: { url: "/api/files/u/a.mp4" } },+ { id: "f", type: "concat", position: { x: 400, y: 0 }, data: { modelId: "oss-join-encoded", params: { aspectRatio: "21:9" }, clips: { a: { start: 2, end: 5.5, mute: true } } } },+ ],+ edges: [{ id: "e", source: "a", sourceHandle: "out", target: "f", targetHandle: "videos" }],+ },+ { id: "f", type: "concat", position: { x: 400, y: 0 }, data: { modelId: "oss-join-encoded", params: { aspectRatio: "21:9" }, clips: { a: { start: 2, end: 5.5, mute: true } } } },+ { engineMode: "open" },+ );+ // One clip: its fit pass is the film.+ expect(d.steps!.map((s) => s.key)).toEqual(["fit:0"]);+ const plan = planGeneration(d.steps![0].request, getModel, getPreset);+ expect(plan.params).toMatchObject({ startTime: 2, endTime: 5.5, fps: 30, extra: { width: 1680, height: 720, mute: true } });+ });++ it("cuts at the film's frame rate, frames to its size and keeps the window's sound", async () => {+ const { workflow: wf, manifest: m } = await prepare("video-fit-clip", { video: "clip.mp4", startTime: 1.5, endTime: 4.5, fps: 30, extra: { width: 720, height: 1280 } }, "trim", { "clip.mp4": clip() });+ expect(at(wf, m, "startTime")).toEqual([1.5]);+ expect(at(wf, m, "duration")).toEqual([3]);+ expect(at(wf, m, "fps")).toEqual([30]);+ expect([at(wf, m, "width"), at(wf, m, "height")]).toEqual([[720], [1280]]);+ expect(at(wf, m, "video")).toEqual(["clip.mp4"]);+ // The loader's own (cut) sound goes on the clip.+ expect(combine(wf).inputs.audio).toEqual(["1", 2]);+ expect(Object.values(wf).some((n) => n.class_type === "EmptyAudio")).toBe(false);+ // From a start to the end of the clip.+ const rest = await prepare("video-fit-clip", { video: "clip.mp4", startTime: 2, fps: 30, extra: { width: 1280, height: 720 } }, "trim", { "clip.mp4": clip() });+ expect(at(rest.workflow, rest.manifest, "duration")).toEqual([0]);+ });++ it("gives a muted clip, or one without sound, silence exactly as long as its kept frames", async () => {+ const muted = await prepare("video-fit-clip", { video: "clip.mp4", startTime: 1, endTime: 3.51, fps: 30, extra: { width: 1280, height: 720, mute: true } }, "trim", { "clip.mp4": clip() });+ const silence = Object.entries(muted.workflow).find(([, n]) => n.class_type === "EmptyAudio")!;+ expect(combine(muted.workflow).inputs.audio).toEqual([silence[0], 0]);+ // 2.51 s at 30 fps keeps 75 frames: 2.5 s of silence.+ expect(silence[1].inputs).toEqual({ duration: 2.5, sample_rate: 44100, channels: 2 });+ // "mute" isn't a binding: nothing else in the graph took it.+ expect(Object.values(muted.workflow).some((n) => "mute" in n.inputs)).toBe(false);++ const silent = await prepare("video-fit-clip", { video: "clip.mp4", startTime: 6, fps: 30, extra: { width: 1280, height: 720 } }, "trim", { "clip.mp4": clip({ hasAudio: false }) });+ // No end: the rest of the 10 s clip.+ expect(Object.values(silent.workflow).find((n) => n.class_type === "EmptyAudio")!.inputs.duration).toBe(4);++ // A window past the clip's end is cut to what's there.+ const short = await prepare("video-fit-clip", { video: "clip.mp4", startTime: 8, endTime: 20, fps: 30, extra: { width: 1280, height: 720, mute: true } }, "trim", { "clip.mp4": clip() });+ expect(Object.values(short.workflow).find((n) => n.class_type === "EmptyAudio")!.inputs.duration).toBe(2);++ // No header and no end: no way to know how long the silence must be, so no track at all.+ const unknown = await prepare("video-fit-clip", { video: "clip.webm", startTime: 0, fps: 30, extra: { width: 1280, height: 720, mute: true } }, "trim", {});+ expect(combine(unknown.workflow).inputs.audio).toBeUndefined();+ expect(Object.values(unknown.workflow).some((n) => n.class_type === "EmptyAudio")).toBe(false);+ });++ it("joins the fitted clips packet by packet, in order", async () => {+ const { workflow: wf } = await prepare("video-concat-encoded", { videos: ["f1.mp4", "f2.mp4", "f3.mp4"] }, "concat");+ const loads = Object.values(wf).filter((n) => n.class_type === "LoadVideo").map((n) => n.inputs.file);+ expect(loads).toEqual(["f1.mp4", "f2.mp4", "f3.mp4"]);+ const concat = Object.values(wf).find((n) => n.class_type === "ConcatenateVideo")!;+ expect(Object.keys(concat.inputs).filter((k) => k.startsWith("videos."))).toHaveLength(3);+ });+});diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 863a127f..42796593 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -1,6 +1,6 @@{"version": 1,- "generatedAt": "2026-10-26T00:45:58.502Z",+ "generatedAt": "2026-10-26T01:42:22.937Z","comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597","comfyuiVersion": "0.41.0","workflowTemplatesVersion": "0.11.86",@@ -12891,6 +12891,93 @@"notes": "The Faceless / Explainer \"Frame by frame\" join (r4/faceless-plus): the Ken Burns scenes (kenburns-still, and the pieces of scenes over 10 s), and joins of those joins, one after another in input order. The template joins two clips (video, video2); the provider rewrites it per request (expand \"videos\", expandVideoJoinWorkflow): one LoadVideo per inputs.videos entry, wired to ConcatenateVideo videos.video0..N-1 (at most 100). ConcatenateVideo copies the encoded packets when every clip has the same codec, extradata, size, bit depth, colour space and sound layout (clips ComfyUI's CreateVideo / SaveVideo made at one size and fps), so RAM stays flat however long the film is (video-concat-{2,3,4} decode every frame as float32: about 11 MB a frame at 720p, 20 GB for a 60 s film at 30 fps); otherwise it re-encodes one clip at a time to the first clip's settings (still constant memory), and clips of different sizes fail with \"could not be encoded compatibly\". Unlike video-concat-{2,3,4} it neither scales, crops nor retimes: the clips must share one size and frame rate. Sound tracks are kept as they are (the Ken Burns clips have none; the mux adds the voice and the bed).","expand": "videos"},+ {+ "id": "video-fit-clip",+ "title": "One clip cut, retimed and framed for a packet-copy join: start/length at a set fps, centre crop, its sound or silence (VHS meta-batch, no model)",+ "capability": "trim",+ "file": "video-fit-clip.json",+ "source": "hand-built (scripts/comfy/hand-built/video-fit-clip.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "video"+ }+ ],+ "startTime": [+ {+ "node": "8",+ "input": "value"+ }+ ],+ "duration": [+ {+ "node": "9",+ "input": "value"+ }+ ],+ "fps": [+ {+ "node": "5",+ "input": "value"+ }+ ],+ "width": [+ {+ "node": "3",+ "input": "width"+ }+ ],+ "height": [+ {+ "node": "3",+ "input": "height"+ }+ ],+ "framesPerBatch": [+ {+ "node": "2",+ "input": "frames_per_batch"+ }+ ],+ "filenamePrefix": [+ {+ "node": "4",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "4",+ "kind": "video"+ }+ ],+ "defaults": {+ "width": 1280,+ "height": 720,+ "fps": 30,+ "duration": 0,+ "startTime": 0,+ "framesPerBatch": 64+ },+ "limits": {+ "maxWidth": 2048,+ "maxHeight": 2048,+ "dimensionMultiple": 2+ },+ "models": [],+ "customNodes": [+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 0,+ "license": "n/a (no model; ComfyUI core + VideoHelperSuite GPL-3.0 code)",+ "validated": true,+ "notes": "The Canvas Video concatenator (r4/canvas-plus), one job per clip, then video-concat-encoded joins them: every clip comes out at the film's size (width x height, scaled to cover and centre-cropped), at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideo resamples to fps and skips round(startTime x fps) frames, keeping round(duration x fps) (duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = skipped frames / fps, length = kept frames / fps), so picture and sound stay in sync. framesPerBatch frames per pass (64): memory stays flat however long the clip. Muted clips and clips with no sound: the provider replaces the combine's audio with an EmptyAudio as long as the window (silenceVhsAudio), so every clip of a film has a sound track; when the window's length is unknown (no header, no end) the sound is dropped instead."+ },{"id": "audio-loop-crossfade","title": "Music bed of any length: loop a clip with equal-power crossfades and a fade-out (core audio nodes + core loop)",diff --git a/workflows/comfyui/video-fit-clip.json b/workflows/comfyui/video-fit-clip.jsonnew file mode 100644index 00000000..b719f5b1--- /dev/null+++ b/workflows/comfyui/video-fit-clip.json@@ -0,0 +1,150 @@+{+ "1": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": [+ "5",+ 0+ ],+ "custom_width": 0,+ "custom_height": 0,+ "frame_load_cap": [+ "7",+ 1+ ],+ "skip_first_frames": [+ "6",+ 1+ ],+ "select_every_nth": 1,+ "format": "None",+ "meta_batch": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Clip at the film's frame rate, from startTime for duration seconds (0 = to the end), framesPerBatch frames per pass"+ }+ },+ "2": {+ "class_type": "VHS_BatchManager",+ "inputs": {+ "frames_per_batch": 64+ },+ "_meta": {+ "title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"+ }+ },+ "3": {+ "class_type": "ImageScale",+ "inputs": {+ "image": [+ "1",+ 0+ ],+ "upscale_method": "lanczos",+ "width": 1280,+ "height": 720,+ "crop": "center"+ },+ "_meta": {+ "title": "Into the film's frame: scaled to cover, centre-cropped"+ }+ },+ "4": {+ "class_type": "VHS_VideoCombine",+ "inputs": {+ "images": [+ "3",+ 0+ ],+ "audio": [+ "1",+ 2+ ],+ "frame_rate": [+ "5",+ 0+ ],+ "loop_count": 0,+ "filename_prefix": "fuobe/video-fit-clip",+ "format": "video/h264-mp4",+ "pix_fmt": "yuv420p",+ "crf": 19,+ "save_metadata": false,+ "trim_to_audio": false,+ "pingpong": false,+ "save_output": true,+ "meta_batch": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "H.264 + the window's sound (the provider swaps in silence for a muted or silent clip)"+ }+ },+ "5": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 30+ },+ "_meta": {+ "title": "fps"+ }+ },+ "6": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "round(a * b)",+ "values.a": [+ "8",+ 0+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Frames to skip: startTime x fps"+ }+ },+ "7": {+ "class_type": "ComfyMathExpression",+ "inputs": {+ "expression": "round(a * b)",+ "values.a": [+ "9",+ 0+ ],+ "values.b": [+ "5",+ 0+ ]+ },+ "_meta": {+ "title": "Frames to keep: duration x fps (0 = to the end)"+ }+ },+ "8": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "startTime (s)"+ }+ },+ "9": {+ "class_type": "PrimitiveFloat",+ "inputs": {+ "value": 0+ },+ "_meta": {+ "title": "duration (s, 0 = to the end)"+ }+ }+}