Path Filename Video (Legacy)
The legacy video filename builder that leaves tokens to the saver
- path
- filename
- path_filename
Video filenames are the worst of it: long model names, a seed you want to keep for reproducibility, and dates that drift. Path Filename Video is the legacy video builder from the AUN pack - the one that outputs separate path and filename wires for workflows that already use that pattern. It works, it's maintained, but if you're building new it's not the one you want; its V2 successor is. This article is mostly for people inheriting an older workflow.
What it does
Same bones as the image Path Filename: MainFolder + optional YYYY-MM-DD subfolder + SubfolderA/SubfolderB, then a filename assembled from prefixes, a base name, and tokens. But the video version has a distinct quirk you need to understand: Steps, Cfg, and Seed leave their tokens bare (%steps%, %cfg%, %seed% with no formatting), and it's the saver that turns them into steps-30_cfg-7_seed-1234 style text. So this node hands a half-finished template to AUN Save Video, which finishes it. That's the "kept for backward compatibility" contract - old savers expect bare tokens, so the builder keeps producing them.
The other inputs mirror the family: manual_name/name_mode (Manual vs Auto from auto_name), the legacy NameCrop/NameCropWords toggles, prefix_1/2 and suffix_1/2, Model/Sampler/Scheduler toggles, a legacy Include_Loras toggle that appends %loras%, and delimiter. max_num_words crops the auto name (0 = no limit).
Outputs: path, filename, and also path_filename (the combined string) - it emits all three so it can serve both old multi-socket savers and newer single-string ones. Handy, and one of the few legacy nodes that thought ahead.
When to use it
Honestly? When it's already in a workflow you downloaded. If you're wiring a new save path, the pack's docs are unambiguous: use AUN Path Filename Video V2 with AUN Save Video V2, which standardized on one path_filename output plus a date_format output and proper %token% syntax. V2 also adds the Date token to the filename itself, which this legacy version lacks (it only does the dated subfolder).
Install
Part of AUN ComfyUI Nodes (loz2754):
cd ComfyUI/custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
or ComfyUI Manager → "AUN ComfyUI Nodes" → install → restart. Deps: piexif, opencv-python-headless, imageio-ffmpeg, requests (Manager handles them). Video output additionally needs ffmpeg available - the pack lists imageio-ffmpeg as the fallback, but a system ffmpeg on PATH is the more reliable route if video saves misbehave.
The gotcha
Because it leaves %steps%/%cfg%/%seed% bare, feeding this node's output into a saver that doesn't do the formatting gives you literal %steps% in your filename. That's not a bug - it's the legacy contract. If you see that, you've mixed a legacy builder with a saver that expects resolved values, and the fix is to use the V2 pair (or the Resolved node below).
Inputs (22)
| Name | Type | Default | Description |
|---|---|---|---|
| MainFolder | STRING | Videos | Top-level folder under which the path will be created (e.g., Videos). |
| Date_Subfolder | BOOLEAN | true | Insert a YYYY-MM-DD subfolder beneath MainFolder. |
| SubfolderA | STRING | Wan22 | Optional subfolder A (e.g., project/model name). |
| SubfolderB | STRING | Optional subfolder B (e.g., variant). | |
| manual_name | STRING | Name | Manual name value used only when Name Mode is Manual. |
| name_mode | BOOLEAN | false | Manual: use 'manual_name'. Auto: use 'auto_name' input. |
| NameCrop | BOOLEAN | true | Legacy auto-name cropping toggle kept for older workflows. When Off, auto_name is not cropped. |
| NameCropWords | INT | 11–6 | Legacy auto-name crop count kept for older workflows. |
| prefix_1 | STRING | Optional free-text prefix #1 to include before tokens. | |
| prefix_2 | STRING | Optional free-text prefix #2. | |
| Model | BOOLEAN | true | Insert the %model_short% placeholder. |
| Sampler | BOOLEAN | true | Insert the %sampler_name% placeholder. |
| Scheduler | BOOLEAN | true | Insert the %scheduler% placeholder. |
| Steps | BOOLEAN | true | Insert the bare %steps% placeholder. AUN Save Video formats it as steps-<v> when > 0. |
| Cfg | BOOLEAN | true | Insert the bare %cfg% placeholder. AUN Save Video formats it as cfg-<v> when > 0. |
| Include_Loras | BOOLEAN | true | Legacy LoRA token toggle kept for older workflows. When On, appends %loras% to the filename. |
| suffix_1 | STRING | Optional free-text suffix #1 placed after tokens. | |
| suffix_2 | STRING | Optional free-text suffix #2. | |
| Seed | BOOLEAN | true | Insert the bare %seed% placeholder. AUN Save Video formats it as seed-<v> (0 allowed). |
| delimiter | STRING | String used to join parts (prefixes/tokens/suffixes) into the filename. | |
| max_num_words | INT | 10–32 | Maximum number of words to keep from auto_name. Set to 0 for no limit. |
| auto_nameopt | STRING | Name | Auto mode name source. Cropped using max_num_words. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| path | STRING | — |
| filename | STRING | — |
| path_filename | STRING | — |