Path Filename Resolved (Video)
A video filename with the real values burned in, not tokens
- path_filename
- sidecar_text
Most filename builders hand you a template and let the saver resolve the tokens. Path Filename Resolved (Video) does the opposite: it resolves them, right in the node, using actual values you feed in. The output filename already says seed-1234, steps-30, cfg-7, and the real model name before it ever reaches a saver. That makes it the right choice when you're saving through a saver that doesn't know AUN's token syntax - like VHS Video Combine - or when you want to see the final name without running anything.
How it works
Structure is the usual: MainFolder (+ optional YYYY-MM-DD subfolder) + SubfolderA/SubfolderB, filename assembled from manual_name/auto_name (with the NameCrop/NameCropWords controls), prefixes, and suffixes, joined by delimiter. The difference is the optional inputs for actual values:
model_short/model_name- the model name (short goes in the filename, full goes in the sidecar'smodelfield).sampler_name,scheduler_name- sampler and scheduler strings.steps_value(INT),cfg_value(FLOAT),seed_value(INT) - the numbers, formatted assteps-<v>,cfg-<v>,seed-<v>(steps/cfg only when > 0, seed at 0 allowed).
The Model, Sampler, Scheduler, Steps, Cfg, Seed toggles decide which of those get included, and there's no way to include a token you haven't supplied a value for - it just skips it. You can wire these from an AUN Inputs node or an Extract Widget Value node to keep everything automatic.
The sidecar, which is the sleeper feature
There's an optional sidecar_format enum: choose Save to file and the node writes a .txt (or .json) next to the output in ComfyUI's output folder, documenting the main parameters. Either way the node always returns the sidecar text as its sidecar_text output. That's your poor-man's metadata - a text record of what made this video, without depending on video container metadata.
Outputs
path_filename(STRING) - the fully resolved final path+name. Wire into VHS Video Combine or any saver that takes a path string.sidecar_text(STRING) - the sidecar content, usable or just displayable.
When to reach for it
If you save video via VHS (Video Helper Suite - the pack even acknowledges it as an inspiration) or any standard saver that can't parse %token% placeholders, this is the node that bridges your nice filename logic to that saver. It's the video sibling of the image-side AUN Filename Resolver Preview V2.
Install
Part of AUN ComfyUI Nodes (loz2754):
cd ComfyUI/custom_nodes
git clone https://github.com/loz2754/AUN-ComfyUI-Nodes
or via ComfyUI Manager, then restart. Deps (piexif, opencv-python-headless, imageio-ffmpeg, requests) install via Manager; ffmpeg (system or imageio-ffmpeg) is what actually encodes video. No model files.
The one thing to keep straight: if you wire actual values and a saver that also resolves tokens, you'll get doubled names (seed-1234_seed-1234). Pick one resolution layer - this node is the "resolve here" option, so turn off token resolution in the saver.
Inputs (28)
| 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 | When Auto mode, keep only the first N words of 'auto_name'. |
| NameCropWords | INT | 11–6 | Max words from 'auto_name' to keep when NameCrop is On. |
| prefix_1 | STRING | Optional free-text prefix #1 to include before tokens. | |
| prefix_2 | STRING | Optional free-text prefix #2. | |
| Model | BOOLEAN | true | Insert model name token replaced by actual model string here. |
| Sampler | BOOLEAN | true | Insert sampler name. |
| Scheduler | BOOLEAN | true | Insert scheduler name. |
| Steps | BOOLEAN | true | Insert steps value formatted as 'steps-<v>' when > 0. |
| Cfg | BOOLEAN | true | Insert cfg value formatted 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 seed value formatted as 'seed-<v>' (0 allowed). |
| delimiter | STRING | String used to join parts (prefixes/tokens/suffixes) into the filename. | |
| auto_nameopt | STRING | Name | Auto mode name source. Cropped to the first N words when NameCrop is On. |
| model_shortopt | STRING | %model% | Actual model short name to insert when Model is On. |
| model_nameopt | STRING | Full model name (used in sidecar 'model' field). | |
| sampler_nameopt | STRING | %sampler% | Actual sampler name to insert when Sampler is On. |
| scheduler_nameopt | STRING | %scheduler% | Actual scheduler name to insert when Scheduler is On. |
| steps_valueopt | INT | 20 | Actual steps value (integer). |
| cfg_valueopt | FLOAT | 7.50 | Actual cfg value (float). |
| seed_valueopt | INT | 123456 | Actual seed value (integer). |
| sidecar_formatopt | COMBO | Output only (text) | Choose sidecar output format. 'Save to file' writes the .txt/.json into ComfyUI's output folder next to the output; the node always returns the sidecar text as its fourth output. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| path_filename | STRING | — |
| sidecar_text | STRING | — |