Video Info 🎥🅥🅗🅢(VideoInfo)
From a technical implementation perspective, this node receives a dictionary object containing video metadata (`VHS_VIDEOINFO`)。
Video Info
From a technical implementation perspective, the Video Info 🎥🅥🅗🅢 node receives a dictionary object containing video metadata (VHS_VIDEOINFO).
The Video Info node is an information extraction tool within the Video Helper Suite. Its core function is to extract and separate the original information of a video file and the information after loading processing from a special data structure named VHS_VIDEOINFO. The node itself does not process video files but acts as an information relay, parsing the video metadata provided by upstream nodes into specific values usable by downstream nodes.
Node Functionality
From a technical implementation perspective, this node receives a dictionary object containing video metadata (VHS_VIDEOINFO). This dictionary is typically generated by video loading nodes (such as Load Video) within the Video Helper Suite and contains two sets of properties: "source video" and "loaded video." Internally, the node extracts these two sets of data using a fixed list of key names (e.g., fps, frame_count, duration, width, height) and outputs them as independent FLOAT or INT values. It supports processing any upstream node capable of generating VHS_VIDEOINFO data.
Node Parameter Description - Video Info 🎥🅥🅗🅢
Connection Inputs (Inputs)
| Parameter Name | Data Type | Required | Default Value | Value Range/Options | Description |
|---|---|---|---|---|---|
video_info | VHS_VIDEOINFO | Yes | - | - | video_info (Input Parameter): Receives the VHS_VIDEOINFO metadata package from video loading nodes, containing the source and loaded properties of the video. |
Output
| Parameter Name | Data Type | Description |
|---|---|---|
| source_fps🟨 | FLOAT | source_fps🟨 (Output Parameter): Outputs the frame rate (frames per second) of the original video file. |
| source_frame_count🟨 | INT | source_frame_count🟨 (Output Parameter): Outputs the total frame count of the original video file. |
| source_duration🟨 | FLOAT | source_duration🟨 (Output Parameter): Outputs the total duration (seconds) of the original video file. |
| source_width🟨 | INT | source_width🟨 (Output Parameter): Outputs the frame width (pixels) of the original video file. |
| source_height🟨 | INT | source_height🟨 (Output Parameter): Outputs the frame height (pixels) of the original video file. |
| loaded_fps🟦 | FLOAT | loaded_fps🟦 (Output Parameter): Outputs the frame rate of the video after processing by the loading node. |
| loaded_frame_count🟦 | INT | loaded_frame_count🟦 (Output Parameter): Outputs the total frame count of the video after processing by the loading node. |
| loaded_duration🟦 | FLOAT | loaded_duration🟦 (Output Parameter): Outputs the total duration (seconds) of the video after processing by the loading node. |
| loaded_width🟦 | INT | loaded_width🟦 (Output Parameter): Outputs the frame width (pixels) of the video after processing by the loading node. |
| loaded_height🟦 | INT | loaded_height🟦 (Output Parameter): Outputs the frame height (pixels) of the video after processing by the loading node. |
Usage Scenarios
In a typical video processing workflow, you can connect the video_info output of a Load Video node to this node. Subsequently, you can connect the specific numerical values output by this node (e.g., loaded_frame_count) to other nodes that require precise frame count, duration, or resolution information. Examples include controlling the total number of steps for animation generation, setting loop points, or providing target dimensions for image scaling nodes, thereby enabling automated process control based on video attributes.
Video Info 🎥🅥🅗🅢 Node Source Code Link
The Video Info 🎥🅥🅗🅢 node is from the ComfyUI-VideoHelperSuite node package.
Comments
Sign in with GitHub to join the discussion.