Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates loading and processing video files for AI art projects, extracting frames and supporting various formats.
The LoadVideo
node is designed to facilitate the loading and processing of video files within your AI art projects. This node allows you to extract frames from a video file, starting from a specified frame and limiting the number of frames to be loaded. It supports various video formats, including .mp4
, .mov
, .avi
, .webm
, .gif
, and .webp
. By converting video frames into a format suitable for further processing, this node enables you to incorporate dynamic visual elements into your AI-generated artwork. The primary goal of the LoadVideo
node is to streamline the integration of video content, making it easier for you to work with video data in your creative projects.
This parameter specifies the path to the video file you want to load. The path should be provided as a string, and the video file must be in one of the supported formats: .mp4
, .mov
, .avi
, .webm
, .gif
, or .webp
. The node will use this path to locate and read the video file.
This parameter determines the starting frame from which the video frames will be loaded. It is an integer value with a default of 0, meaning the loading will start from the very first frame of the video. You can adjust this value to skip a certain number of initial frames if needed. The minimum value is 0, and there is no explicit maximum value, but it should be within the total number of frames in the video.
This parameter sets the maximum number of frames to be loaded from the video. It is an integer value with a default of 16, meaning the node will load up to 16 frames starting from the frame_start
position. You can adjust this value to load more or fewer frames based on your requirements. The minimum value is 1, and the maximum value is 4096.
This output parameter is a tensor containing the loaded video frames. The frames are concatenated along the first dimension, resulting in a single tensor that can be used for further processing. The number of frames in the tensor corresponds to the actual number of frames loaded, which may be less than the frame_limit
if the video has fewer frames available.
This output parameter is an integer representing the total number of frames successfully loaded from the video. It provides a count of the frames included in the frames
tensor, which can be useful for verifying the amount of data processed and for further operations that depend on the frame count.
video
parameter is correct and accessible to avoid file not found errors.frame_start
parameter to skip unnecessary initial frames and focus on the relevant part of the video.frame_limit
parameter to control the number of frames loaded, balancing between performance and the amount of data needed for your project.<ext>
LoadVideo
node..mp4
, .mov
, .avi
, .webm
, .gif
, or .webp
. Convert your video to a supported format if necessary.ffmpeg
tool, which is required for processing certain video formats, is not installed or not found in the system's PATH.ffmpeg
on your system and ensure it is accessible from the command line. You can download ffmpeg
from its official website and follow the installation instructions for your operating system.<video_path>
video
parameter is correct and that the file exists at the specified location. Ensure there are no typos or missing directories in the path.© Copyright 2024 RunComfy. All Rights Reserved.