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_nthvalue for videos where high frame rates are not necessary, as this will reduce the number of frames processed. - Use the
source_fpsparameter 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_fpsparameter is set to a non-positive value, which is invalid for frame rate calculations. - Solution: Ensure that the
source_fpsis 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_nthparameter 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_nthparameter to a positive integer value of at least 1 to resolve this issue.
