Painter Frame Rate Converter:
The PainterFrameRateConverter is a specialized node designed to adjust the frame rate of a sequence of images, commonly used in video processing tasks. Its primary function is to convert the frame rate of an input image sequence from a source frames per second (FPS) to a desired target FPS, known as the force_rate. This conversion is crucial for ensuring that video content meets specific playback requirements or matches the frame rate of other media elements. The node intelligently resamples the frames to achieve the desired frame rate while maintaining the visual integrity of the sequence. Additionally, it supports various output formats, each with specific frame requirements, ensuring compatibility with different video standards. This node is particularly beneficial for AI artists and video creators who need to seamlessly integrate video content with varying frame rates into their projects.
Painter Frame Rate Converter Input Parameters:
image
The image parameter represents the input sequence of images that you want to convert. It is expected to be a multi-dimensional array where the first dimension corresponds to the number of frames. This parameter is crucial as it provides the raw data that will be processed to achieve the desired frame rate.
source_fps
The source_fps parameter specifies the original frames per second of the input image sequence. It is a floating-point value with a default of 24.0, and it can range from 1.0 to 120.0. This parameter is essential for calculating the duration of the input sequence and determining how to resample the frames to match the force_rate.
force_rate
The force_rate parameter defines the target frames per second that you want the output image sequence to have. It is a floating-point value with a default of 0.0, indicating no change from the source FPS unless specified. The range is from 0.0 to 120.0. This parameter directly impacts the number of frames in the output sequence and is used to adjust the timing and pacing of the video content.
format
The format parameter allows you to select the output format for the converted image sequence. It provides a list of available formats, each with specific frame and dimension requirements. The default format is AnimateDiff. This parameter ensures that the output sequence is compatible with various video standards and can be tailored to specific project needs.
Painter Frame Rate Converter Output Parameters:
image
The image output parameter is the processed sequence of images with the adjusted frame rate. It retains the visual content of the input sequence but resampled to match the force_rate. This output is crucial for ensuring that the video content plays back at the desired speed and is compatible with other media elements.
frame_count
The frame_count output parameter indicates the number of frames in the converted image sequence. It provides a quick reference to verify that the output sequence meets the expected frame rate and format requirements. This parameter is useful for confirming the success of the frame rate conversion process.
Painter Frame Rate Converter Usage Tips:
- To maintain the original frame rate, set the
force_rateto 0.0 or equal tosource_fps. This ensures no unnecessary processing is done. - When selecting a
format, ensure that the output frame count aligns with the format's frame requirements to avoid runtime errors. - Use the
source_fpsandforce_rateparameters to create slow-motion or time-lapse effects by setting theforce_ratelower or higher than thesource_fps, respectively.
Painter Frame Rate Converter Common Errors and Solutions:
"The number of frames does not match the requirements of the selected format."
- Explanation: This error occurs when the output frame count does not align with the frame requirements of the chosen format.
- Solution: Adjust the
force_rateor select a differentformatthat matches the output frame count.
"Frame rate must be greater than 0"
- Explanation: This error is raised if the
force_rateis set to a non-positive value. - Solution: Ensure that the
force_rateis set to a positive value greater than 0 to perform a valid conversion.
