Video Helper Suite πŸŽ₯πŸ…₯πŸ…—πŸ…’generated

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

video_info
fps🟨
frame_count🟨
duration🟨
width🟨
height🟨
VideoHelperSuite

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 NameData TypeRequiredDefault ValueRange/OptionsDescription
video_infoVHS_VIDEOINFOYes--video_info (Input Parameter): Receives the video information object from a video loading node, used to extract metadata from the source video.

Outputs

Parameter NameData TypeDescription
fps🟨FLOATfps🟨 (Output Parameter): Outputs the frame rate of the source video, in frames per second.
frame_count🟨INTframe_count🟨 (Output Parameter): Outputs the total number of frames contained in the source video.
duration🟨FLOATduration🟨 (Output Parameter): Outputs the total duration of the source video, in seconds.
width🟨INTwidth🟨 (Output Parameter): Outputs the width of the source video frame in pixels.
height🟨INTheight🟨 (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.

The Video Info (Source) πŸŽ₯πŸ…₯πŸ…—πŸ…’ node is from the ComfyUI-VideoHelperSuite node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…