Wan Ratio & FPS:
The WanRatioAndFPS node is a specialized tool designed to facilitate the generation of video content using the WanAnimate framework. It serves as a dashboard that outputs Mod-16 compliant resolution dimensions and frame rates, ensuring compatibility and optimal performance in video production. This node is particularly beneficial for users who need to generate videos with specific aspect ratios and quality settings, as it provides a streamlined way to select from preset options or input custom values. By automatically adjusting dimensions to be divisible by 16, it helps maintain video quality and compatibility across different platforms and devices. The node's primary function is to calculate and return the appropriate width, height, and frames per second (FPS) based on user inputs, making it an essential component for video creators looking to produce high-quality animations efficiently.
Wan Ratio & FPS Input Parameters:
ratio
The ratio parameter allows you to select the desired aspect ratio for your video. You can choose from preset options such as "16:9", "9:16", "1:1", "4:3", "3:4", and "21:9", or opt for "Custom" to input your own dimensions. This parameter directly influences the video's width and height, ensuring they are Mod-16 compliant for optimal quality and compatibility.
quality
The quality parameter determines the resolution quality of the video, with options including "480p", "720p", and "1080p". This setting affects the clarity and detail of the video output, with higher resolutions providing better quality at the cost of increased file size and processing requirements.
custom_width
The custom_width parameter is used when the ratio is set to "Custom". It allows you to specify a custom width for the video, which will be adjusted to be Mod-16 compliant. This parameter gives you flexibility in defining the exact dimensions of your video when standard aspect ratios do not meet your needs.
custom_height
Similar to custom_width, the custom_height parameter is applicable when the ratio is "Custom". It lets you define a custom height for the video, which will also be rounded to the nearest Mod-16 value. This ensures that your custom dimensions maintain compatibility and quality standards.
fps_preset
The fps_preset parameter lets you choose the frame rate for your video from preset options or select "Custom" to define your own frame rate. The frame rate impacts the smoothness of motion in the video, with higher values providing smoother playback.
custom_fps
When fps_preset is set to "Custom", the custom_fps parameter allows you to specify a custom frame rate for the video. This gives you control over the video's motion dynamics, enabling you to tailor the playback experience to your specific requirements.
Wan Ratio & FPS Output Parameters:
width
The width output parameter represents the calculated width of the video, adjusted to be Mod-16 compliant. This ensures that the video maintains high quality and compatibility across various platforms and devices.
height
The height output parameter provides the calculated height of the video, also Mod-16 compliant. This dimension, along with the width, defines the overall resolution of the video, impacting its visual quality and compatibility.
fps
The fps output parameter indicates the frames per second for the video, determining the smoothness of motion. A higher FPS value results in smoother video playback, enhancing the viewing experience.
Wan Ratio & FPS Usage Tips:
- When selecting a custom aspect ratio, ensure that your custom width and height values are close to standard dimensions to maintain visual quality.
- Use higher quality settings like "1080p" for projects where detail and clarity are crucial, but be mindful of the increased processing power and storage required.
- Opt for higher FPS values if your video contains fast-moving scenes to ensure smooth playback, but balance this with the potential for increased file size.
Wan Ratio & FPS Common Errors and Solutions:
Invalid Aspect Ratio or Quality
- Explanation: This error occurs when the selected aspect ratio or quality is not recognized by the node.
- Solution: Ensure that you select a valid aspect ratio and quality from the available presets or provide custom dimensions that are Mod-16 compliant.
Custom Dimensions Not Mod-16 Compliant
- Explanation: Custom width or height values must be divisible by 16 to ensure compatibility.
- Solution: Adjust your custom width and height values to the nearest multiple of 16 to resolve this issue.
Invalid FPS Value
- Explanation: The FPS value must be a valid number, either from the presets or a custom value.
- Solution: Verify that the FPS value is correctly entered and within a reasonable range for video playback.
