Video Info π₯π ₯π π ’
VHS_VideoInfoVideo Info π₯π ₯π π ’<div style="font-size: 0.8em"><div id=VHS_shortdesc>Splits information on a video into a numerous outputs</div></div><div style="font-size: 0.8em"><div vhs_title="Inputs" style="display: flex; font-size: 0.8em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">Inputs: <div vhs_title="video_info" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">video_info: A connection to a Load Video node</div></div></div></div><div vhs_title="Outputs" style="display: flex; font-size: 0.8em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">Outputs: <div vhs_title="source_fpsπ¨" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">source_fpsπ¨: The frame rate of the video</div></div><div vhs_title="source_frame_countπ¨" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">source_frame_countπ¨: How many total frames the video contains before accounting for frame rate or select_every_nth</div></div><div vhs_title="source_durationπ¨" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">source_durationπ¨: The length of images just returned in seconds</div></div><div vhs_title="source_widthπ¨" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">source_widthπ¨: The width</div></div><div vhs_title="source_heightπ¨" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">source_heightπ¨: The height</div></div><div vhs_title="loaded_fpsπ¦" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">loaded_fpsπ¦: The frame rate after accounting for force_rate and select_every_nth. This output is of particular use as it can be connected to the converted frame_rate input of a Video Combine node to ensure audio remains synchronized.</div></div><div vhs_title="loaded_frame_countπ¦" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">loaded_frame_countπ¦: The number of frames returned by the current execution. Identical to the frame_count returned by the node itself</div></div><div vhs_title="loaded_durationπ¦" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">loaded_durationπ¦: The duration in seconds of returned images after accounting for frame_load_cap</div></div><div vhs_title="loaded_widthπ¦" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">loaded_widthπ¦: The width of the video after scaling. These coordinates are in image space even if loading to latent space</div></div><div vhs_title="loaded_heightπ¦" style="display: flex; font-size: 1em" class="VHS_collapse"><div style="color: #AAA; height: 1.5em;">[<span style="font-family: monospace">-</span>]</div><div style="width: 100%">loaded_heightπ¦: The height of the video after scaling. These coordinates are in image space even if loading to latent space</div></div></div></div></div>
Example
{
"class_type": "VHS_VideoInfo",
"inputs": {
"video_info": [
"node_id",
0
]
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
video_info | VHS_VIDEOINFO | required | - | - |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | source_fpsπ¨ | FLOAT | No | ["{node_id}", 0] |
1 | source_frame_countπ¨ | INT | No | ["{node_id}", 1] |
2 | source_durationπ¨ | FLOAT | No | ["{node_id}", 2] |
3 | source_widthπ¨ | INT | No | ["{node_id}", 3] |
4 | source_heightπ¨ | INT | No | ["{node_id}", 4] |
5 | loaded_fpsπ¦ | FLOAT | No | ["{node_id}", 5] |
6 | loaded_frame_countπ¦ | INT | No | ["{node_id}", 6] |
7 | loaded_durationπ¦ | FLOAT | No | ["{node_id}", 7] |
8 | loaded_widthπ¦ | INT | No | ["{node_id}", 8] |
9 | loaded_heightπ¦ | INT | No | ["{node_id}", 9] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this VHS_VideoInfo node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
source_fpsπ¨ (FLOAT):["5", 0]source_frame_countπ¨ (INT):["5", 1]source_durationπ¨ (FLOAT):["5", 2]