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.

ComfyUI library: FPS Boost to exact frame rates, upscaling and export in passes, HDR10 and EXR from SDR to HDR

Claudee61475cf4b17
diff --git a/scripts/comfy/build-library.mjs b/scripts/comfy/build-library.mjs
index 2465c6f7..102ff9e7 100644
--- a/scripts/comfy/build-library.mjs
+++ b/scripts/comfy/build-library.mjs
@@ -86,6 +86,8 @@ const NUMERIC_DEFAULT_KEYS = [
// comfyui-oss-4 additions
'maskGrow', 'supersample', 'zoomStart', 'zoomEnd', 'panStartX', 'panStartY', 'panEndX', 'panEndY', 'easeInOut', 'chunkFrames',
'crossfade', 'headroomDb', 'peakNits', 'resolutionLevel', 'fovX', 'decimation', 'numGaussians', 'orbitFrames', 'frameWidth',
+ // round 4 (r4/video-finish)
+ 'every', 'slowdown', 'shortSide',
];
export const BINDING_KEYS = new Set([
'prompt', 'negativePrompt', 'image', 'image2', 'image3', 'image4', 'mask', 'endImage', 'video', 'audio',
@@ -108,6 +110,8 @@ export const BINDING_KEYS = new Set([
'maskPrompt', 'maskGrow', 'skipPass2', 'supersample', 'zoomStart', 'zoomEnd', 'panStartX', 'panStartY', 'panEndX', 'panEndY',
'easeInOut', 'chunkFrames', 'crossfade', 'headroomDb', 'fadeCurve', 'format', 'profile', 'peakNits', 'resolutionLevel', 'fovX',
'decimation', 'cutout', 'numGaussians', 'splatFormat', 'orbitFrames', 'frameWidth',
+ // round 4 (r4/video-finish): FPS Boost to exact targets, chunked upscaling, HDR10 (PQ)
+ 'every', 'slowdown', 'shortSide', 'colorSpace',
]);
const readJson = (p, fallback) => (fs.existsSync(p) ? JSON.parse(fs.readFileSync(p, 'utf8')) : fallback);
diff --git a/scripts/comfy/hand-built/interpolate-rife-fps.json b/scripts/comfy/hand-built/interpolate-rife-fps.json
new file mode 100644
index 00000000..958c5ea5
--- /dev/null
+++ b/scripts/comfy/hand-built/interpolate-rife-fps.json
@@ -0,0 +1,67 @@
+{
+ "1": {
+ "class_type": "LoadVideo",
+ "inputs": { "file": "input.mp4" },
+ "_meta": { "title": "Clip (video)" }
+ },
+ "2": {
+ "class_type": "GetVideoComponents",
+ "inputs": { "video": ["1", 0] },
+ "_meta": { "title": "Frames, sound, fps" }
+ },
+ "3": {
+ "class_type": "ImageFromBatch",
+ "inputs": { "image": ["2", 0], "batch_index": -1, "length": 1 },
+ "_meta": { "title": "Last frame" }
+ },
+ "4": {
+ "class_type": "ImageBatch",
+ "inputs": { "image1": ["2", 0], "image2": ["3", 0] },
+ "_meta": { "title": "Last frame held once more (the in-betweens after it keep the clip's length)" }
+ },
+ "5": {
+ "class_type": "FrameInterpolationModelLoader",
+ "inputs": { "model_name": "rife_v4.26.safetensors" },
+ "_meta": { "title": "Interpolation model (checkpoint: RIFE 4.26 or FILM)" }
+ },
+ "6": {
+ "class_type": "PrimitiveInt",
+ "inputs": { "value": 2 },
+ "_meta": { "title": "m: frames made per source frame (multiplier, 2-16)" }
+ },
+ "7": {
+ "class_type": "FrameInterpolate",
+ "inputs": { "interp_model": ["5", 0], "images": ["4", 0], "multiplier": ["6", 0] },
+ "_meta": { "title": "Interpolate by m" }
+ },
+ "8": {
+ "class_type": "PrimitiveInt",
+ "inputs": { "value": 1 },
+ "_meta": { "title": "n: keep every n-th frame (every)" }
+ },
+ "9": {
+ "class_type": "VHS_SelectEveryNthImage",
+ "inputs": { "images": ["7", 0], "select_every_nth": ["8", 0], "skip_first_images": 0 },
+ "_meta": { "title": "Keep every n-th frame (source fps x m / n = the target)" }
+ },
+ "10": {
+ "class_type": "PrimitiveFloat",
+ "inputs": { "value": 1 },
+ "_meta": { "title": "Slow motion factor (slowdown, 1 = same speed)" }
+ },
+ "11": {
+ "class_type": "ComfyMathExpression",
+ "inputs": { "expression": "a * b / (c * d)", "values.a": ["2", 2], "values.b": ["6", 0], "values.c": ["8", 0], "values.d": ["10", 0] },
+ "_meta": { "title": "Output fps = source fps x m / (n x slowdown)" }
+ },
+ "12": {
+ "class_type": "CreateVideo",
+ "inputs": { "images": ["9", 0], "fps": ["11", 0], "audio": ["2", 1], "bit_depth": "auto", "color_space": "sRGB", "codec": "none" },
+ "_meta": { "title": "Video at the target frame rate (sound dropped by the provider for slow motion)" }
+ },
+ "13": {
+ "class_type": "SaveVideo",
+ "inputs": { "video": ["12", 0], "filename_prefix": "fuobe/interpolate-rife-fps", "format": "auto", "format.codec": "auto", "codec": "auto" },
+ "_meta": { "title": "Save" }
+ }
+}
diff --git a/scripts/comfy/hand-built/upscale-video-esrgan-chunked.json b/scripts/comfy/hand-built/upscale-video-esrgan-chunked.json
new file mode 100644
index 00000000..59a43365
--- /dev/null
+++ b/scripts/comfy/hand-built/upscale-video-esrgan-chunked.json
@@ -0,0 +1,116 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded framesPerBatch frames per pass"
+ }
+ },
+ "2": {
+ "class_type": "VHS_BatchManager",
+ "inputs": {
+ "frames_per_batch": 16
+ },
+ "_meta": {
+ "title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"
+ }
+ },
+ "3": {
+ "class_type": "UpscaleModelLoader",
+ "inputs": {
+ "model_name": "RealESRGAN_x4plus.safetensors"
+ },
+ "_meta": {
+ "title": "Upscale model (upscaleModel)"
+ }
+ },
+ "4": {
+ "class_type": "ImageUpscaleWithModel",
+ "inputs": {
+ "upscale_model": [
+ "3",
+ 0
+ ],
+ "image": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Upscale this pass's frames (tiled)"
+ }
+ },
+ "5": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "4",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 1080,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "To the target size: the shorter edge becomes shortSide px (1080 for 1080p), the shape is kept"
+ }
+ },
+ "6": {
+ "class_type": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "7": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "5",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "6",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/upscale-video-esrgan-chunked",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 17,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Encode as the passes come (the last pass writes the file, with the source's sound)"
+ }
+ }
+}
diff --git a/scripts/comfy/hand-built/upscale-video-seedvr2-chunked.json b/scripts/comfy/hand-built/upscale-video-seedvr2-chunked.json
new file mode 100644
index 00000000..864216ac
--- /dev/null
+++ b/scripts/comfy/hand-built/upscale-video-seedvr2-chunked.json
@@ -0,0 +1,225 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded framesPerBatch frames per pass"
+ }
+ },
+ "2": {
+ "class_type": "VHS_BatchManager",
+ "inputs": {
+ "frames_per_batch": 33
+ },
+ "_meta": {
+ "title": "Meta batch: re-queue every framesPerBatch frames (4n+1: SeedVR2 pads a pass to 4n+1 frames)"
+ }
+ },
+ "3": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "1",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 1080,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "To the target size first: the shorter edge becomes shortSide px"
+ }
+ },
+ "4": {
+ "class_type": "SeedVR2Preprocess",
+ "inputs": {
+ "resized_images": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pad to 4n+1 frames and multiples of 16"
+ }
+ },
+ "5": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "seedvr2_ema_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "SeedVR2 VAE"
+ }
+ },
+ "6": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "seedvr2_3b_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "SeedVR2 3B int8"
+ }
+ },
+ "7": {
+ "class_type": "VAEEncodeTiled",
+ "inputs": {
+ "pixels": [
+ "4",
+ 0
+ ],
+ "vae": [
+ "5",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "Encode this pass"
+ }
+ },
+ "8": {
+ "class_type": "SeedVR2Conditioning",
+ "inputs": {
+ "model": [
+ "6",
+ 0
+ ],
+ "vae_conditioning": [
+ "7",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Condition on the pass"
+ }
+ },
+ "9": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "6",
+ 0
+ ],
+ "positive": [
+ "8",
+ 0
+ ],
+ "negative": [
+ "8",
+ 1
+ ],
+ "latent_image": [
+ "7",
+ 0
+ ],
+ "seed": 959948902156062,
+ "steps": 1,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "One-step restoration"
+ }
+ },
+ "10": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "9",
+ 0
+ ],
+ "vae": [
+ "5",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "Decode"
+ }
+ },
+ "11": {
+ "class_type": "SeedVR2PostProcessing",
+ "inputs": {
+ "images": [
+ "10",
+ 0
+ ],
+ "original_resized_images": [
+ "3",
+ 0
+ ],
+ "color_correction_method": "none"
+ },
+ "_meta": {
+ "title": "Crop the padding back off"
+ }
+ },
+ "12": {
+ "class_type": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "13": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "11",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "12",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/upscale-video-seedvr2-chunked",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 17,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Encode as the passes come (the last pass writes the file, with the source's sound)"
+ }
+ }
+}
diff --git a/scripts/comfy/hand-built/video-export-exr.json b/scripts/comfy/hand-built/video-export-exr.json
index 256ca1b7..d3aae34d 100644
--- a/scripts/comfy/hand-built/video-export-exr.json
+++ b/scripts/comfy/hand-built/video-export-exr.json
@@ -35,5 +35,44 @@
"_meta": {
"title": "OpenEXR frames (scene-linear, half float)"
}
+ },
+ "4": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "2",
+ 0
+ ],
+ "fps": [
+ "2",
+ 2
+ ],
+ "audio": [
+ "2",
+ 1
+ ],
+ "bit_depth": "auto",
+ "color_space": "sRGB",
+ "codec": "h264"
+ },
+ "_meta": {
+ "title": "Preview (H.264, with the clip's sound)"
+ }
+ },
+ "5": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "4",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-export-exr",
+ "format": "mp4",
+ "format.codec": "h264",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save the preview"
+ }
}
}
diff --git a/scripts/comfy/hand-built/video-export-pro-chunked.json b/scripts/comfy/hand-built/video-export-pro-chunked.json
new file mode 100644
index 00000000..b9de8432
--- /dev/null
+++ b/scripts/comfy/hand-built/video-export-pro-chunked.json
@@ -0,0 +1,73 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded 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": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "4": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "1",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "3",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/video-export-pro-chunked",
+ "format": "video/ProRes",
+ "profile": "hq",
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pro codec, encoded as the passes come (format: video/ProRes | video/h265-mp4 | video/ffv1-mkv | video/h264-mp4; profile for ProRes)"
+ }
+ }
+}
diff --git a/scripts/comfy/hand-built/video-sdr-to-hdr-exr.json b/scripts/comfy/hand-built/video-sdr-to-hdr-exr.json
new file mode 100644
index 00000000..eece33c6
--- /dev/null
+++ b/scripts/comfy/hand-built/video-sdr-to-hdr-exr.json
@@ -0,0 +1,92 @@
+{
+ "1": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "input.mp4"
+ },
+ "_meta": {
+ "title": "SDR video (video)"
+ }
+ },
+ "2": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Frames, sound, fps"
+ }
+ },
+ "3": {
+ "class_type": "ImageSDRToHDR",
+ "inputs": {
+ "image": [
+ "2",
+ 0
+ ],
+ "algorithm": "lottes",
+ "algorithm.target_luminance": 650
+ },
+ "_meta": {
+ "title": "Expand to Rec.2020 HLG (strength: target peak nits)"
+ }
+ },
+ "4": {
+ "class_type": "SaveImageAdvanced",
+ "inputs": {
+ "images": [
+ "3",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-sdr-to-hdr-exr",
+ "format": "exr",
+ "format.bit_depth": "16-bit float",
+ "format.input_color_space": "HDR"
+ },
+ "_meta": {
+ "title": "OpenEXR frames: scene-linear Rec.2020, half float (the inverse HLG curve)"
+ }
+ },
+ "5": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "3",
+ 0
+ ],
+ "fps": [
+ "2",
+ 2
+ ],
+ "audio": [
+ "2",
+ 1
+ ],
+ "bit_depth": 10,
+ "color_space": "HDR",
+ "codec": "h264"
+ },
+ "_meta": {
+ "title": "10-bit HLG preview"
+ }
+ },
+ "6": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-sdr-to-hdr-exr",
+ "format": "mp4",
+ "format.codec": "h264",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save the HLG preview"
+ }
+ }
+}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 49119d64..02e44f6f 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -73,6 +73,11 @@
// cutout, numGaussians, splatFormat (TripoSplat: BiRefNet cut-out on/off, number of Gaussians, ply | ksplat | spz)
// orbitFrames (TripoSplat orbit preview length in frames)
// frameWidth (reference brief: width the clip's frames are scaled to, px)
+// Keys added with the round-4 video-finish workflows (FPS Boost, chunked upscaling, HDR formats). * = the provider fills it:
+// every* (FPS Boost: keep every n-th interpolated frame; source fps x multiplier / every = the target)
+// slowdown* (FPS Boost: slow-motion factor, params.slowdown; the output fps is divided by it)
+// shortSide* (chunked upscalers: the output's shorter edge in px, params.resolution: 1080p -> 1080)
+// colorSpace* (SDR to HDR: CreateVideo color space, "HDR" = BT.2020 HLG, "HDR PQ" = BT.2020 PQ (HDR10): params.format)
// Output fields beyond {node, kind}: stem ("voice" | "background"), role ("cues" | "transcript" | "language" |
// "sheet" | "tiles" | "layers" | "first-frame" | "turntable" | "lines" | "frame" | "frames" | "scene" | "depth" | "splat" |
// "brief"). Entry fields: worker "isolated" (needs its own ComfyUI, see README), expand "captions" (the provider writes one
@@ -204,6 +209,9 @@ export const KNOWN_MODELS = {
'dino_v3_vit_h.safetensors': { folder: 'clip_vision', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/clip_vision/dino_v3_vit_h.safetensors' },
'triposplat_vae_decoder_fp16.safetensors': { folder: 'vae', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/vae/triposplat_vae_decoder_fp16.safetensors' },
'triposplat_fp16.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/VAST-AI/TripoSplat/resolve/main/diffusion_models/triposplat_fp16.safetensors' },
+ // round 4 (r4/video-finish): the chunked SeedVR2 graph is hand-built, so its files are named here (same files as the template).
+ 'seedvr2_3b_int8_convrot.safetensors': { folder: 'diffusion_models', url: 'https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_3b_int8_convrot.safetensors' },
+ 'seedvr2_ema_vae_fp16.safetensors': { folder: 'vae', url: 'https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/vae/seedvr2_ema_vae_fp16.safetensors' },
};
const WAN_NEG_EN =
@@ -2723,13 +2731,15 @@ export const SPEC = [
title: 'SDR to HDR: expand to Rec.2020 HLG and save 10-bit H.264 (core ImageSDRToHDR, no model)',
capability: 'sdr-to-hdr',
handBuilt: 'hand-built/video-sdr-to-hdr.json',
- bindings: { video: [b('1', 'file')], peakNits: [b('3', 'algorithm.target_luminance')] },
+ bindings: { video: [b('1', 'file')], peakNits: [b('3', 'algorithm.target_luminance')], colorSpace: [b('4', 'color_space')] },
outputs: [{ node: '5', kind: 'video' }],
+ defaults: { colorSpace: 'HDR' },
vramGb: 0,
license: 'n/a (no model; ComfyUI core)',
notes:
'An algorithmic inverse tone map (Lottes-style curve blended with a log-gain curve), not a learned model: the open stand-in for Topaz\'s SDR to HDR. peakNits = the target peak white (650 by default, 0 = the calibrated rendering). ' +
- 'CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format "hlg" is this graph; PQ would be color_space "HDR PQ" on node 4 (not bound). ' +
+ 'CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format hlg_10bit is this graph as built; pq_10bit binds colorSpace "HDR PQ" ' +
+ '(BT.2020 PQ, HDR10\'s transfer, still H.264 High 10: core ComfyUI has no H.265 encoder); exr -> video-sdr-to-hdr-exr. ' +
'The learned alternative is the LTX-2.5 SDR-To-HDR IC-LoRA (LTX community licence, not built). Decodes the whole clip: RAM grows with the length. ' +
'Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.2-1.5 s): H.264 High 10, yuv420p10le, bt2020nc / bt2020 / arib-std-b67 (HLG), 16 frames, AAC kept.',
},
@@ -2739,11 +2749,12 @@ export const SPEC = [
capability: 'export-video',
handBuilt: 'hand-built/video-export-exr.json',
bindings: { video: [b('1', 'file')] },
- outputs: [{ node: '3', kind: 'image', role: 'frames' }],
+ outputs: [{ node: '5', kind: 'video', role: 'preview' }, { node: '3', kind: 'image', role: 'frames' }],
vramGb: 0,
license: 'n/a (no model; ComfyUI core)',
notes:
'params.format "exr" of the export-video operation. One half-float .exr per frame (role frames, in frame order); input_color_space sRGB applies the inverse sRGB curve, so the files are scene-linear Rec.709. ' +
+ 'Node 5 saves an H.264 preview with the clip\'s sound (role preview, added by r4/video-finish): the result shown in the feed; the provider zips the frames onto it (meta.artifacts.exr). ' +
'The app zips the sequence. No sound. Decodes the whole clip: RAM grows with the length. Storage: /view serves .exr as image/aces, which storage.ts has no extension for, ' +
'so each frame is saved as an image .bin until EXT_BY_TYPE / TYPE_BY_EXT know exr (feature package; the zip is the deliverable anyway). ' +
'Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.06-0.2 s): 16 .exr files (<prefix>_00001.exr ...), HALF B/G/R channels, ZIP compression, linear transfer.',
@@ -2862,4 +2873,96 @@ export const SPEC = [
'startFrame = frames skipped at 24 fps, frameWidth = 384 px wide (about 0.7 GB of frames for 720, inferred). In ComfyUI v0.41 only the Gemma 4 and MiniMax text encoders read a video input ' +
'(the Qwen3.5 encoder ignores it). Same model file as speech-translate-gemma4 (no new download). Whether Gemma 4 E4B takes 30 s of audio in one call is unverified. Validated by /prompt only.',
},
+
+ // ---- round 4 (r4/video-finish): FPS Boost to exact targets, chunked upscaling and export, HDR EXR ------------------
+ {
+ id: 'interpolate-rife-fps',
+ title: 'FPS Boost and slow motion to an exact frame rate: interpolate by m, keep every n-th frame (core FrameInterpolate)',
+ capability: 'interpolate',
+ handBuilt: 'hand-built/interpolate-rife-fps.json',
+ bindings: {
+ video: [b('1', 'file')], checkpoint: [b('5', 'model_name')], multiplier: [b('6', 'value')], every: [b('8', 'value')], slowdown: [b('10', 'value')],
+ },
+ outputs: [{ node: '13', kind: 'video' }],
+ defaults: { checkpoint: 'rife_v4.26.safetensors' },
+ limits: { maxMultiplier: 16 },
+ vramGb: 2,
+ license: 'RIFE 4.26 and FILM weights from Comfy-Org/frame_interpolation (MIT / Apache-2.0); VideoHelperSuite (GPL-3.0 code) for Select Every Nth',
+ notes:
+ 'Higgsfield\'s FPS Boost targets (24 / 30 / 60 / 90 / 120 fps) and slow motion on the open engine. The provider picks m (multiplier, 2-16) and n (every) from the clip\'s own frame rate (its header) so that ' +
+ 'source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a lower target only drops frames, ' +
+ 'and then the provider links FrameInterpolate out). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)), so a clip whose header was unreadable still plays at the right speed. ' +
+ 'The last frame is held once more before interpolating, so the clip keeps its length (N frames become N x m + 1, about one output frame longer than the source) instead of losing a source frame. ' +
+ 'slowdown > 1 stretches the clip (2 = twice as long); the provider then drops the sound link (it would no longer match). checkpoint film_net_fp16.safetensors runs FILM (better on large motion, about 31x slower on CPU). ' +
+ 'Holds the whole interpolated clip in memory (source frames x m before the selection): the provider refuses clips that need more than half the server\'s RAM.',
+ },
+ {
+ id: 'upscale-video-esrgan-chunked',
+ title: 'Video Upscale (Real-ESRGAN 4x) in passes of a few frames: memory stays flat whatever the length (VHS meta-batch)',
+ capability: 'upscale-video',
+ handBuilt: 'hand-built/upscale-video-esrgan-chunked.json',
+ bindings: {
+ video: [b('1', 'video')], framesPerBatch: [b('2', 'frames_per_batch')], upscaleModel: [b('3', 'model_name')], shortSide: [b('5', 'resize_type.shorter_size')],
+ },
+ outputs: [{ node: '7', kind: 'video' }],
+ defaults: { shortSide: 1080 },
+ limits: { maxWidth: 3840, maxHeight: 3840 },
+ vramGb: 4,
+ license: 'Real-ESRGAN weights (BSD-3-Clause); VideoHelperSuite GPL-3.0 code',
+ notes:
+ 'R4-38: upscale-video-esrgan decodes the whole film (about 38 GB of float frames for 30 s at 480p before the 4x model). This one decodes framesPerBatch frames per pass (VHS_BatchManager re-queues the prompt ' +
+ 'until the clip is done, as mixed-media-zimage-frames does), upscales them with the model (tiled), scales them so the shorter edge is shortSide px (params.resolution: 1080p -> 1080, the shape kept) and pipes them ' +
+ 'into one ffmpeg H.264 encode that stays open across passes; the last pass writes the file with the source\'s sound at the source frame rate. The provider follows the passes by their filename prefix. ' +
+ 'framesPerBatch: the provider sizes it from the clip\'s header so a pass holds about 1.5 GB of frames (16 by default). Any spandrel model in models/upscale_models works as upscaleModel (x2 / x4).',
+ },
+ {
+ id: 'upscale-video-seedvr2-chunked',
+ title: 'Video Upscale / Restore (SeedVR2 3B int8) in passes of 4n+1 frames: memory stays flat (VHS meta-batch)',
+ capability: 'upscale-video',
+ handBuilt: 'hand-built/upscale-video-seedvr2-chunked.json',
+ bindings: {
+ video: [b('1', 'video')], framesPerBatch: [b('2', 'frames_per_batch')], shortSide: [b('3', 'resize_type.shorter_size')], seed: [b('9', 'seed')],
+ },
+ outputs: [{ node: '13', kind: 'video' }],
+ defaults: { shortSide: 1080 },
+ limits: { maxWidth: 3840, maxHeight: 3840 },
+ vramGb: 16,
+ license: 'SeedVR2 (Apache-2.0); VideoHelperSuite GPL-3.0 code',
+ notes:
+ 'The native SeedVR2 nodes of upscale-video-seedvr2 (same files, same settings) run on framesPerBatch frames per pass (33 by default; SeedVR2 pads a pass to 4n+1 frames and crops the padding back) and the ' +
+ 'passes are piped into one H.264 encode with the source\'s sound, so a long clip no longer needs the whole film in memory (the template is capped at 20 s). The frames are first scaled so the shorter edge is ' +
+ 'shortSide px. Each pass is restored on its own: there is no temporal context across a pass boundary, so a seam every framesPerBatch frames is possible (not measured: no GPU here). Validated by /prompt only.',
+ },
+ {
+ id: 'video-export-pro-chunked',
+ title: 'Pro codec export in passes (ProRes 422 HQ / 4444, H.265 10-bit, FFV1, H.264): memory stays flat (VHS meta-batch)',
+ capability: 'export-video',
+ handBuilt: 'hand-built/video-export-pro-chunked.json',
+ bindings: { video: [b('1', 'video')], framesPerBatch: [b('2', 'frames_per_batch')], format: [b('4', 'format')], profile: [b('4', 'profile')] },
+ outputs: [{ node: '4', kind: 'video' }],
+ defaults: { format: 'video/ProRes', profile: 'hq' },
+ vramGb: 0,
+ license: 'n/a (no model; VideoHelperSuite GPL-3.0 code and the system ffmpeg\'s prores_ks / libx265 / ffv1 / libx264 encoders)',
+ notes:
+ 'video-export-pro with VHS_LoadVideo decoding framesPerBatch frames per pass (64 by default) into one VHS_VideoCombine encode that stays open across passes, at the source frame rate, with the source\'s sound: ' +
+ 'the export Fuobe\'s Export mode runs (video-export-pro decodes the whole clip). Same params.format mapping (prores_422_hq -> video/ProRes + hq, prores_4444 -> + 4444, h265_10bit -> video/h265-mp4 (yuv420p10le), ' +
+ 'ffv1 -> video/ffv1-mkv, h264 -> video/h264-mp4; exr -> video-export-exr). VHS lists only <prefix>_00001-audio.<ext> when the clip has sound, <prefix>_00001.<ext> otherwise, on the last pass. ' +
+ 'Caveat: VHS\'s ProRes "hq" profile leaves the pixel format to prores_ks, which picks yuv444p10le for the RGB frames, so "ProRes 422 HQ" is the HQ profile (apch) carrying 4:4:4 10-bit samples ' +
+ '(FFmpeg decodes it; a strict 4:2:2 file needs a VHS format with -pix_fmt yuv422p10le, which would be a change to the node pack). The same holds for video-export-pro. ' +
+ 'Ran here (CPU, r4/video-finish, 3 s 320x180 25 fps clip with sound): ProRes apch / yuv444p10le / PCM and H.265 Main 10 yuv420p10le with AAC; on a silent 2 s 24 fps clip FFV1 gbrap16le .mkv, 48 of 48 frames; each ffprobe-checked.',
+ },
+ {
+ id: 'video-sdr-to-hdr-exr',
+ title: 'SDR to HDR as OpenEXR frames (scene-linear Rec.2020, half float) plus a 10-bit HLG preview (core, no model)',
+ capability: 'sdr-to-hdr',
+ handBuilt: 'hand-built/video-sdr-to-hdr-exr.json',
+ bindings: { video: [b('1', 'file')], peakNits: [b('3', 'algorithm.target_luminance')] },
+ outputs: [{ node: '6', kind: 'video', role: 'preview' }, { node: '4', kind: 'image', role: 'frames' }],
+ vramGb: 0,
+ license: 'n/a (no model; ComfyUI core)',
+ notes:
+ 'params.format exr of the sdr-to-hdr operation (Higgsfield\'s "EXR 16-bit: uncompressed frame sequence for compositing"). The same ImageSDRToHDR expansion as video-sdr-to-hdr; SaveImageAdvanced writes each ' +
+ 'frame as a half-float EXR with input_color_space HDR, i.e. the inverse HLG curve: scene-linear light in Rec.2020 primaries, highlights above 1.0 kept. Node 6 saves the 10-bit HLG MP4 with the clip\'s sound as ' +
+ 'the result to watch (role preview); the provider zips the frames (role frames) onto it as meta.artifacts.exr. Decodes the whole clip: RAM grows with the length (the provider refuses what the server can\'t hold).',
+ },
];
diff --git a/scripts/comfy/validation-state.json b/scripts/comfy/validation-state.json
index 042e2067..5e2b32c8 100644
--- a/scripts/comfy/validation-state.json
+++ b/scripts/comfy/validation-state.json
@@ -197,6 +197,12 @@
"error": null,
"at": "2026-10-23T00:12:15.716Z"
},
+ "interpolate-rife-fps": {
+ "sha256": "ae2495e1eacc960f6d6b95beae519e4ba1c8017a3143c835cdd77613a365721e",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-23T01:07:05.668Z"
+ },
"interpolate-rife-vfi": {
"sha256": "bec30ae2655d256ad465f02fb5249b7a6ec08c57cd3d6ca2f5425428f1f6f95c",
"validated": true,
@@ -491,12 +497,24 @@
"error": null,
"at": "2026-10-16T20:57:26.837Z"
},
+ "upscale-video-esrgan-chunked": {
+ "sha256": "23ca663fd29770482d2c018f97f02966f4540e279e87c2ddf44647f345628cc3",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-23T01:07:05.820Z"
+ },
"upscale-video-seedvr2": {
"sha256": "42f7ef1d6ab68d53f96a704037fc443fd207b790562da473c747f9f6e14c34fc",
"validated": true,
"error": null,
"at": "2026-10-16T20:57:26.825Z"
},
+ "upscale-video-seedvr2-chunked": {
+ "sha256": "c24dd08377b79410406355b72b5b11945f0c1e419ab1bd49228ee31e6b4ac3af",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-23T01:07:06.161Z"
+ },
"v2a-hunyuan-foley": {
"sha256": "2b6f39b10c3d7bfdef30257682a207b7b89af5f246c38c5aa782de7b3b496359",
"validated": true,
@@ -600,10 +618,10 @@
"at": "2026-10-23T00:12:20.436Z"
},
"video-export-exr": {
- "sha256": "59de86f898829c9ed60d059d038e3a5b3f5df8fdd675a76579eacaae1526c6a8",
+ "sha256": "76efcb75b5995707dc326254ae73cdc806f12714c7543f70511f74f62fd8ca49",
"validated": true,
"error": null,
- "at": "2026-10-23T00:12:21.270Z"
+ "at": "2026-10-23T01:07:05.398Z"
},
"video-export-pro": {
"sha256": "94b6ad366376bad9348ddd79e137b012bed54184e7d269cb66952cee5c1d6ca4",
@@ -611,6 +629,12 @@
"error": null,
"at": "2026-10-23T00:12:21.253Z"
},
+ "video-export-pro-chunked": {
+ "sha256": "dce6e5904a85f48e12c30aa0750934f017bb09237026bd4698c29da2126ab562",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-23T01:07:06.349Z"
+ },
"video-extend-wan22-fun-vace": {
"sha256": "c6e30d4d5acf5d3d97c59fe02194e4b80fc21278ea0e946547060b80efd70ae0",
"validated": true,
@@ -669,7 +693,13 @@
"sha256": "f51f27af77dd2f61d51553241b15f6b5af14e6c06ff3342b24e810dff3e87f93",
"validated": true,
"error": null,
- "at": "2026-10-23T00:12:21.261Z"
+ "at": "2026-10-23T01:07:05.200Z"
+ },
+ "video-sdr-to-hdr-exr": {
+ "sha256": "76b2183fbe97e482526797aa054dae20fc6ca4ee793c245e6957476dc9fa9572",
+ "validated": true,
+ "error": null,
+ "at": "2026-10-23T01:07:06.513Z"
},
"video-segment-resample": {
"sha256": "957899bf0bd99a4bf9e2407a6149392eccc2ee6d8338088809992025e4d4b45d",
diff --git a/tests/comfy-library-4.test.ts b/tests/comfy-library-4.test.ts
index 0c409dfb..840def84 100644
--- a/tests/comfy-library-4.test.ts
+++ b/tests/comfy-library-4.test.ts
@@ -34,8 +34,9 @@ const ROUND4: Record<string, { capability: string; bindings: string[]; outputs:
"audio-loop-crossfade": { capability: "audio-loop", bindings: ["audio", "fadeCurve", "crossfade", "duration", "headroomDb", "filenamePrefix"], outputs: [["audio"]] },
"audio-join-crossfade": { capability: "audio-join", bindings: ["audio", "audio2", "fadeCurve", "crossfade", "filenamePrefix"], outputs: [["audio"]] },
"video-export-pro": { capability: "export-video", bindings: ["video", "format", "profile", "filenamePrefix"], outputs: [["video"]] },
- "video-sdr-to-hdr": { capability: "sdr-to-hdr", bindings: ["video", "peakNits", "filenamePrefix"], outputs: [["video"]] },
- "video-export-exr": { capability: "export-video", bindings: ["video", "filenamePrefix"], outputs: [["image", "frames"]] },
+ // r4/video-finish: colorSpace picks HLG or PQ (HDR10); the EXR export also saves a preview clip to show in the feed.
+ "video-sdr-to-hdr": { capability: "sdr-to-hdr", bindings: ["video", "peakNits", "colorSpace", "filenamePrefix"], outputs: [["video"]] },
+ "video-export-exr": { capability: "export-video", bindings: ["video", "filenamePrefix"], outputs: [["video", "preview"], ["image", "frames"]] },
"still-to-clip": { capability: "still-motion", bindings: ["image", "width", "height", "duration", "fps", "filenamePrefix"], outputs: [["video"]] },
"video-append-endcard": { capability: "concat", bindings: ["video", "image", "width", "height", "fps", "duration", "filenamePrefix"], outputs: [["video"]] },
"scene-mesh-moge": { capability: "scene-3d", bindings: ["image", "checkpoint", "resolutionLevel", "fovX", "decimation", "filenamePrefix"], outputs: [["model3d", "scene"], ["image", "depth"]] },
@@ -53,7 +54,7 @@ const ROUND4: Record<string, { capability: string; bindings: string[]; outputs:
/** Loaders whose input is an upload: every one must be a binding, or the graph points at a researcher's file. */
const MEDIA: Record<string, string> = { LoadImage: "image", LoadImageMask: "image", LoadVideo: "file", VHS_LoadVideo: "video", LoadAudio: "audio", VHS_LoadAudioUpload: "audio" };
const ROLES: NonNullable<ManifestOutput["role"]>[] = [
- "cues", "transcript", "language", "layers", "sheet", "tiles", "first-frame", "turntable", "lines", "frame", "frames", "scene", "depth", "splat", "brief",
+ "cues", "transcript", "language", "layers", "sheet", "tiles", "first-frame", "turntable", "lines", "frame", "frames", "scene", "depth", "splat", "brief", "preview",
];
describe("round-4 ComfyUI workflows", () => {
diff --git a/workflows/comfyui/interpolate-rife-fps.json b/workflows/comfyui/interpolate-rife-fps.json
new file mode 100644
index 00000000..062d1d39
--- /dev/null
+++ b/workflows/comfyui/interpolate-rife-fps.json
@@ -0,0 +1,190 @@
+{
+ "1": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "input.mp4"
+ },
+ "_meta": {
+ "title": "Clip (video)"
+ }
+ },
+ "2": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Frames, sound, fps"
+ }
+ },
+ "3": {
+ "class_type": "ImageFromBatch",
+ "inputs": {
+ "image": [
+ "2",
+ 0
+ ],
+ "batch_index": -1,
+ "length": 1
+ },
+ "_meta": {
+ "title": "Last frame"
+ }
+ },
+ "4": {
+ "class_type": "ImageBatch",
+ "inputs": {
+ "image1": [
+ "2",
+ 0
+ ],
+ "image2": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Last frame held once more (the in-betweens after it keep the clip's length)"
+ }
+ },
+ "5": {
+ "class_type": "FrameInterpolationModelLoader",
+ "inputs": {
+ "model_name": "rife_v4.26.safetensors"
+ },
+ "_meta": {
+ "title": "Interpolation model (checkpoint: RIFE 4.26 or FILM)"
+ }
+ },
+ "6": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 2
+ },
+ "_meta": {
+ "title": "m: frames made per source frame (multiplier, 2-16)"
+ }
+ },
+ "7": {
+ "class_type": "FrameInterpolate",
+ "inputs": {
+ "interp_model": [
+ "5",
+ 0
+ ],
+ "images": [
+ "4",
+ 0
+ ],
+ "multiplier": [
+ "6",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Interpolate by m"
+ }
+ },
+ "8": {
+ "class_type": "PrimitiveInt",
+ "inputs": {
+ "value": 1
+ },
+ "_meta": {
+ "title": "n: keep every n-th frame (every)"
+ }
+ },
+ "9": {
+ "class_type": "VHS_SelectEveryNthImage",
+ "inputs": {
+ "images": [
+ "7",
+ 0
+ ],
+ "select_every_nth": [
+ "8",
+ 0
+ ],
+ "skip_first_images": 0
+ },
+ "_meta": {
+ "title": "Keep every n-th frame (source fps x m / n = the target)"
+ }
+ },
+ "10": {
+ "class_type": "PrimitiveFloat",
+ "inputs": {
+ "value": 1
+ },
+ "_meta": {
+ "title": "Slow motion factor (slowdown, 1 = same speed)"
+ }
+ },
+ "11": {
+ "class_type": "ComfyMathExpression",
+ "inputs": {
+ "expression": "a * b / (c * d)",
+ "values.a": [
+ "2",
+ 2
+ ],
+ "values.b": [
+ "6",
+ 0
+ ],
+ "values.c": [
+ "8",
+ 0
+ ],
+ "values.d": [
+ "10",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Output fps = source fps x m / (n x slowdown)"
+ }
+ },
+ "12": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "9",
+ 0
+ ],
+ "fps": [
+ "11",
+ 0
+ ],
+ "audio": [
+ "2",
+ 1
+ ],
+ "bit_depth": "auto",
+ "color_space": "sRGB",
+ "codec": "none"
+ },
+ "_meta": {
+ "title": "Video at the target frame rate (sound dropped by the provider for slow motion)"
+ }
+ },
+ "13": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "12",
+ 0
+ ],
+ "filename_prefix": "fuobe/interpolate-rife-fps",
+ "format": "auto",
+ "format.codec": "auto",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save"
+ }
+ }
+}
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 56b441d5..ceb46fc9 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -1,6 +1,6 @@
{
"version": 1,
- "generatedAt": "2026-10-23T00:20:02.191Z",
+ "generatedAt": "2026-10-23T18:04:41.151Z",
"comfyuiCommit": "fc04da91b2ab12f99e4716371a7e4f98ac982597",
"comfyuiVersion": "0.41.0",
"workflowTemplatesVersion": "0.11.86",
@@ -12759,6 +12759,12 @@
"input": "algorithm.target_luminance"
}
],
+ "colorSpace": [
+ {
+ "node": "4",
+ "input": "color_space"
+ }
+ ],
"filenamePrefix": [
{
"node": "5",
@@ -12773,7 +12779,8 @@
}
],
"defaults": {
- "peakNits": 650
+ "peakNits": 650,
+ "colorSpace": "HDR"
},
"limits": {},
"models": [],
@@ -12781,7 +12788,7 @@
"vramGb": 0,
"license": "n/a (no model; ComfyUI core)",
"validated": true,
- "notes": "An algorithmic inverse tone map (Lottes-style curve blended with a log-gain curve), not a learned model: the open stand-in for Topaz's SDR to HDR. peakNits = the target peak white (650 by default, 0 = the calibrated rendering). CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format \"hlg\" is this graph; PQ would be color_space \"HDR PQ\" on node 4 (not bound). The learned alternative is the LTX-2.5 SDR-To-HDR IC-LoRA (LTX community licence, not built). Decodes the whole clip: RAM grows with the length. Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.2-1.5 s): H.264 High 10, yuv420p10le, bt2020nc / bt2020 / arib-std-b67 (HLG), 16 frames, AAC kept."
+ "notes": "An algorithmic inverse tone map (Lottes-style curve blended with a log-gain curve), not a learned model: the open stand-in for Topaz's SDR to HDR. peakNits = the target peak white (650 by default, 0 = the calibrated rendering). CreateVideo writes BT.2020 HLG at 10 bits (color_space HDR) and SaveVideo an H.264 High 10 MP4; the sound is kept. params.format hlg_10bit is this graph as built; pq_10bit binds colorSpace \"HDR PQ\" (BT.2020 PQ, HDR10's transfer, still H.264 High 10: core ComfyUI has no H.265 encoder); exr -> video-sdr-to-hdr-exr. The learned alternative is the LTX-2.5 SDR-To-HDR IC-LoRA (LTX community licence, not built). Decodes the whole clip: RAM grows with the length. Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.2-1.5 s): H.264 High 10, yuv420p10le, bt2020nc / bt2020 / arib-std-b67 (HLG), 16 frames, AAC kept."
},
{
"id": "video-export-exr",
@@ -12797,6 +12804,10 @@
}
],
"filenamePrefix": [
+ {
+ "node": "5",
+ "input": "filename_prefix"
+ },
{
"node": "3",
"input": "filename_prefix"
@@ -12804,6 +12815,11 @@
]
},
"outputs": [
+ {
+ "node": "5",
+ "kind": "video",
+ "role": "preview"
+ },
{
"node": "3",
"kind": "image",
@@ -12817,7 +12833,7 @@
"vramGb": 0,
"license": "n/a (no model; ComfyUI core)",
"validated": true,
- "notes": "params.format \"exr\" of the export-video operation. One half-float .exr per frame (role frames, in frame order); input_color_space sRGB applies the inverse sRGB curve, so the files are scene-linear Rec.709. The app zips the sequence. No sound. Decodes the whole clip: RAM grows with the length. Storage: /view serves .exr as image/aces, which storage.ts has no extension for, so each frame is saved as an image .bin until EXT_BY_TYPE / TYPE_BY_EXT know exr (feature package; the zip is the deliverable anyway). Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.06-0.2 s): 16 .exr files (<prefix>_00001.exr ...), HALF B/G/R channels, ZIP compression, linear transfer."
+ "notes": "params.format \"exr\" of the export-video operation. One half-float .exr per frame (role frames, in frame order); input_color_space sRGB applies the inverse sRGB curve, so the files are scene-linear Rec.709. Node 5 saves an H.264 preview with the clip's sound (role preview, added by r4/video-finish): the result shown in the feed; the provider zips the frames onto it (meta.artifacts.exr). The app zips the sequence. No sound. Decodes the whole clip: RAM grows with the length. Storage: /view serves .exr as image/aces, which storage.ts has no extension for, so each frame is saved as an image .bin until EXT_BY_TYPE / TYPE_BY_EXT know exr (feature package; the zip is the deliverable anyway). Ran here (CPU, two sessions, 1 s 64x64 16 fps clip, 0.06-0.2 s): 16 .exr files (<prefix>_00001.exr ...), HALF B/G/R channels, ZIP compression, linear transfer."
},
{
"id": "still-to-clip",
@@ -13275,6 +13291,347 @@
"license": "Apache-2.0 (Gemma 4); VideoHelperSuite loader GPL-3.0 code",
"validated": true,
"notes": "Content Factory \"Use as reference\": the clip's frames AND sound go into one TextGenerate call and come back as a JSON style brief (role brief): format, hook, pacing, shots, visual_style, animation_style, narration, music, captions, topic_ideas (5). The instruction forbids copying the reference's people, logos or exact words. Strip ``` fences before parsing. VHS_LoadVideo resamples to 24 fps (fixed: TextGenerate assumes 24 fps and keeps every 24th frame, i.e. 1 fps, each capped at 70 soft tokens); frames = the frame cap at 24 fps (720 = the first 30 s), startFrame = frames skipped at 24 fps, frameWidth = 384 px wide (about 0.7 GB of frames for 720, inferred). In ComfyUI v0.41 only the Gemma 4 and MiniMax text encoders read a video input (the Qwen3.5 encoder ignores it). Same model file as speech-translate-gemma4 (no new download). Whether Gemma 4 E4B takes 30 s of audio in one call is unverified. Validated by /prompt only."
+ },
+ {
+ "id": "interpolate-rife-fps",
+ "title": "FPS Boost and slow motion to an exact frame rate: interpolate by m, keep every n-th frame (core FrameInterpolate)",
+ "capability": "interpolate",
+ "file": "interpolate-rife-fps.json",
+ "source": "hand-built (scripts/comfy/hand-built/interpolate-rife-fps.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "file"
+ }
+ ],
+ "checkpoint": [
+ {
+ "node": "5",
+ "input": "model_name"
+ }
+ ],
+ "multiplier": [
+ {
+ "node": "6",
+ "input": "value"
+ }
+ ],
+ "every": [
+ {
+ "node": "8",
+ "input": "value"
+ }
+ ],
+ "slowdown": [
+ {
+ "node": "10",
+ "input": "value"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "13",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "13",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "multiplier": 2,
+ "every": 1,
+ "slowdown": 1,
+ "checkpoint": "rife_v4.26.safetensors"
+ },
+ "limits": {
+ "maxMultiplier": 16
+ },
+ "models": [
+ {
+ "file": "rife_v4.26.safetensors",
+ "folder": "frame_interpolation",
+ "url": "https://huggingface.co/Comfy-Org/frame_interpolation/resolve/main/frame_interpolation/rife_v4.26.safetensors",
+ "sizeGb": 0.02
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-VideoHelperSuite",
+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
+ }
+ ],
+ "vramGb": 2,
+ "license": "RIFE 4.26 and FILM weights from Comfy-Org/frame_interpolation (MIT / Apache-2.0); VideoHelperSuite (GPL-3.0 code) for Select Every Nth",
+ "validated": true,
+ "notes": "Higgsfield's FPS Boost targets (24 / 30 / 60 / 90 / 120 fps) and slow motion on the open engine. The provider picks m (multiplier, 2-16) and n (every) from the clip's own frame rate (its header) so that source fps x m / n = target x slowdown (src/lib/av/fps.ts: 24 -> 30 m5 n4, 24 -> 60 m5 n2, 24 -> 90 m15 n4, 24 -> 120 m5, 30 -> 60 m2, 60 -> 90 m3 n2, 60 -> 120 m2; a lower target only drops frames, and then the provider links FrameInterpolate out). The output fps is computed in the graph from the decoded frame rate (source fps x m / (n x slowdown)), so a clip whose header was unreadable still plays at the right speed. The last frame is held once more before interpolating, so the clip keeps its length (N frames become N x m + 1, about one output frame longer than the source) instead of losing a source frame. slowdown > 1 stretches the clip (2 = twice as long); the provider then drops the sound link (it would no longer match). checkpoint film_net_fp16.safetensors runs FILM (better on large motion, about 31x slower on CPU). Holds the whole interpolated clip in memory (source frames x m before the selection): the provider refuses clips that need more than half the server's RAM."
+ },
+ {
+ "id": "upscale-video-esrgan-chunked",
+ "title": "Video Upscale (Real-ESRGAN 4x) in passes of a few frames: memory stays flat whatever the length (VHS meta-batch)",
+ "capability": "upscale-video",
+ "file": "upscale-video-esrgan-chunked.json",
+ "source": "hand-built (scripts/comfy/hand-built/upscale-video-esrgan-chunked.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "video"
+ }
+ ],
+ "framesPerBatch": [
+ {
+ "node": "2",
+ "input": "frames_per_batch"
+ }
+ ],
+ "upscaleModel": [
+ {
+ "node": "3",
+ "input": "model_name"
+ }
+ ],
+ "shortSide": [
+ {
+ "node": "5",
+ "input": "resize_type.shorter_size"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "7",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "7",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "framesPerBatch": 16,
+ "shortSide": 1080
+ },
+ "limits": {
+ "maxWidth": 3840,
+ "maxHeight": 3840
+ },
+ "models": [
+ {
+ "file": "RealESRGAN_x4plus.safetensors",
+ "folder": "upscale_models",
+ "url": "https://huggingface.co/Comfy-Org/Real-ESRGAN_repackaged/resolve/main/RealESRGAN_x4plus.safetensors",
+ "sizeGb": 0.07
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-VideoHelperSuite",
+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
+ }
+ ],
+ "vramGb": 4,
+ "license": "Real-ESRGAN weights (BSD-3-Clause); VideoHelperSuite GPL-3.0 code",
+ "validated": true,
+ "notes": "R4-38: upscale-video-esrgan decodes the whole film (about 38 GB of float frames for 30 s at 480p before the 4x model). This one decodes framesPerBatch frames per pass (VHS_BatchManager re-queues the prompt until the clip is done, as mixed-media-zimage-frames does), upscales them with the model (tiled), scales them so the shorter edge is shortSide px (params.resolution: 1080p -> 1080, the shape kept) and pipes them into one ffmpeg H.264 encode that stays open across passes; the last pass writes the file with the source's sound at the source frame rate. The provider follows the passes by their filename prefix. framesPerBatch: the provider sizes it from the clip's header so a pass holds about 1.5 GB of frames (16 by default). Any spandrel model in models/upscale_models works as upscaleModel (x2 / x4)."
+ },
+ {
+ "id": "upscale-video-seedvr2-chunked",
+ "title": "Video Upscale / Restore (SeedVR2 3B int8) in passes of 4n+1 frames: memory stays flat (VHS meta-batch)",
+ "capability": "upscale-video",
+ "file": "upscale-video-seedvr2-chunked.json",
+ "source": "hand-built (scripts/comfy/hand-built/upscale-video-seedvr2-chunked.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "video"
+ }
+ ],
+ "framesPerBatch": [
+ {
+ "node": "2",
+ "input": "frames_per_batch"
+ }
+ ],
+ "shortSide": [
+ {
+ "node": "3",
+ "input": "resize_type.shorter_size"
+ }
+ ],
+ "seed": [
+ {
+ "node": "9",
+ "input": "seed"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "13",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "13",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "framesPerBatch": 33,
+ "shortSide": 1080
+ },
+ "limits": {
+ "maxWidth": 3840,
+ "maxHeight": 3840
+ },
+ "models": [
+ {
+ "file": "seedvr2_ema_vae_fp16.safetensors",
+ "folder": "vae",
+ "url": "https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/vae/seedvr2_ema_vae_fp16.safetensors",
+ "sizeGb": 0.5
+ },
+ {
+ "file": "seedvr2_3b_int8_convrot.safetensors",
+ "folder": "diffusion_models",
+ "url": "https://huggingface.co/Comfy-Org/SeedVR2/resolve/main/diffusion_models/seedvr2_3b_int8_convrot.safetensors",
+ "sizeGb": 3.46
+ }
+ ],
+ "customNodes": [
+ {
+ "name": "ComfyUI-VideoHelperSuite",
+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
+ }
+ ],
+ "vramGb": 16,
+ "license": "SeedVR2 (Apache-2.0); VideoHelperSuite GPL-3.0 code",
+ "validated": true,
+ "notes": "The native SeedVR2 nodes of upscale-video-seedvr2 (same files, same settings) run on framesPerBatch frames per pass (33 by default; SeedVR2 pads a pass to 4n+1 frames and crops the padding back) and the passes are piped into one H.264 encode with the source's sound, so a long clip no longer needs the whole film in memory (the template is capped at 20 s). The frames are first scaled so the shorter edge is shortSide px. Each pass is restored on its own: there is no temporal context across a pass boundary, so a seam every framesPerBatch frames is possible (not measured: no GPU here). Validated by /prompt only."
+ },
+ {
+ "id": "video-export-pro-chunked",
+ "title": "Pro codec export in passes (ProRes 422 HQ / 4444, H.265 10-bit, FFV1, H.264): memory stays flat (VHS meta-batch)",
+ "capability": "export-video",
+ "file": "video-export-pro-chunked.json",
+ "source": "hand-built (scripts/comfy/hand-built/video-export-pro-chunked.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "video"
+ }
+ ],
+ "framesPerBatch": [
+ {
+ "node": "2",
+ "input": "frames_per_batch"
+ }
+ ],
+ "format": [
+ {
+ "node": "4",
+ "input": "format"
+ }
+ ],
+ "profile": [
+ {
+ "node": "4",
+ "input": "profile"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "4",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "4",
+ "kind": "video"
+ }
+ ],
+ "defaults": {
+ "framesPerBatch": 64,
+ "format": "video/ProRes",
+ "profile": "hq"
+ },
+ "limits": {},
+ "models": [],
+ "customNodes": [
+ {
+ "name": "ComfyUI-VideoHelperSuite",
+ "repo": "https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite"
+ }
+ ],
+ "vramGb": 0,
+ "license": "n/a (no model; VideoHelperSuite GPL-3.0 code and the system ffmpeg's prores_ks / libx265 / ffv1 / libx264 encoders)",
+ "validated": true,
+ "notes": "video-export-pro with VHS_LoadVideo decoding framesPerBatch frames per pass (64 by default) into one VHS_VideoCombine encode that stays open across passes, at the source frame rate, with the source's sound: the export Fuobe's Export mode runs (video-export-pro decodes the whole clip). Same params.format mapping (prores_422_hq -> video/ProRes + hq, prores_4444 -> + 4444, h265_10bit -> video/h265-mp4 (yuv420p10le), ffv1 -> video/ffv1-mkv, h264 -> video/h264-mp4; exr -> video-export-exr). VHS lists only <prefix>_00001-audio.<ext> when the clip has sound, <prefix>_00001.<ext> otherwise, on the last pass. Caveat: VHS's ProRes \"hq\" profile leaves the pixel format to prores_ks, which picks yuv444p10le for the RGB frames, so \"ProRes 422 HQ\" is the HQ profile (apch) carrying 4:4:4 10-bit samples (FFmpeg decodes it; a strict 4:2:2 file needs a VHS format with -pix_fmt yuv422p10le, which would be a change to the node pack). The same holds for video-export-pro. Ran here (CPU, r4/video-finish, 3 s 320x180 25 fps clip with sound): ProRes apch / yuv444p10le / PCM and H.265 Main 10 yuv420p10le with AAC; on a silent 2 s 24 fps clip FFV1 gbrap16le .mkv, 48 of 48 frames; each ffprobe-checked."
+ },
+ {
+ "id": "video-sdr-to-hdr-exr",
+ "title": "SDR to HDR as OpenEXR frames (scene-linear Rec.2020, half float) plus a 10-bit HLG preview (core, no model)",
+ "capability": "sdr-to-hdr",
+ "file": "video-sdr-to-hdr-exr.json",
+ "source": "hand-built (scripts/comfy/hand-built/video-sdr-to-hdr-exr.json)",
+ "bindings": {
+ "video": [
+ {
+ "node": "1",
+ "input": "file"
+ }
+ ],
+ "peakNits": [
+ {
+ "node": "3",
+ "input": "algorithm.target_luminance"
+ }
+ ],
+ "filenamePrefix": [
+ {
+ "node": "6",
+ "input": "filename_prefix"
+ },
+ {
+ "node": "4",
+ "input": "filename_prefix"
+ }
+ ]
+ },
+ "outputs": [
+ {
+ "node": "6",
+ "kind": "video",
+ "role": "preview"
+ },
+ {
+ "node": "4",
+ "kind": "image",
+ "role": "frames"
+ }
+ ],
+ "defaults": {
+ "peakNits": 650
+ },
+ "limits": {},
+ "models": [],
+ "customNodes": [],
+ "vramGb": 0,
+ "license": "n/a (no model; ComfyUI core)",
+ "validated": true,
+ "notes": "params.format exr of the sdr-to-hdr operation (Higgsfield's \"EXR 16-bit: uncompressed frame sequence for compositing\"). The same ImageSDRToHDR expansion as video-sdr-to-hdr; SaveImageAdvanced writes each frame as a half-float EXR with input_color_space HDR, i.e. the inverse HLG curve: scene-linear light in Rec.2020 primaries, highlights above 1.0 kept. Node 6 saves the 10-bit HLG MP4 with the clip's sound as the result to watch (role preview); the provider zips the frames (role frames) onto it as meta.artifacts.exr. Decodes the whole clip: RAM grows with the length (the provider refuses what the server can't hold)."
}
]
}
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index 2821f9f8..0aaf20f1 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -18421,6 +18421,61 @@
"has_intermediate_output": false,
"search_aliases": []
},
+ "VHS_SelectEveryNthImage": {
+ "input": {
+ "required": {
+ "images": [
+ "IMAGE"
+ ],
+ "select_every_nth": [
+ "INT",
+ {
+ "default": 1,
+ "min": 1,
+ "max": 9007199254740991,
+ "step": 1
+ }
+ ],
+ "skip_first_images": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 9007199254740991,
+ "step": 1
+ }
+ ]
+ }
+ },
+ "input_order": {
+ "required": [
+ "images",
+ "select_every_nth",
+ "skip_first_images"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "INT"
+ ],
+ "output_is_list": [
+ false,
+ false
+ ],
+ "output_name": [
+ "IMAGE",
+ "count"
+ ],
+ "name": "VHS_SelectEveryNthImage",
+ "display_name": "Select Every Nth Image πŸŽ₯πŸ…₯πŸ…—πŸ…’",
+ "description": "Select Every Nth Image πŸŽ₯πŸ…₯πŸ…—πŸ…’<div style=\"font-size: 0.8em\"><div id=VHS_shortdesc>Keep only 1 image for every interval</div></div><div style=\"font-size: 0.8em\"><div vhs_title=\"Inputs\" style=\"display: flex; font-size: 0.8em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">Inputs: <div vhs_title=\"images\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">images: The input image</div></div></div></div><div vhs_title=\"Outputs\" style=\"display: flex; font-size: 0.8em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">Outputs: <div vhs_title=\"IMAGE\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">IMAGE: The output images</div></div><div vhs_title=\"count\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">count: The number of images in the input</div></div></div></div><div vhs_title=\"Widgets\" style=\"display: flex; font-size: 0.8em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">Widgets: <div vhs_title=\"select_every_nth\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">select_every_nth: The interval from which one frame is kept. 1 means no frames are skipped.</div></div><div vhs_title=\"skip_first_images\" style=\"display: flex; font-size: 1em\" class=\"VHS_collapse\"><div style=\"color: #AAA; height: 1.5em;\">[<span style=\"font-family: monospace\">-</span>]</div><div style=\"width: 100%\">skip_first_images: A number of frames which that is skipped from the start. This applies before select_every_nth. As a result, multiple copies of the node can each have a different skip_first_frames to divide the image into groups</div></div></div></div></div>",
+ "python_module": "custom_nodes.ComfyUI-VideoHelperSuite",
+ "category": "Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’/image",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"VHS_VideoCombine": {
"input": {
"required": {
diff --git a/workflows/comfyui/upscale-video-esrgan-chunked.json b/workflows/comfyui/upscale-video-esrgan-chunked.json
new file mode 100644
index 00000000..59a43365
--- /dev/null
+++ b/workflows/comfyui/upscale-video-esrgan-chunked.json
@@ -0,0 +1,116 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded framesPerBatch frames per pass"
+ }
+ },
+ "2": {
+ "class_type": "VHS_BatchManager",
+ "inputs": {
+ "frames_per_batch": 16
+ },
+ "_meta": {
+ "title": "Meta batch: re-queue every framesPerBatch frames (memory stays flat)"
+ }
+ },
+ "3": {
+ "class_type": "UpscaleModelLoader",
+ "inputs": {
+ "model_name": "RealESRGAN_x4plus.safetensors"
+ },
+ "_meta": {
+ "title": "Upscale model (upscaleModel)"
+ }
+ },
+ "4": {
+ "class_type": "ImageUpscaleWithModel",
+ "inputs": {
+ "upscale_model": [
+ "3",
+ 0
+ ],
+ "image": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Upscale this pass's frames (tiled)"
+ }
+ },
+ "5": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "4",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 1080,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "To the target size: the shorter edge becomes shortSide px (1080 for 1080p), the shape is kept"
+ }
+ },
+ "6": {
+ "class_type": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "7": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "5",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "6",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/upscale-video-esrgan-chunked",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 17,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Encode as the passes come (the last pass writes the file, with the source's sound)"
+ }
+ }
+}
diff --git a/workflows/comfyui/upscale-video-seedvr2-chunked.json b/workflows/comfyui/upscale-video-seedvr2-chunked.json
new file mode 100644
index 00000000..864216ac
--- /dev/null
+++ b/workflows/comfyui/upscale-video-seedvr2-chunked.json
@@ -0,0 +1,225 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded framesPerBatch frames per pass"
+ }
+ },
+ "2": {
+ "class_type": "VHS_BatchManager",
+ "inputs": {
+ "frames_per_batch": 33
+ },
+ "_meta": {
+ "title": "Meta batch: re-queue every framesPerBatch frames (4n+1: SeedVR2 pads a pass to 4n+1 frames)"
+ }
+ },
+ "3": {
+ "class_type": "ResizeImageMaskNode",
+ "inputs": {
+ "input": [
+ "1",
+ 0
+ ],
+ "resize_type": "scale shorter dimension",
+ "resize_type.shorter_size": 1080,
+ "scale_method": "lanczos"
+ },
+ "_meta": {
+ "title": "To the target size first: the shorter edge becomes shortSide px"
+ }
+ },
+ "4": {
+ "class_type": "SeedVR2Preprocess",
+ "inputs": {
+ "resized_images": [
+ "3",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pad to 4n+1 frames and multiples of 16"
+ }
+ },
+ "5": {
+ "class_type": "VAELoader",
+ "inputs": {
+ "vae_name": "seedvr2_ema_vae_fp16.safetensors"
+ },
+ "_meta": {
+ "title": "SeedVR2 VAE"
+ }
+ },
+ "6": {
+ "class_type": "UNETLoader",
+ "inputs": {
+ "unet_name": "seedvr2_3b_int8_convrot.safetensors",
+ "weight_dtype": "default"
+ },
+ "_meta": {
+ "title": "SeedVR2 3B int8"
+ }
+ },
+ "7": {
+ "class_type": "VAEEncodeTiled",
+ "inputs": {
+ "pixels": [
+ "4",
+ 0
+ ],
+ "vae": [
+ "5",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "Encode this pass"
+ }
+ },
+ "8": {
+ "class_type": "SeedVR2Conditioning",
+ "inputs": {
+ "model": [
+ "6",
+ 0
+ ],
+ "vae_conditioning": [
+ "7",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Condition on the pass"
+ }
+ },
+ "9": {
+ "class_type": "KSampler",
+ "inputs": {
+ "model": [
+ "6",
+ 0
+ ],
+ "positive": [
+ "8",
+ 0
+ ],
+ "negative": [
+ "8",
+ 1
+ ],
+ "latent_image": [
+ "7",
+ 0
+ ],
+ "seed": 959948902156062,
+ "steps": 1,
+ "cfg": 1,
+ "sampler_name": "euler",
+ "scheduler": "simple",
+ "denoise": 1
+ },
+ "_meta": {
+ "title": "One-step restoration"
+ }
+ },
+ "10": {
+ "class_type": "VAEDecodeTiled",
+ "inputs": {
+ "samples": [
+ "9",
+ 0
+ ],
+ "vae": [
+ "5",
+ 0
+ ],
+ "tile_size": 512,
+ "overlap": 128,
+ "temporal_size": 64,
+ "temporal_overlap": 8
+ },
+ "_meta": {
+ "title": "Decode"
+ }
+ },
+ "11": {
+ "class_type": "SeedVR2PostProcessing",
+ "inputs": {
+ "images": [
+ "10",
+ 0
+ ],
+ "original_resized_images": [
+ "3",
+ 0
+ ],
+ "color_correction_method": "none"
+ },
+ "_meta": {
+ "title": "Crop the padding back off"
+ }
+ },
+ "12": {
+ "class_type": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "13": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "11",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "12",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/upscale-video-seedvr2-chunked",
+ "format": "video/h264-mp4",
+ "pix_fmt": "yuv420p",
+ "crf": 17,
+ "save_metadata": true,
+ "trim_to_audio": false,
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Encode as the passes come (the last pass writes the file, with the source's sound)"
+ }
+ }
+}
diff --git a/workflows/comfyui/video-export-exr.json b/workflows/comfyui/video-export-exr.json
index 256ca1b7..d3aae34d 100644
--- a/workflows/comfyui/video-export-exr.json
+++ b/workflows/comfyui/video-export-exr.json
@@ -35,5 +35,44 @@
"_meta": {
"title": "OpenEXR frames (scene-linear, half float)"
}
+ },
+ "4": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "2",
+ 0
+ ],
+ "fps": [
+ "2",
+ 2
+ ],
+ "audio": [
+ "2",
+ 1
+ ],
+ "bit_depth": "auto",
+ "color_space": "sRGB",
+ "codec": "h264"
+ },
+ "_meta": {
+ "title": "Preview (H.264, with the clip's sound)"
+ }
+ },
+ "5": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "4",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-export-exr",
+ "format": "mp4",
+ "format.codec": "h264",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save the preview"
+ }
}
}
diff --git a/workflows/comfyui/video-export-pro-chunked.json b/workflows/comfyui/video-export-pro-chunked.json
new file mode 100644
index 00000000..b9de8432
--- /dev/null
+++ b/workflows/comfyui/video-export-pro-chunked.json
@@ -0,0 +1,73 @@
+{
+ "1": {
+ "class_type": "VHS_LoadVideo",
+ "inputs": {
+ "video": "input.mp4",
+ "force_rate": 0,
+ "custom_width": 0,
+ "custom_height": 0,
+ "frame_load_cap": 0,
+ "skip_first_frames": 0,
+ "select_every_nth": 1,
+ "format": "None",
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Clip, decoded 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": "VHS_VideoInfo",
+ "inputs": {
+ "video_info": [
+ "1",
+ 3
+ ]
+ },
+ "_meta": {
+ "title": "Source frame rate"
+ }
+ },
+ "4": {
+ "class_type": "VHS_VideoCombine",
+ "inputs": {
+ "images": [
+ "1",
+ 0
+ ],
+ "audio": [
+ "1",
+ 2
+ ],
+ "frame_rate": [
+ "3",
+ 5
+ ],
+ "loop_count": 0,
+ "filename_prefix": "fuobe/video-export-pro-chunked",
+ "format": "video/ProRes",
+ "profile": "hq",
+ "pingpong": false,
+ "save_output": true,
+ "meta_batch": [
+ "2",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Pro codec, encoded as the passes come (format: video/ProRes | video/h265-mp4 | video/ffv1-mkv | video/h264-mp4; profile for ProRes)"
+ }
+ }
+}
diff --git a/workflows/comfyui/video-sdr-to-hdr-exr.json b/workflows/comfyui/video-sdr-to-hdr-exr.json
new file mode 100644
index 00000000..eece33c6
--- /dev/null
+++ b/workflows/comfyui/video-sdr-to-hdr-exr.json
@@ -0,0 +1,92 @@
+{
+ "1": {
+ "class_type": "LoadVideo",
+ "inputs": {
+ "file": "input.mp4"
+ },
+ "_meta": {
+ "title": "SDR video (video)"
+ }
+ },
+ "2": {
+ "class_type": "GetVideoComponents",
+ "inputs": {
+ "video": [
+ "1",
+ 0
+ ]
+ },
+ "_meta": {
+ "title": "Frames, sound, fps"
+ }
+ },
+ "3": {
+ "class_type": "ImageSDRToHDR",
+ "inputs": {
+ "image": [
+ "2",
+ 0
+ ],
+ "algorithm": "lottes",
+ "algorithm.target_luminance": 650
+ },
+ "_meta": {
+ "title": "Expand to Rec.2020 HLG (strength: target peak nits)"
+ }
+ },
+ "4": {
+ "class_type": "SaveImageAdvanced",
+ "inputs": {
+ "images": [
+ "3",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-sdr-to-hdr-exr",
+ "format": "exr",
+ "format.bit_depth": "16-bit float",
+ "format.input_color_space": "HDR"
+ },
+ "_meta": {
+ "title": "OpenEXR frames: scene-linear Rec.2020, half float (the inverse HLG curve)"
+ }
+ },
+ "5": {
+ "class_type": "CreateVideo",
+ "inputs": {
+ "images": [
+ "3",
+ 0
+ ],
+ "fps": [
+ "2",
+ 2
+ ],
+ "audio": [
+ "2",
+ 1
+ ],
+ "bit_depth": 10,
+ "color_space": "HDR",
+ "codec": "h264"
+ },
+ "_meta": {
+ "title": "10-bit HLG preview"
+ }
+ },
+ "6": {
+ "class_type": "SaveVideo",
+ "inputs": {
+ "video": [
+ "5",
+ 0
+ ],
+ "filename_prefix": "fuobe/video-sdr-to-hdr-exr",
+ "format": "mp4",
+ "format.codec": "h264",
+ "codec": "auto"
+ },
+ "_meta": {
+ "title": "Save the HLG preview"
+ }
+ }
+}