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
Open engine: Extract frame, video-synced foley and product shot workflows
Claudea01b9bfbc248
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjsindex 1573e450..e9c9a751 100644--- a/scripts/comfy/build-library.mjs+++ b/scripts/comfy/build-library.mjs@@ -78,6 +78,8 @@ const NUMERIC_DEFAULT_KEYS = ['startTime', 'startFrame', 'numLayers', 'maxSize', 'controlStrength', 'framesPerBatch', 'maxTokens', 'maxChars','backgroundVolumeDb', 'startStep', 'audioScale', 'lipsExpression', 'fontSize', 'textureSize', 'turntableFps','octreeResolution', 'columns', 'rows',+ // av-tools (Wave B)+ 'frameIndex',];export const BINDING_KEYS = new Set(['prompt', 'negativePrompt', 'image', 'image2', 'image3', 'image4', 'mask', 'endImage', 'video', 'audio',@@ -94,6 +96,8 @@ export const BINDING_KEYS = new Set(['maxChars', 'backgroundVolumeDb', 'startStep', 'audioScale', 'lengthMode', 'lipsExpression', 'whisperModel','fontSize', 'fontColor', 'captionPosition', 'textureSize', 'turntableFps', 'octreeResolution', 'columns', 'rows','gridPrompt', 'sheetPrompt',+ // av-tools (Wave B, see library.spec.mjs header)+ 'frameIndex',]);const readJson = (p, fallback) => (fs.existsSync(p) ? JSON.parse(fs.readFileSync(p, 'utf8')) : fallback);diff --git a/scripts/comfy/hand-built/frame-extract.json b/scripts/comfy/hand-built/frame-extract.jsonnew file mode 100644index 00000000..ef975af7--- /dev/null+++ b/scripts/comfy/hand-built/frame-extract.json@@ -0,0 +1,65 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video"+ }+ },+ "2": {+ "class_type": "Video Slice",+ "inputs": {+ "video": [+ "1",+ 0+ ],+ "start_time": -1.0,+ "duration": 0.0,+ "strict_duration": false+ },+ "_meta": {+ "title": "Window the frame is taken from (default: the last second; only it is decoded)"+ }+ },+ "3": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Decode the window"+ }+ },+ "4": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "3",+ 0+ ],+ "batch_index": -1,+ "length": 1+ },+ "_meta": {+ "title": "Frame of the window (-1 = its last, 0 = its first)"+ }+ },+ "5": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/frame-extract"+ },+ "_meta": {+ "title": "Save frame"+ }+ }+}diff --git a/scripts/comfy/hand-built/product-shot-qwen-edit-2509.json b/scripts/comfy/hand-built/product-shot-qwen-edit-2509.jsonnew file mode 100644index 00000000..87db12f4--- /dev/null+++ b/scripts/comfy/hand-built/product-shot-qwen-edit-2509.json@@ -0,0 +1,357 @@+{+ "78": {+ "inputs": {+ "image": "image_qwen_image_edit_2509_input_image.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Product photo"+ }+ },+ "19:14": {+ "class_type": "LoadBackgroundRemovalModel",+ "inputs": {+ "bg_removal_name": "birefnet.safetensors"+ },+ "_meta": {+ "title": "Load Background Removal Model"+ }+ },+ "19:13": {+ "class_type": "RemoveBackground",+ "inputs": {+ "bg_removal_model": [+ "19:14",+ 0+ ],+ "image": [+ "78",+ 0+ ]+ },+ "_meta": {+ "title": "Remove Background"+ }+ },+ "19:15": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "19:13",+ 0+ ]+ },+ "_meta": {+ "title": "Product mask"+ }+ },+ "20": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "78",+ 0+ ]+ },+ "_meta": {+ "title": "Photo size"+ }+ },+ "21": {+ "class_type": "EmptyImage",+ "inputs": {+ "width": [+ "20",+ 0+ ],+ "height": [+ "20",+ 1+ ],+ "batch_size": 1,+ "color": 16777215+ },+ "_meta": {+ "title": "White backdrop"+ }+ },+ "22": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "21",+ 0+ ],+ "source": [+ "78",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "19:15",+ 0+ ]+ },+ "_meta": {+ "title": "Product on white"+ }+ },+ "433:3": {+ "inputs": {+ "seed": 362225868152841,+ "steps": [+ "433:436",+ 0+ ],+ "cfg": [+ "433:437",+ 0+ ],+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "model": [+ "433:75",+ 0+ ],+ "positive": [+ "433:111",+ 0+ ],+ "negative": [+ "433:110",+ 0+ ],+ "latent_image": [+ "433:88",+ 0+ ]+ },+ "class_type": "KSampler",+ "_meta": {+ "title": "KSampler"+ }+ },+ "433:8": {+ "inputs": {+ "samples": [+ "433:3",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ]+ },+ "class_type": "VAEDecode",+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "433:37": {+ "inputs": {+ "unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",+ "weight_dtype": "default"+ },+ "class_type": "UNETLoader",+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "433:38": {+ "inputs": {+ "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "type": "qwen_image",+ "device": "default"+ },+ "class_type": "CLIPLoader",+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "433:39": {+ "inputs": {+ "vae_name": "qwen_image_vae.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "433:66": {+ "inputs": {+ "shift": 3,+ "sampling": "flow",+ "model": [+ "1001",+ 0+ ]+ },+ "class_type": "ModelSamplingAuraFlow",+ "_meta": {+ "title": "ModelSamplingAuraFlow"+ }+ },+ "433:75": {+ "inputs": {+ "strength": 1,+ "pre_cfg": false,+ "model": [+ "433:66",+ 0+ ]+ },+ "class_type": "CFGNorm",+ "_meta": {+ "title": "CFGNorm"+ }+ },+ "433:88": {+ "inputs": {+ "pixels": [+ "433:117",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ]+ },+ "class_type": "VAEEncode",+ "_meta": {+ "title": "VAE Encode"+ }+ },+ "433:89": {+ "inputs": {+ "lora_name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",+ "strength_model": 1,+ "model": [+ "433:37",+ 0+ ]+ },+ "class_type": "LoraLoaderModelOnly",+ "_meta": {+ "title": "Load LoRA"+ }+ },+ "433:110": {+ "inputs": {+ "prompt": "",+ "clip": [+ "433:38",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ],+ "image1": [+ "433:117",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "Text Encode Qwen Image Edit Plus"+ }+ },+ "433:111": {+ "inputs": {+ "prompt": [+ "1002",+ 0+ ],+ "clip": [+ "433:38",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ],+ "image1": [+ "433:117",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "Text Encode Qwen Image Edit Plus"+ }+ },+ "433:117": {+ "inputs": {+ "image": [+ "22",+ 0+ ]+ },+ "class_type": "FluxKontextImageScale",+ "_meta": {+ "title": "FluxKontextImageScale"+ }+ },+ "433:436": {+ "inputs": {+ "value": 4+ },+ "class_type": "PrimitiveInt",+ "_meta": {+ "title": "Stpes"+ }+ },+ "433:437": {+ "inputs": {+ "value": 1+ },+ "class_type": "PrimitiveFloat",+ "_meta": {+ "title": "CFG"+ }+ },+ "469": {+ "inputs": {+ "filename_prefix": "fuobe/product-shot-qwen-edit-2509",+ "format": "png",+ "format.bit_depth": "8-bit",+ "format.input_color_space": "sRGB",+ "images": [+ "433:8",+ 0+ ]+ },+ "class_type": "SaveImageAdvanced",+ "_meta": {+ "title": "Save Image (Advanced)"+ }+ },+ "1001": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "433:89",+ 0+ ],+ "lora_name": "Qwen-Image-Edit-2509-White_to_Scene.safetensors",+ "strength_model": 1.0+ },+ "_meta": {+ "title": "White_to_Scene LoRA (product on white -> lit into a scene)"+ }+ },+ "1002": {+ "class_type": "StringConcatenate",+ "inputs": {+ "string_a": "白底图转场景,",+ "string_b": "place the product on a marble counter in a bright kitchen, soft morning light",+ "delimiter": ""+ },+ "_meta": {+ "title": "Trigger (\"white background to scene\") + the scene"+ }+ }+}diff --git a/scripts/comfy/hand-built/v2a-hunyuan-foley.json b/scripts/comfy/hand-built/v2a-hunyuan-foley.jsonnew file mode 100644index 00000000..758e6106--- /dev/null+++ b/scripts/comfy/hand-built/v2a-hunyuan-foley.json@@ -0,0 +1,124 @@+{+ "1": {+ "class_type": "HunyuanModelLoader",+ "inputs": {+ "model_name": "hunyuanvideo_foley_xl_fp8_e4m3fn.safetensors",+ "precision": "bf16",+ "quantization": "auto"+ },+ "_meta": {+ "title": "HunyuanModelLoader"+ }+ },+ "2": {+ "class_type": "HunyuanDependenciesLoader",+ "inputs": {+ "vae_name": "vae_128d_48k_fp16.safetensors",+ "synchformer_name": "synchformer_state_dict_fp16.safetensors"+ },+ "_meta": {+ "title": "HunyuanDependenciesLoader"+ }+ },+ "5": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 8,+ "custom_width": 512,+ "custom_height": 0,+ "frame_load_cap": 65,+ "skip_first_frames": 0,+ "select_every_nth": 1+ },+ "_meta": {+ "title": "Frames the foley follows (8 fps, 512 px wide: small in memory)"+ }+ },+ "3": {+ "class_type": "HunyuanFoleySampler",+ "inputs": {+ "hunyuan_model": [+ "1",+ 0+ ],+ "hunyuan_deps": [+ "2",+ 0+ ],+ "image": [+ "5",+ 0+ ],+ "frame_rate": 8,+ "duration": 8.0,+ "prompt": "footsteps on gravel, a car door closes",+ "negative_prompt": "noisy, harsh",+ "cfg_scale": 4.5,+ "steps": 50,+ "sampler": "euler",+ "batch_size": 1,+ "seed": 0,+ "force_offload": true+ },+ "_meta": {+ "title": "HunyuanFoleySampler (video-synced)"+ }+ },+ "6": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (its picture is copied, never decoded)"+ }+ },+ "7": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "6",+ 0+ ],+ "codec": "auto",+ "complete_audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Same picture, the new sound (stream copy)"+ }+ },+ "8": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "7",+ 0+ ],+ "filename_prefix": "fuobe/v2a-hunyuan-foley",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ },+ "4": {+ "class_type": "SaveAudioMP3",+ "inputs": {+ "audio": [+ "3",+ 0+ ],+ "filename_prefix": "fuobe/v2a-hunyuan-foley",+ "quality": "V0"+ },+ "_meta": {+ "title": "Save the sound track"+ }+ }+}diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjsindex 1c0edf0c..a3c9eb69 100644--- a/scripts/comfy/library.spec.mjs+++ b/scripts/comfy/library.spec.mjs@@ -54,6 +54,8 @@// octreeResolution (Hunyuan3D 2.1 mesh resolution)// columns, rows (ImageGridtoBatch: how the sheet is cut into tiles)// gridPrompt, sheetPrompt (contact-sheet / turnaround framing text placed before the prompt)+// Keys added with the av-tools workflows (Wave B):+// frameIndex (Extract frame: which frame of the Trim Video window, -1 = its last, 0 = its first)// Output fields beyond {node, kind}: stem ("voice" | "background"), role ("cues" | "transcript" | "language" |// "sheet" | "tiles" | "layers" | "first-frame" | "turntable"). Entry fields: worker "isolated" (needs its own ComfyUI,// see README), expand "captions" (the provider writes one segment per caption cue before submitting).@@ -114,6 +116,8 @@ export const KNOWN_MODELS = {'qwen_image_vae.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors' },'Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors': { folder: 'loras', url: 'https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors' },'Qwen-Image-Edit-2509-Relight.safetensors': { folder: 'loras', url: 'https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/loras/Qwen-Image-Edit-2509-Relight.safetensors' },+ // av-tools (Wave B): Product shot's open route+ 'Qwen-Image-Edit-2509-White_to_Scene.safetensors': { folder: 'loras', url: 'https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/loras/Qwen-Image-Edit-2509-White_to_Scene.safetensors' },'Qwen-Image-Edit-2509-Light-Migration.safetensors': { folder: 'loras', url: 'https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/loras/Qwen-Image-Edit-2509-Light-Migration.safetensors' },'next-scene_lora-v2-3000.safetensors': { folder: 'loras', url: 'https://huggingface.co/lovis93/next-scene-qwen-image-lora-2509/resolve/main/next-scene_lora-v2-3000.safetensors' },'wan2.2_bernini_r_high_noise_fp8_scaled.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/Bernini-R/resolve/main/diffusion_models/wan2.2_bernini_r_high_noise_fp8_scaled.safetensors' },@@ -2292,4 +2296,64 @@ export const SPEC = ['The app compiles the Soul Cast fields (genre, era, archetype, age, build, hair, outfit...) into prompt; a batch of casts = several seeds. The sheet is cut into the 4 views; ' +'"Save as character" turns one into an element (optionally an AI-Toolkit LoRA from the views).',},++ // ---- av-tools (Wave B): extract frame, video-synced foley, product shot ---------+ {+ id: 'frame-extract',+ title: 'Extract a frame: the last frame, or the frame at a time (core Trim Video + Get Image from Batch)',+ capability: 'frame',+ handBuilt: 'hand-built/frame-extract.json',+ bindings: {+ video: [b('1', 'file')], startTime: [b('2', 'start_time')], duration: [b('2', 'duration')], frameIndex: [b('4', 'batch_index')],+ },+ outputs: [{ node: '5', kind: 'image' }],+ vramGb: 0,+ license: 'n/a (no model)',+ notes:+ 'Defaults give the LAST frame: Trim Video with start_time -1 (negative = from the end) and duration 0 decodes only the last second, Get Image from Batch takes index -1. ' ++ 'Frame at time t: params.startTime = t, params.endTime = t + 0.5 and params.extra.frameIndex = 0 (the first frame of that window); the first frame of the clip is t = 0. ' ++ 'Only the window is decoded, so it runs in constant memory on any clip length. The open side of fal-ai/ffmpeg-api/extract-frame (Canvas Extract frame, extend chains, Katana keyframes). Runs on CPU.',+ },+ {+ id: 'v2a-hunyuan-foley',+ title: 'Foley for a video: HunyuanVideo-Foley XL follows the frames (territory-restricted licence)',+ capability: 'v2a',+ handBuilt: 'hand-built/v2a-hunyuan-foley.json',+ bindings: {+ video: [b('5', 'video'), b('6', 'file')], prompt: [b('3', 'prompt')], negativePrompt: [b('3', 'negative_prompt')], duration: [b('3', 'duration')],+ fps: [b('5', 'force_rate'), b('3', 'frame_rate')], frames: [b('5', 'frame_load_cap')], seed: [b('3', 'seed')], steps: [b('3', 'steps')], cfg: [b('3', 'cfg_scale')],+ },+ outputs: [{ node: '8', kind: 'video' }, { node: '4', kind: 'audio' }],+ limits: { maxFrames: 481 },+ vramGb: 12,+ license: 'Tencent Hunyuan Community License (territory EXCLUDES the EU, UK and South Korea)',+ autoDownloads: ['HunyuanDependenciesLoader fetches the SigLIP2 and CLAP text encoders into the Hugging Face cache on first run'],+ notes:+ 'Same model files as sfx-hunyuan-foley (no new download). VHS_LoadVideo samples the clip at 8 fps, 512 px wide (frames = duration x fps, so a 60 s clip holds 481 small frames), ' ++ 'HunyuanFoleySampler gets them as its image input and makes duration seconds of 48 kHz sound in sync. Concatenate Video lays it under the untouched picture (stream copy); ' ++ 'a sound longer than the clip is cut at its end. Outputs: the video with the new sound, then the sound alone (MP3).',+ },+ {+ id: 'product-shot-qwen-edit-2509',+ title: 'Product shot: cut out (BiRefNet), put on white, relit into a scene (Qwen-Image-Edit 2509 + White_to_Scene LoRA)',+ capability: 'edit',+ handBuilt: 'hand-built/product-shot-qwen-edit-2509.json',+ bindings: {+ prompt: [b('1002', 'string_b')],+ negativePrompt: [b('433:110', 'prompt')],+ image: [b('78', 'image')],+ seed: [b('433:3', 'seed')],+ steps: [b('433:436', 'value')],+ cfg: [b('433:437', 'value')],+ loraStrength: [b('1001', 'strength_model')],+ },+ outputs: [{ node: '469', kind: 'image' }],+ limits: { maxWidth: 2048, maxHeight: 2048 },+ vramGb: 24,+ license: 'Apache-2.0 (Qwen-Image-Edit-2509, White_to_Scene and Lightning LoRAs); BiRefNet MIT',+ notes:+ 'relight-qwen-edit-2509 with a cut-out in front: core RemoveBackground (BiRefNet) masks the product, Image Composite Masked puts it on a white backdrop the size of the photo, ' ++ 'then Qwen-Image-Edit 2509 + Lightning (4 steps, cfg 1) + dx8152 White_to_Scene LoRA (trigger "白底图转场景," = "white background to scene", prefixed by node 1002) places and relights it in the scene the prompt describes. ' ++ 'The open route of the Product shot app (Bria Product Shot / Product Photography on the cloud).',+ },];diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.jsonindex 25e4d6b2..a804b515 100644--- a/scripts/comfy/validation-state.json+++ b/scripts/comfy/validation-state.json@@ -107,6 +107,12 @@"error": null,"at": "2026-10-16T20:57:15.735Z"},+ "frame-extract": {+ "sha256": "0f695a5ddf779a1d7b57f1c817e14c36e53534c81148449055f39c55cf9952ab",+ "validated": true,+ "error": null,+ "at": "2026-10-18T11:37:13.707Z"+ },"grid-zimage-contact-sheet": {"sha256": "68bc71594b404d9cc14c7eb75817b4b0d3661ebb1bef2c6f17b6bc3fbe67646e","validated": true,@@ -251,6 +257,12 @@"error": null,"at": "2026-10-17T21:02:01.173Z"},+ "product-shot-qwen-edit-2509": {+ "sha256": "4cf09c72001f97c6ebdec621c2bd4116cf699a310329104a5fde9bac81b5c7fb",+ "validated": true,+ "error": null,+ "at": "2026-10-18T11:37:15.500Z"+ },"qwen-image-2512-t2i": {"sha256": "c18da4a3488120bdcee722e4ae7d187385544ec4805753e7dae6946ddb6f6ba5","validated": true,@@ -431,6 +443,12 @@"error": null,"at": "2026-10-16T20:57:26.825Z"},+ "v2a-hunyuan-foley": {+ "sha256": "2b6f39b10c3d7bfdef30257682a207b7b89af5f246c38c5aa782de7b3b496359",+ "validated": true,+ "error": null,+ "at": "2026-10-18T11:37:15.134Z"+ },"v2a-mmaudio": {"sha256": "3f8f0c2713a0e46202546db49a0228601d987a10577c96f248211259c7483608","validated": true,diff --git a/src/lib/av/frames.ts b/src/lib/av/frames.tsnew file mode 100644index 00000000..d294db98--- /dev/null+++ b/src/lib/av/frames.ts@@ -0,0 +1,36 @@+import type { Engine, GenerationRequest } from "@/lib/catalog/types";++/**+ * Extract-frame requests for both engines. The cloud model (fal's FFmpeg extract-frame) knows the+ * first, middle or last frame; the open one (ComfyUI frame-extract) decodes a short Trim Video window+ * and takes its first or last frame, so it also does "the frame at 3.2 s".+ */+export type FramePick = "first" | "last" | { at: number };++export const FRAME_MODEL: Record<Engine, string> = { cloud: "extract-frame", open: "oss-extract-frame" };++/** How long a window the open workflow decodes around the moment asked for (seconds). */+const WINDOW = 0.5;++export function frameParams(engine: Engine, pick: FramePick): GenerationRequest["params"] {+ if (engine === "cloud") {+ if (typeof pick === "object") throw new Error("The cloud frame tool takes the first, middle or last frame — trim the clip first for a frame in between");+ return { extra: { frame_type: pick } };+ }+ if (pick === "last") return undefined; // the workflow's defaults: the last second, its last frame+ const at = pick === "first" ? 0 : Math.max(0, pick.at);+ return { startTime: at, endTime: at + WINDOW, extra: { frameIndex: 0 } };+}++/** A request for one frame of `video` (a URL or an upload). */+export function frameRequest(o: { feature: string; engine: Engine; video?: string; pick: FramePick; step?: GenerationRequest["step"] }): GenerationRequest {+ const params = frameParams(o.engine, o.pick);+ return {+ feature: o.feature,+ modelId: FRAME_MODEL[o.engine],+ op: "frame",+ ...(o.video && { inputs: { video: o.video } }),+ ...(params && { params }),+ ...(o.step && { step: o.step }),+ };+}diff --git a/src/lib/catalog/models.ts b/src/lib/catalog/models.tsindex aec13b0f..31587697 100644--- a/src/lib/catalog/models.ts+++ b/src/lib/catalog/models.ts@@ -641,6 +641,19 @@ const open: ModelDef[] = [options: { aspectRatios: VID_AR, resolutions: ["480p", "720p", "1080p"] },defaults: { aspectRatio: "16:9", resolution: "720p" },}),+ // The open side of fal's extract-frame (Canvas, extend chains, Katana keyframes). Last frame by default;+ // a frame at time t: params.startTime = t, endTime = t + 0.5, extra.frameIndex = 0 (see frameRequest in lib/av-frames.ts).+ o({+ id: "oss-extract-frame",+ name: "Extract frame",+ vendor: "ComfyUI",+ family: "utility",+ kind: "image",+ tagline: "The last frame of a video, or the frame at a moment — decodes only that second · CPU",+ routes: [comfy("frame", "frame-extract", "core Trim Video window + Get Image from Batch")],+ options: {},+ hidden: true,+ }),o({id: "oss-palette-image",name: "Palette match",@@ -844,6 +857,19 @@ const open: ModelDef[] = [options: { durations: [3, 5, 8, 10], seed: true, negativePrompt: true },defaults: { duration: 5 },}),+ // Foley that follows the picture: the same HunyuanVideo-Foley weights, fed the clip's frames (Audio → Sound for video).+ o({+ id: "oss-hunyuan-foley-video",+ name: "HunyuanVideo-Foley (video)",+ vendor: "Tencent",+ family: "hunyuan",+ kind: "video",+ tagline: "48 kHz foley in sync with your clip, laid under the untouched picture · 12 GB GPU · licence excludes the EU, UK and South Korea",+ badges: ["new"],+ routes: [comfy("v2a", "v2a-hunyuan-foley", "frames at 8 fps → HunyuanFoleySampler; picture stream-copied")],+ options: { durations: [4, 8, 10, 15, 20, 30], seed: true, negativePrompt: true },+ defaults: { duration: 8 },+ }),o({id: "oss-mmaudio-sfx",name: "MMAudio (text to audio)",@@ -1008,6 +1034,18 @@ const open: ModelDef[] = [routes: [comfy("edit", "tryon-flux2-klein-4b", "try-on LoRA; old outfit masked out first")],options: { maxImages: 3, seed: true, requires: { images: 2, msg: "Add a photo of the person, then the garment" } },}),+ // Product shot (the open route of the Product shot app): cut out, on white, relit into the scene you describe.+ o({+ id: "oss-product-shot",+ name: "Qwen-Image-Edit Product Shot",+ vendor: "Alibaba Qwen × dx8152",+ family: "qwen-image",+ kind: "image",+ tagline: "Cuts your product out and relights it into the scene you describe (White_to_Scene LoRA, 4 steps) · 24 GB GPU · Apache-2.0",+ badges: ["new"],+ routes: [comfy("edit", "product-shot-qwen-edit-2509", "BiRefNet cut-out on white → Qwen-Image-Edit 2509 + White_to_Scene LoRA")],+ options: { seed: true, negativePrompt: true, maxImages: 1, requires: { prompt: true, msg: "Describe the scene to put the product in, e.g. “on a marble counter, morning light”" } },+ }),// Cinema Studio grid and Soul Cast (used by those studios)o({id: "oss-zimage-grid",diff --git a/src/server/chains.ts b/src/server/chains.tsindex 9f9ede96..a35776e4 100644--- a/src/server/chains.ts+++ b/src/server/chains.ts@@ -167,14 +167,16 @@ export function createExtendChain(original: GenerationRequest, model: ModelDef):const video = original.inputs?.video;if (!video) throw new Error("Add the video to continue");if (!supportsOp(model, "i2v")) throw new Error(`${model.name} can't continue a video`);+ // The last frame comes from fal's FFmpeg tool, or ComfyUI's frame-extract on the open engine.+ const frameModel = model.engine === "open" ? "oss-extract-frame" : "extract-frame";assertOneMode([- { label: "Taking the last frame", modelId: "extract-frame", op: "frame" },+ { label: "Taking the last frame", modelId: frameModel, op: "frame" },{ label: model.name, modelId: model.id, op: "i2v" },{ label: "Joining the clips", modelId: joinModelId(model.engine), op: "concat" },]);const batchId = nanoid(10);const frame = createGenerations(- { feature: original.feature, modelId: "extract-frame", op: "frame", inputs: { video }, step: { label: "Last frame", index: 0, of: 3 } },+ { feature: original.feature, modelId: frameModel, op: "frame", inputs: { video }, step: { label: "Last frame", index: 0, of: 3 } },{ batchId },)[0];const rest = { ...original.inputs };diff --git a/tests/canvas.test.ts b/tests/canvas.test.tsindex cf45c84a..5a8e102c 100644--- a/tests/canvas.test.ts+++ b/tests/canvas.test.ts@@ -385,7 +385,8 @@ describe("canvas templates", () => {it("disables palette entries with no model on an install's only engine", () => {expect(paletteItems("both").filter((p) => p.disabled)).toEqual([]);const open = paletteItems("open");- expect(open.find((p) => p.id === "frame")?.disabled).toMatch(/^No open-source model for extract frame yet/);+ // ComfyUI's frame-extract workflow (oss-extract-frame) runs Extract frame on open-only installs too.+ expect(open.find((p) => p.id === "frame")?.disabled).toBeUndefined();expect(open.find((p) => p.id === "model-image")?.disabled).toBeUndefined();expect(open.find((p) => p.id === "join")?.disabled).toBeUndefined();});diff --git a/workflows/comfyui/frame-extract.json b/workflows/comfyui/frame-extract.jsonnew file mode 100644index 00000000..0e27c0f7--- /dev/null+++ b/workflows/comfyui/frame-extract.json@@ -0,0 +1,65 @@+{+ "1": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video"+ }+ },+ "2": {+ "class_type": "Video Slice",+ "inputs": {+ "video": [+ "1",+ 0+ ],+ "start_time": -1,+ "duration": 0,+ "strict_duration": false+ },+ "_meta": {+ "title": "Window the frame is taken from (default: the last second; only it is decoded)"+ }+ },+ "3": {+ "class_type": "GetVideoComponents",+ "inputs": {+ "video": [+ "2",+ 0+ ]+ },+ "_meta": {+ "title": "Decode the window"+ }+ },+ "4": {+ "class_type": "ImageFromBatch",+ "inputs": {+ "image": [+ "3",+ 0+ ],+ "batch_index": -1,+ "length": 1+ },+ "_meta": {+ "title": "Frame of the window (-1 = its last, 0 = its first)"+ }+ },+ "5": {+ "class_type": "SaveImage",+ "inputs": {+ "images": [+ "4",+ 0+ ],+ "filename_prefix": "fuobe/frame-extract"+ },+ "_meta": {+ "title": "Save frame"+ }+ }+}diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.jsonindex 16d6914b..2366ff7a 100644--- a/workflows/comfyui/manifest.json+++ b/workflows/comfyui/manifest.json@@ -1,6 +1,6 @@{"version": 1,- "generatedAt": "2026-10-18T07:15:22.469Z",+ "generatedAt": "2026-10-18T11:36:57.338Z","comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597","comfyuiVersion": "0.41.0","workflowTemplatesVersion": "0.11.86",@@ -10484,6 +10484,316 @@"license": "Apache-2.0 (Z-Image Turbo)","validated": true,"notes": "The app compiles the Soul Cast fields (genre, era, archetype, age, build, hair, outfit...) into prompt; a batch of casts = several seeds. The sheet is cut into the 4 views; \"Save as character\" turns one into an element (optionally an AI-Toolkit LoRA from the views)."+ },+ {+ "id": "frame-extract",+ "title": "Extract a frame: the last frame, or the frame at a time (core Trim Video + Get Image from Batch)",+ "capability": "frame",+ "file": "frame-extract.json",+ "source": "hand-built (scripts/comfy/hand-built/frame-extract.json)",+ "bindings": {+ "video": [+ {+ "node": "1",+ "input": "file"+ }+ ],+ "startTime": [+ {+ "node": "2",+ "input": "start_time"+ }+ ],+ "duration": [+ {+ "node": "2",+ "input": "duration"+ }+ ],+ "frameIndex": [+ {+ "node": "4",+ "input": "batch_index"+ }+ ],+ "filenamePrefix": [+ {+ "node": "5",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "5",+ "kind": "image"+ }+ ],+ "defaults": {+ "duration": 0,+ "startTime": -1,+ "frameIndex": -1+ },+ "limits": {},+ "models": [],+ "customNodes": [],+ "vramGb": 0,+ "license": "n/a (no model)",+ "validated": true,+ "notes": "Defaults give the LAST frame: Trim Video with start_time -1 (negative = from the end) and duration 0 decodes only the last second, Get Image from Batch takes index -1. Frame at time t: params.startTime = t, params.endTime = t + 0.5 and params.extra.frameIndex = 0 (the first frame of that window); the first frame of the clip is t = 0. Only the window is decoded, so it runs in constant memory on any clip length. The open side of fal-ai/ffmpeg-api/extract-frame (Canvas Extract frame, extend chains, Katana keyframes). Runs on CPU."+ },+ {+ "id": "v2a-hunyuan-foley",+ "title": "Foley for a video: HunyuanVideo-Foley XL follows the frames (territory-restricted licence)",+ "capability": "v2a",+ "file": "v2a-hunyuan-foley.json",+ "source": "hand-built (scripts/comfy/hand-built/v2a-hunyuan-foley.json)",+ "bindings": {+ "video": [+ {+ "node": "5",+ "input": "video"+ },+ {+ "node": "6",+ "input": "file"+ }+ ],+ "prompt": [+ {+ "node": "3",+ "input": "prompt"+ }+ ],+ "negativePrompt": [+ {+ "node": "3",+ "input": "negative_prompt"+ }+ ],+ "duration": [+ {+ "node": "3",+ "input": "duration"+ }+ ],+ "fps": [+ {+ "node": "5",+ "input": "force_rate"+ },+ {+ "node": "3",+ "input": "frame_rate"+ }+ ],+ "frames": [+ {+ "node": "5",+ "input": "frame_load_cap"+ }+ ],+ "seed": [+ {+ "node": "3",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "3",+ "input": "steps"+ }+ ],+ "cfg": [+ {+ "node": "3",+ "input": "cfg_scale"+ }+ ],+ "filenamePrefix": [+ {+ "node": "8",+ "input": "filename_prefix"+ },+ {+ "node": "4",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "8",+ "kind": "video"+ },+ {+ "node": "4",+ "kind": "audio"+ }+ ],+ "defaults": {+ "frames": 65,+ "fps": 8,+ "steps": 50,+ "cfg": 4.5,+ "duration": 8+ },+ "limits": {+ "maxFrames": 481+ },+ "models": [+ {+ "file": "hunyuanvideo_foley_xl_fp8_e4m3fn.safetensors",+ "folder": "foley",+ "url": "https://huggingface.co/phazei/HunyuanVideo-Foley/resolve/main/hunyuanvideo_foley_xl_fp8_e4m3fn.safetensors",+ "sizeGb": 3.75+ },+ {+ "file": "vae_128d_48k_fp16.safetensors",+ "folder": "foley",+ "url": "https://huggingface.co/phazei/HunyuanVideo-Foley/resolve/main/vae_128d_48k_fp16.safetensors",+ "sizeGb": 0.74+ },+ {+ "file": "synchformer_state_dict_fp16.safetensors",+ "folder": "foley",+ "url": "https://huggingface.co/phazei/HunyuanVideo-Foley/resolve/main/synchformer_state_dict_fp16.safetensors",+ "sizeGb": 0.47+ }+ ],+ "customNodes": [+ {+ "name": "ComfyUI-HunyuanVideo-Foley",+ "repo": "https://github.com/phazei/ComfyUI-HunyuanVideo-Foley"+ },+ {+ "name": "ComfyUI-VideoHelperSuite",+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"+ }+ ],+ "vramGb": 12,+ "license": "Tencent Hunyuan Community License (territory EXCLUDES the EU, UK and South Korea)",+ "validated": true,+ "notes": "Same model files as sfx-hunyuan-foley (no new download). VHS_LoadVideo samples the clip at 8 fps, 512 px wide (frames = duration x fps, so a 60 s clip holds 481 small frames), HunyuanFoleySampler gets them as its image input and makes duration seconds of 48 kHz sound in sync. Concatenate Video lays it under the untouched picture (stream copy); a sound longer than the clip is cut at its end. Outputs: the video with the new sound, then the sound alone (MP3).",+ "autoDownloads": [+ "HunyuanDependenciesLoader fetches the SigLIP2 and CLAP text encoders into the Hugging Face cache on first run"+ ]+ },+ {+ "id": "product-shot-qwen-edit-2509",+ "title": "Product shot: cut out (BiRefNet), put on white, relit into a scene (Qwen-Image-Edit 2509 + White_to_Scene LoRA)",+ "capability": "edit",+ "file": "product-shot-qwen-edit-2509.json",+ "source": "hand-built (scripts/comfy/hand-built/product-shot-qwen-edit-2509.json)",+ "bindings": {+ "prompt": [+ {+ "node": "1002",+ "input": "string_b"+ }+ ],+ "negativePrompt": [+ {+ "node": "433:110",+ "input": "prompt"+ }+ ],+ "image": [+ {+ "node": "78",+ "input": "image"+ }+ ],+ "seed": [+ {+ "node": "433:3",+ "input": "seed"+ }+ ],+ "steps": [+ {+ "node": "433:436",+ "input": "value"+ }+ ],+ "cfg": [+ {+ "node": "433:437",+ "input": "value"+ }+ ],+ "loraStrength": [+ {+ "node": "1001",+ "input": "strength_model"+ }+ ],+ "filenamePrefix": [+ {+ "node": "469",+ "input": "filename_prefix"+ }+ ]+ },+ "outputs": [+ {+ "node": "469",+ "kind": "image"+ }+ ],+ "defaults": {+ "steps": 4,+ "cfg": 1,+ "loraStrength": 1+ },+ "limits": {+ "maxWidth": 2048,+ "maxHeight": 2048+ },+ "models": [+ {+ "file": "Qwen-Image-Edit-2509-White_to_Scene.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/loras/Qwen-Image-Edit-2509-White_to_Scene.safetensors",+ "sizeGb": 0.24+ },+ {+ "file": "birefnet.safetensors",+ "folder": "background_removal",+ "url": "https://huggingface.co/Comfy-Org/BiRefNet/resolve/main/background_removal/birefnet.safetensors",+ "sizeGb": 0.44+ },+ {+ "file": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",+ "folder": "diffusion_models",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image-Edit_ComfyUI/resolve/main/split_files/diffusion_models/qwen_image_edit_2509_fp8_e4m3fn.safetensors",+ "sizeGb": 20.43+ },+ {+ "file": "qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "folder": "text_encoders",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "sizeGb": 9.38+ },+ {+ "file": "qwen_image_vae.safetensors",+ "folder": "vae",+ "url": "https://huggingface.co/Comfy-Org/Qwen-Image_ComfyUI/resolve/main/split_files/vae/qwen_image_vae.safetensors",+ "sizeGb": 0.25+ },+ {+ "file": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",+ "folder": "loras",+ "url": "https://huggingface.co/lightx2v/Qwen-Image-Lightning/resolve/main/Qwen-Image-Edit-2509/Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",+ "sizeGb": 0.85+ }+ ],+ "customNodes": [],+ "vramGb": 24,+ "license": "Apache-2.0 (Qwen-Image-Edit-2509, White_to_Scene and Lightning LoRAs); BiRefNet MIT",+ "validated": true,+ "notes": "relight-qwen-edit-2509 with a cut-out in front: core RemoveBackground (BiRefNet) masks the product, Image Composite Masked puts it on a white backdrop the size of the photo, then Qwen-Image-Edit 2509 + Lightning (4 steps, cfg 1) + dx8152 White_to_Scene LoRA (trigger \"白底图转场景,\" = \"white background to scene\", prefixed by node 1002) places and relights it in the scene the prompt describes. The open route of the Product shot app (Bria Product Shot / Product Photography on the cloud)."}]}diff --git a/workflows/comfyui/product-shot-qwen-edit-2509.json b/workflows/comfyui/product-shot-qwen-edit-2509.jsonnew file mode 100644index 00000000..4b6d0b4c--- /dev/null+++ b/workflows/comfyui/product-shot-qwen-edit-2509.json@@ -0,0 +1,357 @@+{+ "20": {+ "class_type": "GetImageSize",+ "inputs": {+ "image": [+ "78",+ 0+ ]+ },+ "_meta": {+ "title": "Photo size"+ }+ },+ "21": {+ "class_type": "EmptyImage",+ "inputs": {+ "width": [+ "20",+ 0+ ],+ "height": [+ "20",+ 1+ ],+ "batch_size": 1,+ "color": 16777215+ },+ "_meta": {+ "title": "White backdrop"+ }+ },+ "22": {+ "class_type": "ImageCompositeMasked",+ "inputs": {+ "destination": [+ "21",+ 0+ ],+ "source": [+ "78",+ 0+ ],+ "x": 0,+ "y": 0,+ "resize_source": false,+ "mask": [+ "19:15",+ 0+ ]+ },+ "_meta": {+ "title": "Product on white"+ }+ },+ "78": {+ "inputs": {+ "image": "image_qwen_image_edit_2509_input_image.png"+ },+ "class_type": "LoadImage",+ "_meta": {+ "title": "Product photo"+ }+ },+ "469": {+ "inputs": {+ "filename_prefix": "fuobe/product-shot-qwen-edit-2509",+ "format": "png",+ "format.bit_depth": "8-bit",+ "format.input_color_space": "sRGB",+ "images": [+ "433:8",+ 0+ ]+ },+ "class_type": "SaveImageAdvanced",+ "_meta": {+ "title": "Save Image (Advanced)"+ }+ },+ "1001": {+ "class_type": "LoraLoaderModelOnly",+ "inputs": {+ "model": [+ "433:89",+ 0+ ],+ "lora_name": "Qwen-Image-Edit-2509-White_to_Scene.safetensors",+ "strength_model": 1+ },+ "_meta": {+ "title": "White_to_Scene LoRA (product on white -> lit into a scene)"+ }+ },+ "1002": {+ "class_type": "StringConcatenate",+ "inputs": {+ "string_a": "白底图转场景,",+ "string_b": "place the product on a marble counter in a bright kitchen, soft morning light",+ "delimiter": ""+ },+ "_meta": {+ "title": "Trigger (\"white background to scene\") + the scene"+ }+ },+ "19:13": {+ "class_type": "RemoveBackground",+ "inputs": {+ "bg_removal_model": [+ "19:14",+ 0+ ],+ "image": [+ "78",+ 0+ ]+ },+ "_meta": {+ "title": "Remove Background"+ }+ },+ "19:14": {+ "class_type": "LoadBackgroundRemovalModel",+ "inputs": {+ "bg_removal_name": "birefnet.safetensors"+ },+ "_meta": {+ "title": "Load Background Removal Model"+ }+ },+ "19:15": {+ "class_type": "InvertMask",+ "inputs": {+ "mask": [+ "19:13",+ 0+ ]+ },+ "_meta": {+ "title": "Product mask"+ }+ },+ "433:3": {+ "inputs": {+ "seed": 362225868152841,+ "steps": [+ "433:436",+ 0+ ],+ "cfg": [+ "433:437",+ 0+ ],+ "sampler_name": "euler",+ "scheduler": "simple",+ "denoise": 1,+ "model": [+ "433:75",+ 0+ ],+ "positive": [+ "433:111",+ 0+ ],+ "negative": [+ "433:110",+ 0+ ],+ "latent_image": [+ "433:88",+ 0+ ]+ },+ "class_type": "KSampler",+ "_meta": {+ "title": "KSampler"+ }+ },+ "433:8": {+ "inputs": {+ "samples": [+ "433:3",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ]+ },+ "class_type": "VAEDecode",+ "_meta": {+ "title": "VAE Decode"+ }+ },+ "433:37": {+ "inputs": {+ "unet_name": "qwen_image_edit_2509_fp8_e4m3fn.safetensors",+ "weight_dtype": "default"+ },+ "class_type": "UNETLoader",+ "_meta": {+ "title": "Load Diffusion Model"+ }+ },+ "433:38": {+ "inputs": {+ "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",+ "type": "qwen_image",+ "device": "default"+ },+ "class_type": "CLIPLoader",+ "_meta": {+ "title": "Load CLIP"+ }+ },+ "433:39": {+ "inputs": {+ "vae_name": "qwen_image_vae.safetensors"+ },+ "class_type": "VAELoader",+ "_meta": {+ "title": "Load VAE"+ }+ },+ "433:66": {+ "inputs": {+ "shift": 3,+ "sampling": "flow",+ "model": [+ "1001",+ 0+ ]+ },+ "class_type": "ModelSamplingAuraFlow",+ "_meta": {+ "title": "ModelSamplingAuraFlow"+ }+ },+ "433:75": {+ "inputs": {+ "strength": 1,+ "pre_cfg": false,+ "model": [+ "433:66",+ 0+ ]+ },+ "class_type": "CFGNorm",+ "_meta": {+ "title": "CFGNorm"+ }+ },+ "433:88": {+ "inputs": {+ "pixels": [+ "433:117",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ]+ },+ "class_type": "VAEEncode",+ "_meta": {+ "title": "VAE Encode"+ }+ },+ "433:89": {+ "inputs": {+ "lora_name": "Qwen-Image-Edit-2509-Lightning-4steps-V1.0-bf16.safetensors",+ "strength_model": 1,+ "model": [+ "433:37",+ 0+ ]+ },+ "class_type": "LoraLoaderModelOnly",+ "_meta": {+ "title": "Load LoRA"+ }+ },+ "433:110": {+ "inputs": {+ "prompt": "",+ "clip": [+ "433:38",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ],+ "image1": [+ "433:117",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "Text Encode Qwen Image Edit Plus"+ }+ },+ "433:111": {+ "inputs": {+ "prompt": [+ "1002",+ 0+ ],+ "clip": [+ "433:38",+ 0+ ],+ "vae": [+ "433:39",+ 0+ ],+ "image1": [+ "433:117",+ 0+ ]+ },+ "class_type": "TextEncodeQwenImageEditPlus",+ "_meta": {+ "title": "Text Encode Qwen Image Edit Plus"+ }+ },+ "433:117": {+ "inputs": {+ "image": [+ "22",+ 0+ ]+ },+ "class_type": "FluxKontextImageScale",+ "_meta": {+ "title": "FluxKontextImageScale"+ }+ },+ "433:436": {+ "inputs": {+ "value": 4+ },+ "class_type": "PrimitiveInt",+ "_meta": {+ "title": "Stpes"+ }+ },+ "433:437": {+ "inputs": {+ "value": 1+ },+ "class_type": "PrimitiveFloat",+ "_meta": {+ "title": "CFG"+ }+ }+}diff --git a/workflows/comfyui/v2a-hunyuan-foley.json b/workflows/comfyui/v2a-hunyuan-foley.jsonnew file mode 100644index 00000000..febd06fa--- /dev/null+++ b/workflows/comfyui/v2a-hunyuan-foley.json@@ -0,0 +1,124 @@+{+ "1": {+ "class_type": "HunyuanModelLoader",+ "inputs": {+ "model_name": "hunyuanvideo_foley_xl_fp8_e4m3fn.safetensors",+ "precision": "bf16",+ "quantization": "auto"+ },+ "_meta": {+ "title": "HunyuanModelLoader"+ }+ },+ "2": {+ "class_type": "HunyuanDependenciesLoader",+ "inputs": {+ "vae_name": "vae_128d_48k_fp16.safetensors",+ "synchformer_name": "synchformer_state_dict_fp16.safetensors"+ },+ "_meta": {+ "title": "HunyuanDependenciesLoader"+ }+ },+ "3": {+ "class_type": "HunyuanFoleySampler",+ "inputs": {+ "hunyuan_model": [+ "1",+ 0+ ],+ "hunyuan_deps": [+ "2",+ 0+ ],+ "image": [+ "5",+ 0+ ],+ "frame_rate": 8,+ "duration": 8,+ "prompt": "footsteps on gravel, a car door closes",+ "negative_prompt": "noisy, harsh",+ "cfg_scale": 4.5,+ "steps": 50,+ "sampler": "euler",+ "batch_size": 1,+ "seed": 0,+ "force_offload": true+ },+ "_meta": {+ "title": "HunyuanFoleySampler (video-synced)"+ }+ },+ "4": {+ "class_type": "SaveAudioMP3",+ "inputs": {+ "audio": [+ "3",+ 0+ ],+ "filename_prefix": "fuobe/v2a-hunyuan-foley",+ "quality": "V0"+ },+ "_meta": {+ "title": "Save the sound track"+ }+ },+ "5": {+ "class_type": "VHS_LoadVideo",+ "inputs": {+ "video": "input.mp4",+ "force_rate": 8,+ "custom_width": 512,+ "custom_height": 0,+ "frame_load_cap": 65,+ "skip_first_frames": 0,+ "select_every_nth": 1+ },+ "_meta": {+ "title": "Frames the foley follows (8 fps, 512 px wide: small in memory)"+ }+ },+ "6": {+ "class_type": "LoadVideo",+ "inputs": {+ "file": "input.mp4"+ },+ "_meta": {+ "title": "Video (its picture is copied, never decoded)"+ }+ },+ "7": {+ "class_type": "ConcatenateVideo",+ "inputs": {+ "videos.video0": [+ "6",+ 0+ ],+ "codec": "auto",+ "complete_audio": [+ "3",+ 0+ ]+ },+ "_meta": {+ "title": "Same picture, the new sound (stream copy)"+ }+ },+ "8": {+ "class_type": "SaveVideo",+ "inputs": {+ "video": [+ "7",+ 0+ ],+ "filename_prefix": "fuobe/v2a-hunyuan-foley",+ "format": "auto",+ "format.codec": "auto",+ "codec": "auto"+ },+ "_meta": {+ "title": "Save video"+ }+ }+}