ComfyUI Node
Load Video From Folder (Batch)
Loads one video at a time from a folder, extracting frames as an IMAGE batch. Enable skip_captioned to resume an interrupted batch — already-captioned videos are skipped with zero GPU cost.
Load Video From Folder (Batch)
- FRAMES
- folder_path
- filename_stem
- filename_full
- current_index
- total_videos
- frame_count
- fps
- duration_seconds
◄folder_path►
◄frame_modefirst_frame►
◄frame_count16►
◄start_frame0►
◄end_frame-1►
◄modesequential►
◄index0►
◄sort_byalphabetical►
◄reset_counterfalse►
◄skip_captionedfalse►
Category📂 BatchFolder
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | Absolute path to video folder. Supports /mnt/ WSL paths, Linux, macOS, Windows, network shares. | |
| frame_mode | COMBO | first_frame | What to extract: first_frame, last_frame, all_frames, evenly_spaced, or frame_range. |
| frame_count | INT | 161–9999 | Number of frames to extract. Only used in evenly_spaced mode. |
| start_frame | INT | 00–9999999 | First frame index. Only used in frame_range mode. |
| end_frame | INT | -1-1–9999999 | Last frame index (-1 = end of video). Only used in frame_range mode. |
| mode | COMBO | sequential | sequential: auto-advances each execution. manual: uses the index widget. |
| index | INT | 00–9999999 | Video index (0-based). Only used in manual mode. |
| sort_by | COMBO | alphabetical | How to sort the files before indexing. |
| reset_counter | BOOLEAN | false | Reset the sequential counter back to 0. |
| skip_captioned | BOOLEAN | false | Skip videos that already have a caption file. Checks for .txt/.caption/.cap next to the video. Use this to resume an interrupted batch. |
Outputs (9)
| Name | Type | Description |
|---|---|---|
| FRAMES | IMAGE | — |
| folder_path | STRING | — |
| filename_stem | STRING | — |
| filename_full | STRING | — |
| current_index | INT | — |
| total_videos | INT | — |
| frame_count | INT | — |
| fps | FLOAT | — |
| duration_seconds | FLOAT | — |