Nodes/Comfyui-VideoConcat/Batch Filename Manager
ComfyUI Node

Batch Filename Manager

BatchFilename's whole job

By ahkimkoo·Created 12 months ago·Updated 12 months ago· 0
Batch Filename Manager
  • file_list
  • file_list
file

ComfyUI is the only practical path for chaining video models, and if you've ever finished generating three or four short clips and wanted them in one file, you've hit the boring part: nothing wants to hand you a list of videos. That's the whole job of BatchFilename (display name "Batch Filename Manager"). It's the shopping cart for the sibling VideoConcat node in this pack - you feed it one file path at a time, it hands back a growing list, and you wire that list into the concat node. Nothing more, nothing less.

Honest framing up front: this is a small, niche pack with basically zero community footprint. It's a DIY alternative to the file-list plumbing in the much bigger VideoHelperSuite ecosystem. If you already use VHS you don't need this node. If you want a minimal two-node way to append clips into one mp4, it's perfectly fine.

How it works

Under the hood it's dead simple and stateless. It takes the file string you give it, validates that it's a non-empty path (it checks the format, not that the file actually exists - that's on you), normalizes it by stripping whitespace and resolving absolute paths, then appends it to whatever file_list came in. If the incoming list is a string or a tuple it coerces it to a list first. Then it dedupes while preserving insertion order, so adding the same clip twice silently drops the second one. The IS_CHANGED method hashes the inputs, which means ComfyUI re-runs it whenever the path changes - no stale-cache surprises.

The inputs and outputs that matter

There are only three wires, and you'll actually set one:

  • file (required, STRING) - a single video file path. There's no file browser here; you type or paste the path, or wire it from whatever node outputs a path string. The tooltip says exactly that: "the single file path to add to the list."
  • file_list (optional, *) - the previous list, to keep accumulating. First use, leave it empty.
  • file_list (output, *) - the updated list, deduped and normalized.

That * wildcard type is worth knowing about before it bites you. Because the type is "any", this output plugs cleanly into the pack's own VideoConcat (which also accepts *), but it won't snap onto nodes that demand a typed STRING or list input. It's glue for this pack, not a universal connector.

Installing it

Standard custom-node dance. ComfyUI Manager can find it by searching the pack title, "Comfyui-VideoConcat". Or, by hand:

cd ComfyUI/custom_nodes
git clone https://github.com/ahkimkoo/Comfyui-VideoConcat
cd Comfyui-VideoConcat
pip install -r requirements.txt

Then restart ComfyUI. No model files to download - the dependencies are just ffmpeg-python and typing-extensions. The pack does want FFmpeg 4.0+ on your PATH, though that's really the concat half's requirement; this filename node never touches FFmpeg itself.

Where people get burned

  • Typos are invisible. The node validates path shape, not existence. A mistyped path sails through here and only blows up later when VideoConcat tries to read it.
  • The GitHub README still says git clone https://github.com/your-repo/... - a template leftover. Use the real URL above, not the one in the README.
  • It's not a VHS replacement. The README leans hard on VideoHelperSuite compatibility, but the output here is a plain Python list of strings, not the richer VHS_FILENAMES tuple format. Treat it as pack-internal plumbing.

So: type your paths carefully, chain one BatchFilename into the next to build up the list, and feed the result straight into VideoConcat. If that's the gap you needed filled, this node fills it without ceremony.

Categoryvideo/utils

Inputs (2)

NameTypeDefaultDescription
fileSTRING要添加到列表的单个文件路径
file_listopt*现有的文件路径列表(可选)

Outputs (1)

NameTypeDescription
file_list*