Load Videos From Folder
KJNodes/misc
LoadVideosFromFolderExample
JSON Example
{
"class_type": "LoadVideosFromFolder",
"inputs": {
"video": "https://example.com/input-video.mp4",
"force_rate": 0,
"custom_width": 0,
"custom_height": 0,
"frame_load_cap": 0,
"skip_first_frames": 0,
"select_every_nth": 1,
"output_type": "batch",
"grid_max_columns": 4,
"add_label": false
}
}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 | STRINGURL: Video | required | - | "X://insert/path/" |
force_rate | FLOAT | required | min: 0, max: 60, step: 1 | 0 |
custom_width | INT | required | min: 0, max: 4096 | 0 |
custom_height | INT | required | min: 0, max: 4096 | 0 |
frame_load_cap | INT | required | min: 0, max: 10000, step: 1 | 0 |
skip_first_frames | INT | required | min: 0, max: 10000, step: 1 | 0 |
select_every_nth | INT | required | min: 1, max: 1000, step: 1 | 1 |
output_type | ENUM2 options
| required | - | "batch" |
grid_max_columns | INT | required | min: 1, max: 16, step: 1 | 4 |
add_label | BOOLEAN | required | - | false |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | IMAGE | IMAGE | No | ["{node_id}", 0] |
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 LoadVideosFromFolder node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
IMAGE (IMAGE):["5", 0]
Was this page helpful?