Video Resize:
The ComfyTV.VideoResizeStage node is designed to adjust the dimensions of a video to fit specific width and height requirements. This node is particularly useful when you need to standardize video sizes for various platforms or ensure consistency across multiple video outputs. By resizing videos, you can maintain the desired aspect ratio or adapt the video to fit new dimensions, which is essential for optimizing video content for different display devices or formats. The node provides flexibility by allowing you to specify either the width or height, with the option to automatically calculate the other dimension based on the source aspect ratio, ensuring that the video maintains its original proportions if desired.
Video Resize Input Parameters:
width
This parameter specifies the desired output width of the video in pixels. You can set a value between -1 and 8192, with a default of 1280 pixels. If you set the width to -1, the node will automatically calculate the width based on the specified height and the source video's aspect ratio, ensuring that the video maintains its original proportions.
height
This parameter defines the desired output height of the video in pixels. The range for this parameter is from -1 to 8192, with a default value of 720 pixels. Similar to the width parameter, setting the height to -1 allows the node to automatically determine the height based on the specified width and the source video's aspect ratio, preserving the video's original proportions.
video
This is the input video that you want to resize. It is an optional parameter, but the node requires an upstream video to function. If no video is provided, the node will raise an error, indicating that a video input is necessary for the resizing process.
Video Resize Output Parameters:
video
The output is the resized video, which has been adjusted to the specified width and height parameters. This output video maintains the quality and aspect ratio as specified by the input parameters, ensuring that the resized video meets the desired specifications for further processing or distribution.
Video Resize Usage Tips:
- To maintain the original aspect ratio of the video, set either the width or height to -1. This allows the node to automatically calculate the other dimension based on the source aspect ratio.
- When resizing videos for specific platforms, ensure that the output dimensions match the platform's requirements to avoid any display issues.
- Use the node to standardize video sizes across a project, ensuring consistency in presentation and compatibility with various devices.
Video Resize Common Errors and Solutions:
Video Resize needs an upstream video — wire one into the video input.
- Explanation: This error occurs when no video is provided to the node for resizing.
- Solution: Ensure that a video is connected to the node's video input before executing the resize operation.
Invalid width or height value
- Explanation: This error may occur if the width or height values are set outside the allowed range or are not integers.
- Solution: Verify that the width and height values are within the range of -1 to 8192 and are set as integers. Adjust the values accordingly to meet these criteria.
