SCAIL-2 Fit Video:
The SCAIL2FitVideo node is designed to adjust the dimensions of a video to fit a specified resolution while preserving the aspect ratio. This node is particularly useful for AI artists who need to ensure their video content meets specific size requirements without distorting the original aspect ratio. By leveraging this node, you can seamlessly resize videos to match predefined resolution presets or custom dimensions, making it an essential tool for preparing video content for various platforms or further processing. The node's primary function is to resize the input video to the nearest multiple of 32, ensuring compatibility with many video processing frameworks and maintaining visual quality.
SCAIL-2 Fit Video Input Parameters:
video
This parameter represents the input video that you want to resize. It is expected to be in the form of an image tensor, which the node will process to fit the desired resolution.
resolution
The resolution parameter allows you to select from a list of predefined resolution presets, with the default being "512p". This option simplifies the process of resizing by providing common resolution standards, ensuring your video fits typical display requirements.
custom_width
The custom_width parameter lets you specify a custom width for the video if the predefined resolutions do not meet your needs. The width can range from a minimum of 32 to a maximum of 4096 pixels, with a default value of 832 pixels. This flexibility allows you to tailor the video size to specific requirements while maintaining the aspect ratio.
custom_height
Similar to custom_width, the custom_height parameter allows you to define a custom height for the video. It also ranges from 32 to 4096 pixels, with a default of 480 pixels. This parameter works in conjunction with custom_width to provide precise control over the video's dimensions.
SCAIL-2 Fit Video Output Parameters:
video
The output video is the resized version of the input video, adjusted to fit the specified resolution or custom dimensions while preserving the aspect ratio. This ensures the video is ready for further processing or display.
width
This output provides the final width of the resized video. It reflects the adjustments made to fit the specified resolution or custom dimensions, giving you insight into the video's new size.
height
Similar to width, the height output indicates the final height of the resized video. It helps you understand the adjustments made to achieve the desired resolution or custom dimensions.
summary
The summary output is a JSON-formatted string that provides a detailed overview of the resizing process. It includes information such as the original and target dimensions, the resolution used, and the method of resizing. This summary is valuable for documentation and understanding the changes applied to the video.
SCAIL-2 Fit Video Usage Tips:
- To maintain the best visual quality, choose a resolution preset that closely matches your target display or platform requirements.
- Use custom dimensions when you need precise control over the video's size, ensuring the width and height are multiples of 32 for optimal processing.
SCAIL-2 Fit Video Common Errors and Solutions:
Video tensor shape mismatch
- Explanation: The input video tensor does not match the expected shape or dimensions.
- Solution: Ensure the input video is correctly formatted as an image tensor and matches the expected input dimensions.
Invalid custom width or height
- Explanation: The specified custom width or height is outside the allowed range.
- Solution: Verify that the custom width and height are within the range of 32 to 4096 pixels and adjust them accordingly.
Resolution preset not found
- Explanation: The selected resolution preset is not available in the list of predefined options.
- Solution: Double-check the resolution preset name and ensure it matches one of the available options. If necessary, use custom dimensions instead.
