Nodes/YG Custom Nodes/YG Video Collector
ComfyUI Node

YG Video Collector

YG Video Collector is your review shelf

By mallikarjunaraokoliparthi·Created 2 months ago·Updated about a month ago· 0
YG Video Collector
  • video
  • video
collection_iddefault
enabledtrue

Generate ten videos with slightly different seeds and you'll have ten files scattered in ComfyUI/output/ with names you can't tell apart. YG Video Collector fixes that by being a pass-through node that copies every video it sees into one tidy per-collection folder - then gives you a grid UI to preview, pick, and download the ones that matter. Think of it as a review shelf that fills itself as you queue.

How it works

You drop it between your video generator and your Save Video node:

Image to Video → YG Video Collector → Save Video

It takes the VIDEO object, figures out where the file is (it tries a few known shapes - direct paths, object attributes like file/filename, or a save_to() method), and copies it into ComfyUI/output/yg_collector/<collection_id>/ with a timestamped name. Every entry is recorded in an _index.json alongside the collection, so the node always knows what's in there. The web extension then renders that folder as a gallery of ffmpeg-generated thumbnails you can play, select, delete, or zip up and download in one click.

It's an output node, so it always runs - and it forwards the video it received straight through, which means putting it in the path doesn't change your actual save at all. It's purely additive: the copy in the collector is a second copy, and your Save Video still does its thing.

The inputs that matter

Only three, and you'll only touch one of them:

  • video - wire your generator's output here.
  • collection_id - the shelf name. Different IDs = separate folders, so "draft" vs "final" or one per project works nicely.
  • enabled - set it to false to stop collecting without deleting the node or unwiring anything. Handy when you want one workflow to serve both collecting and non-collecting runs.

Output: video, which is just the input passed through.

Installing it

It ships in the comfyui_yg_nodes pack (MIT, author Mallikarjuna Rao Koliparthi, published as "YG Custom Nodes" v1.0.4). No extra Python deps - the pack's pyproject declares none - though it does shell out to ffmpeg for thumbnails, so have a working ffmpeg on your PATH (ComfyUI installs usually do). Install via ComfyUI Manager (search comfyui_yg_nodes) or:

cd ComfyUI/custom_nodes
git clone https://github.com/mallikarjunaraokoliparthi/comfyui_yg_nodes.git

Restart ComfyUI and it appears under YG_Nodes.

Where it gets fiddly

The one real trap is that VIDEO is a relatively new ComfyUI type and not every video node produces one in the same shape. The collector's path-detection is best-effort: it's written to handle the common cases, but if your generator hands back something exotic, the copy silently fails and you just get an empty shelf. Test with one generation before you run a batch of thirty.

Also remember disk space - it's a copy, so a collection of 30 five-second 720p clips is 30 files, not 30 references. You can prune from the gallery UI, which deletes the copy (and its cached thumbnail) but never touches the original in your output folder. For anyone doing multi-shot video work and comparing candidates side by side, that alone is worth the install.

CategoryYG_Nodes

Inputs (3)

NameTypeDefaultDescription
videoVIDEO
collection_idSTRINGdefault
enabledBOOLEANtrue

Outputs (1)

NameTypeDescription
videoVIDEO