Video Info (Source) π₯π ₯π π ’(VideoInfoSource)
In terms of technical implementation, this node accepts an input of type `VHS_VIDEOINFO`, a data structure typically generated by video loading nodes (such as Load Video) in the Video Helper Suite.
Video Info Source
The Video Info (Source) π₯π
₯π
π
’ node, in terms of technical implementation, accepts an input of type VHS_VIDEOINFO. This data structure is typically generated by video loading nodes (such as Load Video) within the Video Helper Suite.
The Video Info (Source) node is a utility node designed to extract basic information from a video source file. Its core function is to receive a video information object and parse key metadata such as the video's frame rate, total frame count, duration, and resolution from it. This node does not process video files itself but serves as an intermediate step for information extraction.
Node Functionality
In terms of technical implementation, this node accepts an input of type VHS_VIDEOINFO. This data structure is typically generated by video loading nodes (such as Load Video) within the Video Helper Suite. Internally, the node reads pre-calculated attributes like source_fps and source_frame_count from this structure and outputs them as independent numerical values. It supports processing any video format decoded by upstream nodes.
Node Parameter Description - Video Info (Source) π₯π ₯π π ’
Inputs
| Parameter Name | Data Type | Required | Default Value | Range/Options | Description |
|---|---|---|---|---|---|
video_info | VHS_VIDEOINFO | Yes | - | - | video_info (Input Parameter): Receives the video information object from a video loading node, used to extract metadata from the source video. |
Outputs
| Parameter Name | Data Type | Description |
|---|---|---|
| fpsπ¨ | FLOAT | fpsπ¨ (Output Parameter): Outputs the frame rate of the source video, in frames per second. |
| frame_countπ¨ | INT | frame_countπ¨ (Output Parameter): Outputs the total number of frames contained in the source video. |
| durationπ¨ | FLOAT | durationπ¨ (Output Parameter): Outputs the total duration of the source video, in seconds. |
| widthπ¨ | INT | widthπ¨ (Output Parameter): Outputs the width of the source video frame in pixels. |
| heightπ¨ | INT | heightπ¨ (Output Parameter): Outputs the height of the source video frame in pixels. |
Usage Scenarios
In a typical video processing workflow, you can connect the "video_info" output from a "Load Video" node to the input of this node. Subsequently, you can pass the frame rate, total frame count, and other information output by this node to other nodes that require these parameters for calculations, such as nodes controlling animation speed or determining processing ranges, thereby building a dynamic video processing pipeline.
Video Info (Source) π₯π ₯π π ’ Node Source Code Link
The Video Info (Source) π₯π ₯π π ’ node is from the ComfyUI-VideoHelperSuite node package.
Comments
Sign in with GitHub to join the discussion.