Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’generated

Load Video (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’(LoadVideoPath)

This node provides extensive video processing options, allowing users to have fine-grained control over the loading process.

Load Video Path

meta_batch
vae
IMAGE
frame_count
audio
video_info
video
STRING
force_rate
0
custom_width
INT
custom_height
INT
frame_load_cap
INT
skip_first_frames
INT
select_every_nth
INT
VideoHelperSuite

The Load Video (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node offers extensive video processing options, allowing users to finely control the loading process.

The Load Video (Path) node is a core component of the Video Helper Suite toolkit, used to load video files from the local filesystem or network URLs. Its primary function is to decode video files into a series of consecutive image frames (IMAGE) for subsequent image processing, analysis, or generation tasks within ComfyUI workflows.

Node Functionality

This node provides extensive video processing options, allowing users to finely control the loading process. For example, users can limit the number of frames loaded, skip a specified number of initial frames, sample frames at intervals, and even force the output frame dimensions and frame rate. This makes it highly suitable for handling large video files or scenarios requiring specific preprocessing steps.

Node Parameter Description - Load Video (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
meta_batchVHS_BatchManagerNo--: Connects to a batch manager for coordinating the loading of multiple videos in batch mode.
vaeVAENo--: Connects a VAE model. If provided, the node directly outputs the latent space representation (LATENT) of the video frames; otherwise, it outputs images (IMAGE).

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
videoSTRINGYes--: Specifies the path to the video file or network URL to load. Supports common video formats (e.g., .mp4, .mov, .avi).
force_rateCOMBOYes00 - 60 (Step: 1): Forces the frame rate (FPS) of the output frame sequence. Range is 0 to 60, step is 1. Setting it to 0 uses the video's original frame rate.
custom_widthINTYes00 - DIMMAX: Forces the width of the output images. Range is 0 to DIMMAX. Setting it to 0 preserves the video's original width.
custom_heightINTYes00 - DIMMAX: Forces the height of the output images. Range is 0 to DIMMAX. Setting it to 0 preserves the video's original height.
frame_load_capINTYes00 - BIGMAX (Step: 1): Limits the maximum number of frames to load. Range is 0 to BIGMAX, step is 1. Setting it to 0 loads all frames.
skip_first_framesINTYes00 - BIGMAX (Step: 1): Skips a specified number of frames from the beginning of the video before starting to load. Range is 0 to BIGMAX, step is 1.
select_every_nthINTYes11 - BIGMAX (Step: 1): Loads every Nth frame for downsampling. Range is 1 to BIGMAX, step is 1.

Output

Parameter NameData TypeDescription
IMAGEUNKNOWN: The output video frame sequence (image or latent space representation).
frame_countINT: The total number of video frames successfully loaded.
audioAUDIO: The audio track data extracted from the video.
VHS_VIDEOINFOVHS_VIDEOINFO: Video metadata including original dimensions and frame rate.

Usage Scenarios

A key feature of this node is its support for connecting to a VAE (Variational Autoencoder). When a VAE model is provided, the node directly encodes video frames into a latent space representation (LATENT) for output, bypassing the explicit image decoding step. This can significantly improve processing efficiency, especially in workflows that require feeding video into latent space-based generative models (such as Stable Diffusion).

Notes

Additionally, the node outputs video metadata (such as original dimensions and frame rate), the extracted audio track, and the total number of frames actually loaded. These outputs provide necessary contextual information for subsequent nodes, facilitating the construction of complex video processing pipelines.

The Load Video (Path) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node is from the ComfyUI-VideoHelperSuite node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…