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.

Fix faces, the clip fit and Body Double's clip read video with ffmpeg, so colours stay as filmed

Adarshee4d24ad9efd
diff --git a/scripts/comfy/hand-built/body-double-clip-instanthmr.json b/scripts/comfy/hand-built/body-double-clip-instanthmr.json
index d6217d17..c94c5760 100644
--- a/scripts/comfy/hand-built/body-double-clip-instanthmr.json
+++ b/scripts/comfy/hand-built/body-double-clip-instanthmr.json
@@ -1,14 +1,13 @@
{
"1": {
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"inputs": {
"video": "input.mp4",
"force_rate": 24,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 360,
- "skip_first_frames": 0,
- "select_every_nth": 1,
+ "start_time": 0,
"format": "None"
},
"_meta": {
diff --git a/scripts/comfy/hand-built/video-fit-clip.json b/scripts/comfy/hand-built/video-fit-clip.json
index 180a0c0f..ae606429 100644
--- a/scripts/comfy/hand-built/video-fit-clip.json
+++ b/scripts/comfy/hand-built/video-fit-clip.json
@@ -1,14 +1,13 @@
{
"1": {
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"inputs": {
"video": "input.mp4",
"force_rate": ["5", 0],
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": ["7", 1],
- "skip_first_frames": ["6", 1],
- "select_every_nth": 1,
+ "start_time": ["8", 0],
"format": "None",
"meta_batch": ["2", 0]
},
@@ -48,11 +47,6 @@
"inputs": { "value": 30 },
"_meta": { "title": "fps" }
},
- "6": {
- "class_type": "ComfyMathExpression",
- "inputs": { "expression": "round(a * b)", "values.a": ["8", 0], "values.b": ["5", 0] },
- "_meta": { "title": "Frames to skip: startTime x fps" }
- },
"7": {
"class_type": "ComfyMathExpression",
"inputs": { "expression": "round(a * b)", "values.a": ["9", 0], "values.b": ["5", 0] },
diff --git a/scripts/comfy/hand-built/video-fix-faces-h3.json b/scripts/comfy/hand-built/video-fix-faces-h3.json
index d5a110cd..cfaf9147 100644
--- a/scripts/comfy/hand-built/video-fix-faces-h3.json
+++ b/scripts/comfy/hand-built/video-fix-faces-h3.json
@@ -6,11 +6,10 @@
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
- "skip_first_frames": 0,
- "select_every_nth": 1,
+ "start_time": 0,
"format": "None"
},
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"_meta": {
"title": "Video to fix"
}
diff --git a/scripts/comfy/library.spec.mjs b/scripts/comfy/library.spec.mjs
index 45ee4e64..019de630 100644
--- a/scripts/comfy/library.spec.mjs
+++ b/scripts/comfy/library.spec.mjs
@@ -5438,8 +5438,8 @@ export const SPEC = [
license: 'n/a (no model; ComfyUI core + VideoHelperSuite GPL-3.0 code)',
notes:
'The Canvas Video concatenator, one job per clip, then video-concat-encoded joins them: every clip comes out at the film\'s size (width x height, scaled to cover and centre-cropped), ' +
- 'at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideo resamples to fps and skips round(startTime x fps) frames, keeping round(duration x fps) ' +
- '(duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = skipped frames / fps, length = kept frames / fps), so picture and sound stay in sync. ' +
+ 'at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideoFFmpeg (ffmpeg decodes the colours as the file tags them) resamples to fps and starts at startTime, keeping round(duration x fps) ' +
+ '(duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = startTime, length = kept frames / fps), so picture and sound stay in sync. ' +
'framesPerBatch frames per pass (64): memory stays flat however long the clip. Muted clips and clips with no sound: the provider replaces the combine\'s audio with an EmptyAudio as long as the window ' +
'(silenceVhsAudio), so every clip of a film has a sound track; when the window\'s length is unknown (no header, no end) the sound is dropped instead.',
},
diff --git a/src/lib/comfy-compose.ts b/src/lib/comfy-compose.ts
index ad701d57..9fc83399 100644
--- a/src/lib/comfy-compose.ts
+++ b/src/lib/comfy-compose.ts
@@ -219,6 +219,7 @@ const MEDIA_LOADERS: Record<string, string> = {
LoadImageMask: "image",
LoadVideo: "file",
VHS_LoadVideo: "video",
+ VHS_LoadVideoFFmpeg: "video",
LoadAudio: "audio",
VHS_LoadAudioUpload: "audio",
AUSBOSS_NODES_ImageCropRotatePad: "image",
diff --git a/src/lib/comfy.ts b/src/lib/comfy.ts
index 2cb51c4c..9cd36dd9 100644
--- a/src/lib/comfy.ts
+++ b/src/lib/comfy.ts
@@ -687,12 +687,14 @@ export function tagMetaBatch(wf: ComfyWorkflow, job: string): ComfyWorkflow {
return out;
}
+/** The VHS video loaders: their audio is output 2, read lazily (a file without sound stops the run once it is read). */
+const VHS_VIDEO_LOADERS = new Set(["VHS_LoadVideo", "VHS_LoadVideoFFmpeg"]);
/** Inputs that may go without sound: a VHS soundtrack link into them is dropped for a silent clip. */
const OPTIONAL_SOUND: Record<string, string[]> = { VHS_VideoCombine: ["audio"], CreateVideo: ["audio"], TextGenerate: ["audio"], RemakeConditioning: ["audio"] };
/** Nodes that pad the sound they get to the loaded frames themselves: an empty track is enough (and never too long). */
const PADS_TO_FRAMES = new Set(["H3SoundtrackOrSilence"]);
/**
- * A clip with no sound: VHS_LoadVideo fails ("failed to extract audio") once its audio output is read, so no
+ * A clip with no sound: a VHS video loader fails ("failed to extract audio") once its audio output is read, so no
* link from that output is left. Where sound is optional (VHS_VideoCombine.audio) the link is dropped, and the
* result has no sound track. Where a node needs sound (the Openjutsu graphs' AudioConcat, H3 Face Chunks) it
* gets stereo silence `seconds` long (the clip's length; 1 s when unknown), and H3 Soundtrack or Silence an empty
@@ -700,7 +702,7 @@ const PADS_TO_FRAMES = new Set(["H3SoundtrackOrSilence"]);
* says they have no sound.
*/
export function dropVhsAudio(wf: ComfyWorkflow, seconds?: number): ComfyWorkflow {
- const loaders = new Set(Object.entries(wf).filter(([, n]) => n.class_type === "VHS_LoadVideo").map(([id]) => id));
+ const loaders = new Set(Object.entries(wf).filter(([, n]) => VHS_VIDEO_LOADERS.has(n.class_type)).map(([id]) => id));
if (!loaders.size) return wf;
const out = cloneWorkflow(wf);
const clipLength = seconds && Number.isFinite(seconds) && seconds > 0 ? Math.ceil(seconds * 1000) / 1000 : 1;
@@ -730,7 +732,7 @@ export function dropVhsAudio(wf: ComfyWorkflow, seconds?: number): ComfyWorkflow
* loader's own sound is then never read (a file without one would stop VHS).
*/
export function silenceVhsAudio(wf: ComfyWorkflow, seconds: number): ComfyWorkflow {
- const loaders = new Set(Object.entries(wf).filter(([, n]) => n.class_type === "VHS_LoadVideo").map(([id]) => id));
+ const loaders = new Set(Object.entries(wf).filter(([, n]) => VHS_VIDEO_LOADERS.has(n.class_type)).map(([id]) => id));
if (!loaders.size) return wf;
const out = cloneWorkflow(wf);
let id = "silence";
diff --git a/src/lib/local-comfy.ts b/src/lib/local-comfy.ts
index 9581f087..6c05ebf4 100644
--- a/src/lib/local-comfy.ts
+++ b/src/lib/local-comfy.ts
@@ -120,6 +120,7 @@ const FILE_LOADERS: Record<string, string[]> = {
LoadVideo: ["file"],
LoadAudio: ["audio"],
VHS_LoadVideo: ["video"],
+ VHS_LoadVideoFFmpeg: ["video"],
VHS_LoadVideoPath: ["video"],
VHS_LoadAudio: ["audio_file"],
VHS_LoadAudioUpload: ["audio"],
diff --git a/tests/silent-clip-sound.test.ts b/tests/silent-clip-sound.test.ts
index 7d7bdc37..e8a8bce1 100644
--- a/tests/silent-clip-sound.test.ts
+++ b/tests/silent-clip-sound.test.ts
@@ -1,7 +1,7 @@
import { describe, expect, it, vi } from "vitest";
import type { GenInput, Operation } from "@/lib/catalog/types";
import type { ComfyWorkflow } from "@/lib/comfy";
-import { dropVhsAudio } from "@/lib/comfy";
+import { dropVhsAudio, silenceVhsAudio } from "@/lib/comfy";
import { composeWorkflow, type ComposeCatalog } from "@/lib/comfy-compose";
import type { MediaInfo } from "@/lib/media-probe";
import { OPENJUTSU_WORKFLOWS } from "@/lib/openjutsu-graphs";
@@ -32,7 +32,7 @@ const clipFacts = (hasAudio: boolean): MediaInfo => ({
const PICTURE: MediaInfo = { container: "image", width: 1024, height: 1024, hasVideo: false, hasAudio: false };
const isLink = (v: unknown): v is [string, number] => Array.isArray(v) && v.length === 2 && typeof v[0] === "string" && typeof v[1] === "number";
-const vhsLoaders = (wf: ComfyWorkflow) => Object.keys(wf).filter((id) => wf[id].class_type === "VHS_LoadVideo");
+const vhsLoaders = (wf: ComfyWorkflow) => Object.keys(wf).filter((id) => wf[id].class_type === "VHS_LoadVideo" || wf[id].class_type === "VHS_LoadVideoFFmpeg");
/** Every input that reads a VHS loader's sound (output 2). */
const soundReads = (wf: ComfyWorkflow) => {
const loaders = new Set(vhsLoaders(wf));
@@ -142,6 +142,15 @@ describe("dropVhsAudio", () => {
expect(wf["2"].inputs.audio).toEqual(["1", 2]);
});
+ it("treats the ffmpeg loader the same way (its sound is output 2 too)", () => {
+ const ff: ComfyWorkflow = { ...wf, "1": { class_type: "VHS_LoadVideoFFmpeg", inputs: { video: "a.mp4" } } };
+ const out = dropVhsAudio(ff, 2);
+ expect(out["2"].inputs.audio).toBeUndefined();
+ expect(out[(out["5"].inputs.audio as [string, number])[0]]).toMatchObject({ class_type: "EmptyAudio", inputs: { duration: 2 } });
+ const quiet = silenceVhsAudio(ff, 3);
+ expect(quiet[(quiet["2"].inputs.audio as [string, number])[0]]).toMatchObject({ class_type: "EmptyAudio", inputs: { duration: 3 } });
+ });
+
it("uses 1 s when the clip's length is unknown, and leaves a graph without VHS loaders alone", () => {
const out = dropVhsAudio(wf);
expect(out[(out["3"].inputs.audio1 as [string, number])[0]].inputs.duration).toBe(1);
diff --git a/workflows/comfyui/body-double-clip-instanthmr.json b/workflows/comfyui/body-double-clip-instanthmr.json
index 9a5ae73f..f00b048d 100644
--- a/workflows/comfyui/body-double-clip-instanthmr.json
+++ b/workflows/comfyui/body-double-clip-instanthmr.json
@@ -1,14 +1,13 @@
{
"1": {
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"inputs": {
"video": "input.mp4",
"force_rate": 24,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 360,
- "skip_first_frames": 0,
- "select_every_nth": 1,
+ "start_time": 0,
"format": "None"
},
"_meta": {
diff --git a/workflows/comfyui/manifest.json b/workflows/comfyui/manifest.json
index 555b7c3c..b2482205 100644
--- a/workflows/comfyui/manifest.json
+++ b/workflows/comfyui/manifest.json
@@ -24238,7 +24238,7 @@
"vramGb": 0,
"license": "n/a (no model; ComfyUI core + VideoHelperSuite GPL-3.0 code)",
"validated": true,
- "notes": "The Canvas Video concatenator, one job per clip, then video-concat-encoded joins them: every clip comes out at the film's size (width x height, scaled to cover and centre-cropped), at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideo resamples to fps and skips round(startTime x fps) frames, keeping round(duration x fps) (duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = skipped frames / fps, length = kept frames / fps), so picture and sound stay in sync. framesPerBatch frames per pass (64): memory stays flat however long the clip. Muted clips and clips with no sound: the provider replaces the combine's audio with an EmptyAudio as long as the window (silenceVhsAudio), so every clip of a film has a sound track; when the window's length is unknown (no header, no end) the sound is dropped instead."
+ "notes": "The Canvas Video concatenator, one job per clip, then video-concat-encoded joins them: every clip comes out at the film's size (width x height, scaled to cover and centre-cropped), at fps (30) and as H.264 + AAC from VHS, so ConcatenateVideo can copy the packets. VHS_LoadVideoFFmpeg (ffmpeg decodes the colours as the file tags them) resamples to fps and starts at startTime, keeping round(duration x fps) (duration 0 = to the end); its sound is cut to the same window (VHS lazy audio: start = startTime, length = kept frames / fps), so picture and sound stay in sync. framesPerBatch frames per pass (64): memory stays flat however long the clip. Muted clips and clips with no sound: the provider replaces the combine's audio with an EmptyAudio as long as the window (silenceVhsAudio), so every clip of a film has a sound track; when the window's length is unknown (no header, no end) the sound is dropped instead."
},
{
"id": "audio-loop-crossfade",
diff --git a/workflows/comfyui/object_info.subset.json b/workflows/comfyui/object_info.subset.json
index a53cb24d..279315bd 100644
--- a/workflows/comfyui/object_info.subset.json
+++ b/workflows/comfyui/object_info.subset.json
@@ -30718,6 +30718,228 @@
"has_intermediate_output": false,
"search_aliases": []
},
+ "VHS_LoadVideoFFmpeg": {
+ "input": {
+ "required": {
+ "video": [
+ [
+ "fuobe_validate.mp4"
+ ]
+ ],
+ "force_rate": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 60,
+ "step": 1,
+ "disable": 0
+ }
+ ],
+ "custom_width": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 8192,
+ "disable": 0
+ }
+ ],
+ "custom_height": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 8192,
+ "disable": 0
+ }
+ ],
+ "frame_load_cap": [
+ "INT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 9007199254740991,
+ "step": 1,
+ "disable": 0
+ }
+ ],
+ "start_time": [
+ "FLOAT",
+ {
+ "default": 0,
+ "min": 0,
+ "max": 9007199254740991,
+ "step": 0.001,
+ "widgetType": "VHSTIMESTAMP"
+ }
+ ]
+ },
+ "optional": {
+ "meta_batch": [
+ "VHS_BatchManager"
+ ],
+ "vae": [
+ "VAE"
+ ],
+ "format": [
+ [
+ "None",
+ "AnimateDiff",
+ "Mochi",
+ "LTXV",
+ "Hunyuan",
+ "Cosmos",
+ "Wan",
+ "H3"
+ ],
+ {
+ "default": "AnimateDiff",
+ "formats": {
+ "None": {},
+ "AnimateDiff": {
+ "target_rate": 8,
+ "dim": [
+ 8,
+ 0,
+ 512,
+ 512
+ ]
+ },
+ "Mochi": {
+ "target_rate": 24,
+ "dim": [
+ 16,
+ 0,
+ 848,
+ 480
+ ],
+ "frames": [
+ 6,
+ 1
+ ]
+ },
+ "LTXV": {
+ "target_rate": 24,
+ "dim": [
+ 32,
+ 0,
+ 768,
+ 512
+ ],
+ "frames": [
+ 8,
+ 1
+ ]
+ },
+ "Hunyuan": {
+ "target_rate": 24,
+ "dim": [
+ 16,
+ 0,
+ 848,
+ 480
+ ],
+ "frames": [
+ 4,
+ 1
+ ]
+ },
+ "Cosmos": {
+ "target_rate": 24,
+ "dim": [
+ 16,
+ 0,
+ 1280,
+ 704
+ ],
+ "frames": [
+ 8,
+ 1
+ ]
+ },
+ "Wan": {
+ "target_rate": 16,
+ "dim": [
+ 8,
+ 0,
+ 832,
+ 480
+ ],
+ "frames": [
+ 4,
+ 1
+ ]
+ },
+ "H3": {
+ "target_rate": 24,
+ "dim": [
+ 32,
+ 0,
+ 1344,
+ 768
+ ],
+ "frames": [
+ 17,
+ 5
+ ]
+ }
+ }
+ }
+ ]
+ },
+ "hidden": {
+ "force_size": "STRING",
+ "unique_id": "UNIQUE_ID"
+ }
+ },
+ "input_order": {
+ "required": [
+ "video",
+ "force_rate",
+ "custom_width",
+ "custom_height",
+ "frame_load_cap",
+ "start_time"
+ ],
+ "optional": [
+ "meta_batch",
+ "vae",
+ "format"
+ ],
+ "hidden": [
+ "force_size",
+ "unique_id"
+ ]
+ },
+ "is_input_list": false,
+ "output": [
+ "IMAGE",
+ "MASK",
+ "AUDIO",
+ "VHS_VIDEOINFO"
+ ],
+ "output_is_list": [
+ false,
+ false,
+ false,
+ false
+ ],
+ "output_name": [
+ "IMAGE",
+ "mask",
+ "audio",
+ "video_info"
+ ],
+ "name": "VHS_LoadVideoFFmpeg",
+ "display_name": "Load Video FFmpeg (Upload) πŸŽ₯πŸ…₯πŸ…—πŸ…’",
+ "description": "Load Video FFmpeg πŸŽ₯πŸ…₯πŸ…—πŸ…’<div style=\"font-size: 0.8em\"><div id=VHS_shortdesc>Loads a video from the input folder using ffmpeg instead of opencv</div></div><div style=\"font-size: 0.8em\">Provides faster execution speed, transparency support, and allows specifying start time in seconds</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=\"meta_batch\" 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%\">meta_batch: (optional) Connect to a Meta Batch manager to divide extremely long sequences into sub batches. See the documentation for Meta Batch Manager</div></div><div vhs_title=\"vae\" 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%\">vae: (optional) If provided the node will output latents instead of images. This drastically reduces the required RAM (not VRAM) when working with long (100+ frames) sequences<div style=\"font-size: 1em\">Using this is strongly encouraged unless connecting to a node that requires a blue image connection such as Apply Controllnet</div></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 loaded images</div></div><div vhs_title=\"mask\" 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%\">mask: Transparency data from the loaded video</div></div><div vhs_title=\"audio\" 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%\">audio: The audio from the loaded video</div></div><div vhs_title=\"video_info\" 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%\">video_info: Exposes additional info about the video such as the source frame rate, or the total length</div></div><div vhs_title=\"LATENT\" 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%\">LATENT: The loaded images pre-converted to latents. Only available when a vae is connected</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=\"video\" 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%\">video: The video file to be loaded. Lists all files with a video extension in the ComfyUI/Input folder</div></div><div vhs_title=\"force_rate\" 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%\">force_rate: Drops or duplicates frames so that the produced output has the target frame rate. Many motion models are trained on videos of a specific frame rate and will give better results if input matches that frame rate. If set to 0, all frames are returned. May give unusual results with inputs that have a variable frame rate like animated gifs. Reducing this value can also greatly reduce the execution time and memory requirements.</div></div><div vhs_title=\"force_size\" 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%\">force_size: Previously was used to provide suggested resolutions. Instead, custom_width and custom_height can be disabled by setting to 0.</div></div><div vhs_title=\"custom_width\" 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%\">custom_width: Allows for an arbitrary width to be entered, cropping to maintain aspect ratio if both are set</div></div><div vhs_title=\"custom_height\" 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%\">custom_height: Allows for an arbitrary height to be entered, cropping to maintain aspect ratio if both are set</div></div><div vhs_title=\"frame_load_cap\" 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%\">frame_load_cap: The maximum number of frames to load. If 0, all frames are loaded.</div></div><div vhs_title=\"start_time\" 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%\">start_time: A timestamp, in seconds from the start of the video, to start loading frames from. </div></div><div vhs_title=\"format\" 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%\">format: Updates other widgets so that only values supported by the given format can be entered and provides recommended defaults.</div></div><div vhs_title=\"choose video to upload\" 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%\">choose video to upload: An upload button is provided to upload local files to the input folder</div></div><div vhs_title=\"videopreview\" 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%\">videopreview: Displays a preview for the selected video input. If advanced previews is enabled, this preview will reflect the frame_load_cap, force_rate, skip_first_frames, and select_every_nth values chosen. If the video has audio, it will also be previewed when moused over. Additional preview options can be accessed with right click.</div></div></div></div></div>",
+ "python_module": "custom_nodes.ComfyUI-VideoHelperSuite",
+ "category": "Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’",
+ "output_node": false,
+ "has_intermediate_output": false,
+ "search_aliases": []
+ },
"VHS_SelectEveryNthImage": {
"input": {
"required": {
diff --git a/workflows/comfyui/video-fit-clip.json b/workflows/comfyui/video-fit-clip.json
index b719f5b1..855e4be0 100644
--- a/workflows/comfyui/video-fit-clip.json
+++ b/workflows/comfyui/video-fit-clip.json
@@ -1,6 +1,6 @@
{
"1": {
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"inputs": {
"video": "input.mp4",
"force_rate": [
@@ -13,11 +13,10 @@
"7",
1
],
- "skip_first_frames": [
- "6",
- 1
+ "start_time": [
+ "8",
+ 0
],
- "select_every_nth": 1,
"format": "None",
"meta_batch": [
"2",
@@ -95,23 +94,6 @@
"title": "fps"
}
},
- "6": {
- "class_type": "ComfyMathExpression",
- "inputs": {
- "expression": "round(a * b)",
- "values.a": [
- "8",
- 0
- ],
- "values.b": [
- "5",
- 0
- ]
- },
- "_meta": {
- "title": "Frames to skip: startTime x fps"
- }
- },
"7": {
"class_type": "ComfyMathExpression",
"inputs": {
diff --git a/workflows/comfyui/video-fix-faces-h3.json b/workflows/comfyui/video-fix-faces-h3.json
index af2fb157..18265868 100644
--- a/workflows/comfyui/video-fix-faces-h3.json
+++ b/workflows/comfyui/video-fix-faces-h3.json
@@ -6,11 +6,10 @@
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
- "skip_first_frames": 0,
- "select_every_nth": 1,
+ "start_time": 0,
"format": "None"
},
- "class_type": "VHS_LoadVideo",
+ "class_type": "VHS_LoadVideoFFmpeg",
"_meta": {
"title": "Video to fix"
}