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

Load Video FFmpeg (Upload) πŸŽ₯πŸ…₯πŸ…—πŸ…’(LoadVideoFFmpegUpload)

The main function of this node is to read video files from ComfyUI's input directory and decompress them frame by frame into image tensors.

Load Video F Fmpeg Upload

meta_batch
vae
IMAGE
mask
audio
video_info
video
COMBO
force_rate
0
custom_width
INT
custom_height
INT
frame_load_cap
INT
start_time
FLOAT
VideoHelperSuite

The Load Video FFmpeg (Upload) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node primarily reads video files from ComfyUI's input directory and decompresses them frame by frame into image tensors.

The Load Video FFmpeg (Upload) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node is a core component of the Video Helper Suite toolkit, specifically designed to load user-uploaded video files into ComfyUI workflows. Built upon the powerful FFmpeg multimedia framework, it efficiently decodes and processes various common video formats, converting video content into image sequences, audio, and metadata that can be handled by subsequent nodes.

Node Functionality

The primary function of this node is to read video files from ComfyUI's input directory and decompress them frame by frame into image tensors. This is crucial for workflows that require image generation, editing, inpainting, or style transfer based on video frames. Users can precisely control the start time, frame rate, and output image dimensions, providing a flexible starting point for complex video post-processing tasks.

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

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
videoCOMBOYes--Select the video file to load. The file list is sourced from the ComfyUI input directory, displaying only supported video formats (e.g., .mp4, .mov, .avi).
meta_batchVHS_BATCHMANAGERNo--Connect a VHS_BatchManager for metadata batch processing.
vaeVAENo--Connect a VAE model to directly encode images into latent space representations.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
force_rateCOMBOYes00 - 60 (Step: 1)Force a specific output frame rate for images, range 0-60, step 1. Uses the video's original frame rate when set to 0.
custom_widthINTYes00 - DIMMAXCustomize the output image width, range 0 - DIMMAX. Maintains the video's original width when set to 0.
custom_heightINTYes00 - DIMMAXCustomize the output image height, range 0 - DIMMAX. Maintains the video's original height when set to 0.
frame_load_capINTYes00 - BIGMAX (Step: 1)Limit the maximum number of frames to load, range 0 - BIGMAX, step 1. Loads all frames when set to 0.
start_timeFLOATYes00 - BIGMAX (Step: .001)Set the start time for video loading (unit: seconds), range 0 - BIGMAX, step 0.001.

Output

Parameter NameData TypeDescription
IMAGEUNKNOWNThe output video frame sequence, formatted as image tensors.
maskMASKThe mask extracted from videos with an alpha channel.
audioAUDIOThe audio data separated from the video.
video_infoVHS_VIDEOINFOVideo metadata including frame rate, duration, and total frame count.

Usage Scenarios

Typical usage scenarios for this node include: generating frame-by-frame animations for videos (e.g., using Stable Diffusion for repainting), extracting audio from videos for separate processing, creating masks based on video content, or simply batch-processing video screenshots. By outputting rich video information (such as frame rate, duration, total frame count), it enables subsequent nodes to perform automated processing based on accurate video attributes.

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

Comments

Sign in with GitHub to join the discussion.

Loading comments…