List Video Path π€
A folder of clips, an index dial, a clean path out
- video_paths_list
- selected_video_path
- count
Video work in ComfyUI is usually a batch problem: you've got a folder of clips and you want to process them one at a time, or you want to swap which clip feeds the rest of the graph without rewriting paths. This node is the selector for that job. It lists every .mp4, .avi, .mov, and .mkv in a directory, lets you pick one by index (cyclically, if you want), and hands you the path. It doesn't load video frames - that's not the point. It's a path-browsing node, and it plays the same role for video that a dropdown does for models.
How it works
Directory in, extension filter, index select - the same shape as its sibling List Image Path but stopping at the path rather than decoding frames. cycle works the same way: enable wraps the index with modulo, disable clamps it. The outputs:
video_paths_list(LIST) - the filenames in the folderselected_video_path(STRING) - the full path of the current pickcount(INT) - how many clips matched
That selected_video_path is the wire that matters: it feeds a video loader (VHS Load Video and friends) or a downstream video tool that takes a file path. If you're processing a whole folder of clips, wire the path to your loader, bump the index, and run - the cycle setting keeps you from walking off the end of the list.
Where it fits
This is the "which clip am I on" node for batch video pipelines - the kind of thing people build up for image-to-video, frame extraction, or preprocessing passes. The pack's Get File Name is a natural partner if your save naming needs the bare filename, and Indices Generator gives you the frame indices once the clip is in hand. Note the list output is filenames only, while selected_video_path is the joined full path - use the right one for what you're feeding.
Installing the pack
Search "Robe Nodes" in ComfyUI Manager, or:
cd ComfyUI/custom_nodes
git clone https://github.com/RobeSantoro/ComfyUI-RobeNodes
Restart ComfyUI. No video codecs, no model downloads - this node is pure file listing, so the pack's dependencies (opencv-python, google-genai, piexif, requests) are mostly for its other members.
Where people get burned
Same trap as the image variant: the default directory is a Windows path from the author's machine and won't exist for you. If the folder is missing, you get an empty list and a None path - no error, just nothing. And the listing is not recursive: it reads the top level of the directory only. One more quirk worth knowing: video_paths_list is filenames (no folder), so if a node downstream needs a full path, use selected_video_path, not the list.
It's a simple tool with a boring, reliable job - exactly what you want when the alternative is editing paths by hand on every run.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| directory | STRING | W:\ATTRAVERSO\gammaPre\masks_portrait_3.4 | β |
| index | INT | 0 | β |
| cycle | COMBO | enable | 2 options: enable, disable |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| video_paths_list | LIST | β |
| selected_video_path | STRING | β |
| count | INT | β |