Get Video From Video List (PixNodes)
Select one VIDEO object from a list
- video_list
- video
- index
- total
Pix_GetVideoFromVideoList is the "select one from a list" node for the case where your data is already VIDEO objects rather than file paths. Its sibling Pix_GetVideoFromPathList takes a path string and has a fancy preview player; this one takes the object list straight from Pix_CreateVideoList and just picks one - no preview, no path parsing, purely the selection logic. It's the smaller, dumber, and sometimes exactly-right version.
Inputs are video_list (a VIDEO-typed list) and index (INT, 0–999999, default 0). The node is declared with INPUT_IS_LIST, so it receives the entire upstream list as a unit - that's how it can index into it. The implementation is defensive in a way that matters for real graphs: it flattens nested lists, because ComfyUI sometimes hands you [[v1, v2], [v3]] when multiple upstream connections merge, and it skips None entries so a dead branch doesn't break the selection. The index wraps modulo the total, same looping behavior as the path variant - index 5 on a 2-item list gives you item 1 - which makes it safe to drive with an incrementing counter for round-robin processing.
Outputs are video (the selected VIDEO object), index (the resolved, wrapped index - useful when you're computing progress), and total (how many videos were in the list). That's it. Wire video into a Get Video Components or Save Video and you're done.
The one meaningful difference from the path-list node, beyond the input type: this one returns no preview UI, but it's still an OUTPUT_NODE, so it always executes. That "always runs" property is worth knowing - it's why this node works as a reliable picker mid-graph rather than being skipped by caching. And because it doesn't touch the filesystem (no temp links, no OpenCV), it's the cheaper node if you're only after the object.
Where it fits: after Pix_CreateVideoList, if you want to process clips one at a time through a chain that doesn't natively batch - you select via index, let your sampler or frame-extractor do its thing, then bump the index. It's also the natural landing spot for a loop counter: Pix_ForLoopStart's index output drives this node's index, and each loop pass processes a different clip. That's the pattern the two packs' nodes were built to compose into.
Install is the usual PixNodes route - ComfyUI Manager, search PixNodes, restart - or:
cd ComfyUI/custom_nodes
git clone https://github.com/pixixai/Comfyui-PixNodes
cd Comfyui-PixNodes
pip install -r requirements.txt
then restart. Requirements are just openai and Requests. No ffmpeg, no pyav, no model downloads.
One caveat, same as the whole video family: VIDEO objects are the new ComfyUI API. If you're on an older ComfyUI, Pix_CreateVideoList falls back to strings and this node has nothing native to select from - update first, then debug.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| video_list | VIDEO | — | |
| index | INT | 00–999999 | — |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| video | VIDEO | — |
| index | INT | — |
| total | INT | — |