VHS_FILENAMES_STRING_LaVIT
Turn VHS filename output into a plain path you can actually use
- filenames
- STRING
This node does one boring thing, and it's the reason you can wire Video Helper Suite into this pack at all. The LaVIT understanding and reconstruction nodes want a plain file path as a string. Video Helper Suite hands you paths wrapped up in a VHS_FILENAMES tuple that nothing else accepts. VHS_FILENAMES_STRING_LaVIT unwraps that tuple and hands back a normal STRING - the last filename in the list.
Why you'd reach for it
In the pack's own video reconstruction workflow, the chain looks like this: VHS_LoadVideo → this node → VideoLaVITVideoReconstruction. The reconstruction node's video_path input is a plain string pointing at a video file on disk, and VHS_LoadVideo won't give you one directly. This node is the adapter. It's also your friend in any streaming loop where you save a clip with VHS_VideoCombine and want to feed that saved file's path back into the graph. The "StreamingT2V" category is a hint - that's the intended use.
How it works
The mechanism is three lines in the source. VHS_FILENAMES is a tuple where the second element is a list of filename strings. The node does filenames[1][-1] - take that list, return its last entry. That's it. No model, no GPU, no magic. If the list is empty you'll get an indexing error, which in practice means you wired it to a node that hasn't saved anything yet.
The one input that matters
filenames- theVHS_FILENAMESoutput, which comes fromVHS_LoadVideo,VHS_VideoCombine, or any other Video Helper Suite node that emits it. Wire it in and the node spits out aSTRINGyou can feed tovideo_pathinputs elsewhere.
You'll need Video Helper Suite installed for the VHS_FILENAMES type to exist at all. It's a separate pack, and ComfyUI Manager handles it in one click.
Install
Same as the rest of this pack - ComfyUI Manager, search "ComfyUI-LaVIT", or:
cd ComfyUI/custom_nodes
git clone https://github.com/chaojie/ComfyUI-LaVIT
Restart ComfyUI. This node itself needs nothing beyond the pack import, though the pack as a whole drags in the heavy VideoLaVIT/requirements.txt deps if you run any of the real nodes.
Where people get burned
Not a lot to burn here - it's a trivial adapter. The two real gotchas are upstream: the pack has a single commit from April 2024 and hasn't been touched since, and the VHS_FILENAMES type only exists if Video Helper Suite is present. If ComfyUI complains the input type doesn't exist, that's a VHS install problem, not this node's. And remember it returns the last filename - fine for a single-save workflow, surprising if you're saving multiple files per run and assumed you'd get the first.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| filenames | VHS_FILENAMES | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |