ComfyUI > Nodes > ComfyUI-VFI > Calculate Loaded FPS

ComfyUI Node: Calculate Loaded FPS

Class Name

CalculateLoadedFPS

Category
image/animation
Author
GACLove (Account age: 4267days)
Extension
ComfyUI-VFI
Latest Updated
2025-09-30
Github Stars
0.04K

How to Install ComfyUI-VFI

Install this extension via the ComfyUI Manager by searching for ComfyUI-VFI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-VFI 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

Calculate Loaded FPS Description

Calculates effective FPS post-frame selection to optimize video processing performance.

Calculate Loaded FPS:

The CalculateLoadedFPS node is designed to compute the effective frame rate of a video after a frame selection process. This node is particularly useful when you want to reduce the number of frames processed from a source video, which can be beneficial for optimizing performance and resource usage in video processing tasks. By calculating the loaded frames per second (FPS), this node helps you understand the impact of selecting every nth frame from the original video, allowing you to balance between processing speed and video quality. This functionality is essential for scenarios where you need to manage large video files efficiently or when working with limited computational resources.

Calculate Loaded FPS Input Parameters:

source_fps

The source_fps parameter represents the original frame rate of the video you are working with. It is a floating-point number that determines how many frames per second the source video contains. The default value is 24, with a minimum of 0.1 and a maximum of 160.0. Adjusting this parameter affects the calculation of the loaded FPS, as it serves as the baseline for determining how many frames are selected after applying the select_every_nth parameter.

select_every_nth

The select_every_nth parameter is an integer that specifies the interval at which frames are selected from the source video. For example, a value of 1 means every frame is selected, while a value of 2 means every second frame is selected. The default value is 1, with a minimum of 1 and a maximum of 100. This parameter directly influences the loaded FPS by determining the frequency of frame selection, thus impacting the overall processing load and the smoothness of the resulting video.

Calculate Loaded FPS Output Parameters:

loaded_fps

The loaded_fps output parameter is a floating-point number that represents the effective frame rate of the video after the frame selection process. It is calculated by dividing the source_fps by the select_every_nth parameter. This output is crucial for understanding how the frame selection affects the video's playback speed and can help you make informed decisions about further processing or playback requirements.

Calculate Loaded FPS Usage Tips:

  • To optimize performance, consider increasing the select_every_nth value for videos where high frame rates are not necessary, as this will reduce the number of frames processed.
  • Use the source_fps parameter to accurately reflect the original video frame rate to ensure the loaded FPS calculation is correct and meaningful.

Calculate Loaded FPS Common Errors and Solutions:

source_fps must be positive

  • Explanation: This error occurs when the source_fps parameter is set to a non-positive value, which is invalid for frame rate calculations.
  • Solution: Ensure that the source_fps is set to a positive number greater than 0.1 to avoid this error.

select_every_nth must be positive

  • Explanation: This error is raised when the select_every_nth parameter is set to a non-positive value, which is not allowed as it would result in an undefined frame selection process.
  • Solution: Set the select_every_nth parameter to a positive integer value of at least 1 to resolve this issue.

Calculate Loaded FPS Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-VFI
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 Models, enabling artists to harness the latest AI tools to create incredible art.

Calculate Loaded FPS