⚡ VHS Filenames To Path
Turn VideoHelperSuite's video output into a plain file path
- Filenames
- path
The ⚡ VHS Filenames To Path node exists because ComfyUI-VideoHelperSuite hides the actual file behind a custom output type. When VHS_VideoCombine finishes encoding a video it hands you a VHS_FILENAMES socket - that's not a string you can read, print, or hand to a node that expects a path. It's a bundle of data that VHS internally knows how to consume. This node unpacks it and hands you the boring, useful thing: the file path as a plain STRING.
It's about as small as a node gets. One input, one output, no widgets, no settings.
How it works
The Filenames input receives what VHS actually passes around: a tuple of (save_output, output_files), where save_output is a boolean and output_files is the list of files VHS wrote in this run. The node returns the last element of that list as your path output. That's the whole mechanism - it's a type-conversion / unwrap node, not a processor.
Why the last one? Because in a batch, VHS appends every file it writes, and the last file is the one you most recently produced. If you're only encoding one video, it's just the file.
What you actually do with it
The path output wires into anything that takes a filename string:
- Feed it into
VHS_LoadVideoPath'svideoinput for a second processing pass (e.g. take your combined video and load it again for upscaling or a filter pass). - Plug it into a text display node so you can see exactly where your render landed without digging through
output/. - Pass it to a custom node that expects a
STRINGpath - this is the main reason to bother converting.
Honestly, if you never feel the need for this node, don't install it. It's a convenience for the handful of workflows that treat the video file as a first-class citizen and need its location as text. It saves you from writing a tiny "get the last output path" helper yourself.
Where people get burned
Two things, both real and both in the code:
- It returns only the last file. If a single run of VHS_VideoCombine produced several files and you wanted an earlier one, this node can't give it to you.
- Temp vs. output files. VHS can save to ComfyUI's
tempdirectory (that's whatsave_output=falsemeans). The path this node returns points wherever the file actually is - so check whether it's pointing atoutput/ortemp/. A temp file is exactly what it sounds like: not guaranteed to survive until your next run.
Install
The whole pack (this node is one of seven in it) installs the usual ways:
- ComfyUI Manager: search "ComfyUI-Pronodes", install, restart.
- Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/yuvraj108c/ComfyUI-Pronodes
cd ComfyUI-Pronodes
pip install -r requirements.txt
That requirements file is just yt_dlp and imageio[ffmpeg] - nothing heavy. The one real prerequisite this specific node has is VideoHelperSuite itself, since VHS_FILENAMES is its type. Install Kosinkadink/ComfyUI-VideoHelperSuite first or nothing here will connect.
Also worth knowing: this pack is marked "still in development" by its author, and it's a side project from the same dev behind the popular TensorRT speed packs (ComfyUI-Upscaler-Tensorrt, ComfyUI-Rife-Tensorrt). Expect small, honest utility nodes - and occasionally a quirk, like this one silently preferring the last file.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| Filenames | VHS_FILENAMES | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| path | STRING | — |