Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates YouTube video download, frame extraction, and properties adjustment for AI applications.
The YouTubeVideoLoader
node is designed to facilitate the downloading and processing of videos directly from YouTube. This node allows you to specify a YouTube URL and various parameters to control the video download and frame extraction process. It is particularly useful for AI artists who need to work with video data, as it simplifies the process of obtaining and preparing video frames for further analysis or creative projects. By leveraging this node, you can easily download videos, extract frames, and adjust video properties such as frame rate and resolution, making it a versatile tool for video-based AI applications.
This parameter specifies the URL of the YouTube video you want to download. It is a required parameter and must be a valid YouTube URL. The default value is "youtube/url/here".
This optional parameter allows you to specify the directory where the downloaded video will be saved. If not provided, the video will be saved in a default directory. The default value is an empty string.
This parameter defines the starting point in seconds from which the video frames should be extracted. It is a required parameter with a default value of 0.0, and it can range from 0.0 to 10000.0 seconds.
This parameter specifies the ending point in seconds up to which the video frames should be extracted. It is a required parameter with a default value of 0.0, and it can range from 0.0 to 10000.0 seconds.
This parameter sets the maximum frames per second (FPS) for the extracted video frames. It is a required parameter with a default value of -1, which means no limit. The value can range from -1 to 30 FPS.
This parameter allows you to force the size of the extracted video frames to specific dimensions. The available options are "Disabled", "256x?", "?x256", "256x256", "512x?", "?x512", "512x512", "?x768", "768x?". The default value is "Disabled".
This parameter sets the maximum number of frames to be loaded from the video. It is a required parameter with a default value of 50, and it can range from 1 to 10000 frames.
This output parameter contains the extracted video frames as a tensor. Each frame is represented as an image, and the tensor includes all the frames extracted based on the specified parameters.
This parameter indicates the total number of frames extracted from the video. It provides a count of the frames that are available in the images
output.
This parameter represents the frames per second (FPS) of the extracted video frames. It indicates the rate at which the frames were captured from the video.
This parameter specifies the width of the extracted video frames. It provides the horizontal dimension of each frame in pixels.
This parameter specifies the height of the extracted video frames. It provides the vertical dimension of each frame in pixels.
youtube_url
is a valid and accessible YouTube link to avoid download errors.start_sec
and end_sec
parameters to extract specific segments of the video, which can save processing time and resources.max_fps
parameter to control the frame rate of the extracted video frames, especially if you need to match a specific FPS for your project.force_size
parameter to resize the extracted frames to a desired resolution, which can be useful for standardizing input sizes for AI models.start_sec
and end_sec
values or an issue with the video file.start_sec
and end_sec
values to ensure they are within the video's duration. Check the YouTube URL and ensure the video is accessible and not restricted.output_dir
does not exist or cannot be created.output_dir
path is valid and that you have the necessary permissions to create directories and save files in the specified location.© Copyright 2024 RunComfy. All Rights Reserved.