ComfyUI > Nodes > ComfyUI_CGAnimittaTools > CGA_FrameExtraction🎞️

ComfyUI Node: CGA_FrameExtraction🎞️

Class Name

CGA_FrameExtraction🎞️

Category
CGAnimittaTools
Author
CGAnimitta (Account age: 898days)
Extension
ComfyUI_CGAnimittaTools
Latest Updated
2025-04-11
Github Stars
0.04K

How to Install ComfyUI_CGAnimittaTools

Install this extension via the ComfyUI Manager by searching for ComfyUI_CGAnimittaTools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_CGAnimittaTools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

CGA_FrameExtraction🎞️ Description

Efficiently extract key frames at regular intervals from a sequence based on speed parameter for video summarization and animation.

CGA_FrameExtraction🎞️ :

CGA_FrameExtraction🎞️ is a specialized node designed to efficiently extract key frames from a sequence of frames based on a specified speed parameter. This node is particularly useful in scenarios where you need to condense a large number of frames into a more manageable set of key frames, which can be crucial for tasks such as video summarization, animation, or any application where frame reduction is necessary. By selecting frames at regular intervals, the node ensures that the extracted frames are evenly distributed across the entire sequence, providing a representative snapshot of the original content. This method not only helps in reducing the data size but also maintains the essence of the original sequence, making it easier to process or analyze further.

CGA_FrameExtraction🎞️ Input Parameters:

total_frames

This parameter represents the total number of frames in the sequence from which key frames will be extracted. It is crucial as it defines the range within which the node operates. The minimum value for this parameter is 1, ensuring that there is at least one frame to process, while the default value is set to 81. Adjusting this parameter affects the number of frames available for selection, thereby influencing the density and distribution of the extracted key frames.

speed

The speed parameter determines the interval at which frames are selected from the total sequence. It essentially acts as a sampling rate, where a higher value results in fewer frames being selected, and a lower value increases the number of key frames. The minimum value is 1, which means every frame is selected, and the default value is 8. This parameter is critical for controlling the granularity of the frame extraction process, allowing you to balance between detail and data reduction.

CGA_FrameExtraction🎞️ Output Parameters:

selected_frames

This output parameter provides a string of comma-separated frame indices that have been selected as key frames. The indices start from 0 and are calculated based on the total number of frames and the specified speed. This output is essential for identifying which frames from the original sequence have been chosen, enabling further processing or analysis of these key frames.

CGA_FrameExtraction🎞️ Usage Tips:

  • To achieve a more detailed representation of the original sequence, decrease the speed parameter, which will result in more frames being selected.
  • If you are working with a very large number of frames and need to significantly reduce the data size, increase the speed parameter to select fewer key frames.

CGA_FrameExtraction🎞️ Common Errors and Solutions:

"Index out of range"

  • Explanation: This error occurs when the speed parameter is set too high relative to the total number of frames, resulting in an attempt to access a frame index that does not exist.
  • Solution: Ensure that the speed parameter is set to a value that allows for at least one frame to be selected within the total frame count.

"Invalid total_frames value"

  • Explanation: This error arises when the total_frames parameter is set to a value less than 1, which is not permissible.
  • Solution: Adjust the total_frames parameter to be at least 1 to ensure there is a valid frame sequence to process.

CGA_FrameExtraction🎞️ Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_CGAnimittaTools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.