Video Info:
The VideoInfo node is designed to extract and provide detailed information about a video file, focusing on both its original and loaded states. This node is particularly useful for AI artists and developers who need to understand the technical specifications of a video, such as its frame rate, resolution, and duration, both before and after processing. By offering a comprehensive overview of these attributes, the VideoInfo node helps users make informed decisions about video manipulation and processing tasks. Its primary function is to retrieve and return key video metrics, enabling users to assess and compare the original video properties with those of the processed version, ensuring that any transformations or adjustments meet their creative or technical requirements.
Video Info Input Parameters:
video_info
The video_info parameter is a required input that provides the node with the necessary data to extract video information. It is expected to be of the type VHS_VIDEOINFO, which contains detailed metadata about the video file. This parameter is crucial as it holds the original and loaded video attributes, such as frame rate, frame count, duration, width, and height. By supplying this parameter, the node can accurately retrieve and compare the video properties before and after any processing, ensuring that users have a clear understanding of the video's characteristics.
Video Info Output Parameters:
source_fps
The source_fps output represents the frames per second of the original video. This metric is important for understanding the smoothness and quality of the video playback in its original form.
source_frame_count
The source_frame_count output indicates the total number of frames in the original video. This value helps users gauge the length and complexity of the video content.
source_duration
The source_duration output provides the total duration of the original video in seconds. It is a key metric for understanding the video's length and planning any editing or processing tasks.
source_width
The source_width output specifies the width of the original video in pixels. This dimension is crucial for understanding the video's resolution and aspect ratio.
source_height
The source_height output specifies the height of the original video in pixels. Along with the width, it helps determine the video's resolution and aspect ratio.
loaded_fps
The loaded_fps output represents the frames per second of the video after it has been loaded or processed. This metric is useful for assessing any changes in playback quality due to processing.
loaded_frame_count
The loaded_frame_count output indicates the total number of frames in the video after loading or processing. It helps users understand any alterations in the video's length or complexity.
loaded_duration
The loaded_duration output provides the total duration of the video in seconds after it has been loaded or processed. This metric is essential for comparing the original and processed video lengths.
loaded_width
The loaded_width output specifies the width of the video in pixels after loading or processing. It is important for evaluating any changes in resolution or aspect ratio.
loaded_height
The loaded_height output specifies the height of the video in pixels after loading or processing. Along with the loaded width, it helps assess any changes in resolution or aspect ratio.
Video Info Usage Tips:
- Ensure that the
video_infoparameter is correctly populated with accurate metadata to obtain reliable output metrics. - Use the output parameters to compare the original and processed video attributes, which can help in identifying any unintended changes during processing.
- Leverage the detailed video information to optimize video editing and processing workflows, ensuring that the final output meets your creative or technical standards.
Video Info Common Errors and Solutions:
Missing video_info data
- Explanation: The
video_infoparameter is not provided or lacks necessary metadata. - Solution: Ensure that the
video_infoparameter is correctly populated with all required video metadata before executing the node.
Inconsistent video attributes
- Explanation: The original and loaded video attributes do not match expected values.
- Solution: Verify the processing steps applied to the video and ensure that they are intended to alter the video attributes as observed. Adjust processing parameters if necessary.
