Path Filename Video V2
The video filename builder built for the V2 save pipeline
- path_filename
- date_format
If you're saving video from a new AUN workflow, this is the filename node to reach for. Path Filename Video V2 is the recommended video path/filename builder: it outputs one combined path_filename string plus a date_format, designed to plug straight into AUN Save Video V2 with no adapter and no second thought. It's the video twin of AUN Path Filename V2, and it follows the same "one wire, standardized %token% syntax" philosophy the whole V2 family settled on.
What it does
The path is MainFolder + optional dated subfolder + SubfolderA/SubfolderB. The filename is assembled from a base name (manual or auto), two optional prefixes and two suffixes, and whatever tokens the toggles switch on: %model_short%, %sampler_name%, %scheduler%, %date%, plus bare %steps%, %cfg%, and %seed%. Note that last bit: like the legacy video builder, steps/cfg/seed stay bare so the V2 saver can format them as steps-30_cfg-7_seed-1234 - V2 keeps that contract on purpose, it's just packaged more cleanly now.
The differences from the legacy node that make it worth upgrading:
- One output to wire.
path_filenamecarries everything; no separatepath/filenamesockets to keep in sync. date_formatoutput. The same format enum that controls the dated subfolder is returned as a second output, so the saver and the builder agree on date naming. That's the "direct use with Save Video V2" contract - the README says exactly that.- A
Datetoken in the filename itself (the legacy version only did dated subfolders). - No legacy NameCrop toggles.
max_num_wordshandles auto-name cropping, and the deprecatedInclude_Lorastoggle is gone - LoRA tokens live elsewhere now.
The inputs you'll set
MainFolder- root (e.g.Videos). Keep it short; long paths still bite on Windows.name_mode+manual_name/auto_name- Manual for a fixed name, Auto to pull from a label or prompt node (cropped bymax_num_words, 0 = no limit).Date_Subfolder+date_format- dated folders in your chosen format.Model/Sampler/Scheduler/Steps/Cfg/Seed/Date- the token toggles. This is where filename personality comes from.
Outputs: path_filename and date_format, both STRING.
Install
It's in AUN ComfyUI Nodes (loz2754):
cd ComfyUI/custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
or ComfyUI Manager → search "AUN ComfyUI Nodes" → install → restart. Deps (piexif, opencv-python-headless, imageio-ffmpeg, requests) install via Manager. Video actually needs ffmpeg - the pack's imageio-ffmpeg dependency covers it, and a system ffmpeg on PATH is the most reliable fallback. No model downloads.
Gotchas
Mixed generations bite hardest here: feed V2's path_filename into a legacy saver that expects separate path/filename, and it won't know what to do. Match the V2 node with the V2 saver (or use the Resolved node when you're saving through VHS Video Combine instead). And remember the bare-token contract - if you see %steps% in a filename, the saver that received it doesn't do V2 formatting. Pair it right and you'll stop thinking about filenames entirely, which is the whole point.
Inputs (21)
| 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. |
| 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. |
| 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. |
| Date | BOOLEAN | true | Include the %date% placeholder in the filename template. |
| date_format | COMBO | Date format used for the dated subfolder output and returned for downstream V2 saver nodes. | |
| auto_nameopt | STRING | Name | Auto mode name source. Cropped using max_num_words. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| path_filename | STRING | — |
| date_format | STRING | — |