Video Params:
The Video Params node is designed to facilitate the configuration of video parameters in a user-friendly manner, allowing you to define essential video attributes such as resolution, aspect ratio, orientation, frame count, and frames per second (FPS). This node is particularly beneficial for AI artists who wish to generate videos with specific dimensions and characteristics without delving into complex technical details. By providing a straightforward interface to set these parameters, the node ensures that your video outputs are tailored to your creative needs, enhancing the overall quality and precision of your video projects.
Video Params Input Parameters:
base
The base parameter determines the base resolution of the video, which directly influences the video's width and height. It accepts integer values ranging from 128 to 4096, with a default value of 768. This parameter is crucial as it sets the foundation for the video's resolution, impacting the clarity and detail of the final output.
ratio
The ratio parameter specifies the aspect ratio of the video, offering options such as "1:1", "5:4", "4:3", "3:2", "16:9", and "21:9". This parameter is essential for defining the proportional relationship between the video's width and height, ensuring that the video fits the desired visual format.
orientation
The orientation parameter allows you to choose between a portrait or landscape orientation for the video. It is a boolean value, with False indicating landscape (default) and True indicating portrait. This parameter is important for setting the video's layout, which can affect how the content is perceived by viewers.
Frames
The Frames parameter determines the total number of frames in the video. It accepts integer values from 1 to 600, with a default of 81. This parameter is vital for defining the video's length and smoothness, as more frames generally result in a longer and smoother video.
FPS
The FPS (frames per second) parameter sets the frame rate of the video, with a range from 1 to 120 and a default value of 16. This parameter is crucial for controlling the video's playback speed and fluidity, as a higher FPS results in smoother motion.
Video Params Output Parameters:
VParams
The VParams output is a tuple containing the calculated video parameters: width, height, frames, FPS, and megapixels. This output provides a comprehensive set of values that define the video's resolution, length, and quality, allowing you to understand and utilize the configured video settings effectively.
Video Params Usage Tips:
- To achieve a cinematic look, consider using a
ratioof "16:9" and setting theFPSto 24 or 30 for smooth motion. - For social media content, a
ratioof "1:1" or "4:3" with a higherFPScan be more engaging and visually appealing.
Video Params Common Errors and Solutions:
Invalid packet input type
- Explanation: This error occurs when the input provided to the node is not of the expected tuple type.
- Solution: Ensure that the input is a tuple containing the correct number of elements as specified by the node's requirements.
Invalid packet length
- Explanation: This error arises when the input tuple does not contain exactly five elements, which are required by the node.
- Solution: Verify that the input tuple includes all five necessary elements: width, height, frames, FPS, and megapixels.
