Visit ComfyUI Online for ready-to-use ComfyUI environment
Identifies and extracts keyframes from video sequences for AI analysis and manipulation, emphasizing significant frame differences.
The GetKeyFrames
node is designed to identify and extract keyframes from a sequence of frames, which are crucial for representing significant changes or events within the sequence. This node is particularly useful for AI artists who need to analyze or manipulate video content by focusing on the most important frames. By selecting keyframes based on the differences between consecutive frames, the node ensures that the extracted frames capture the essential dynamics of the video. Additionally, it offers options to include the first and last frames of the sequence, providing flexibility in the selection process. The node also labels the keyframes for easy identification and further processing.
This parameter expects a sequence of frames in the form of an image tensor. The frames represent the video content from which keyframes will be extracted. The quality and content of these frames directly impact the effectiveness of the keyframe extraction process.
This integer parameter specifies the number of keyframes to be extracted from the sequence. The value must be between 2 and the total number of frames minus 2. The default value is 12. Adjusting this parameter allows you to control the granularity of the keyframe selection, with higher values resulting in more keyframes and finer detail.
This boolean parameter determines whether the first frame of the sequence should be included as a keyframe. The default value is True. Including the first frame ensures that the initial state of the video is always represented among the keyframes.
This boolean parameter determines whether the last frame of the sequence should be included as a keyframe. The default value is True. Including the last frame ensures that the final state of the video is always represented among the keyframes.
This output is an image tensor containing the extracted keyframes. These keyframes represent the most significant frames in the sequence, capturing the essential changes and events.
This output is an image tensor containing the extracted keyframes with labels. Each keyframe is labeled with its index in the original sequence, making it easy to identify and reference specific frames during further processing or analysis.
num_keyframes
to a value that balances detail and manageability. For longer videos, a higher number of keyframes may be necessary.include_first_frame
and include_last_frame
options to ensure that the keyframes include the start and end states of the video, which can be crucial for certain analyses or presentations.{file_input}
cannot be found.'frames
parameter is correct and that the file exists at the specified location.{file_input}
.num_keyframes
parameter is set to a value outside the valid range.num_keyframes
parameter to a value between 2 and the total number of frames minus 2.© Copyright 2024 RunComfy. All Rights Reserved.