Nodes/AUN ComfyUI Nodes/Path Filename Video V2
ComfyUI Node

Path Filename Video V2

The video filename builder built for the V2 save pipeline

By loz2754·Created 8 months ago·Updated about 24 hours ago· 5
Path Filename Video V2
    • path_filename
    • date_format
    MainFolderVideos
    Date_Subfoldertrue
    SubfolderAWan22
    SubfolderB
    manual_nameName
    name_modefalse
    prefix_1
    prefix_2
    Modeltrue
    Samplertrue
    Schedulertrue
    Stepstrue
    Cfgtrue
    suffix_1
    suffix_2
    Seedtrue
    delimiter
    max_num_words1
    Datetrue
    date_format
    auto_nameName

    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_filename carries everything; no separate path/filename sockets to keep in sync.
    • date_format output. 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 Date token in the filename itself (the legacy version only did dated subfolders).
    • No legacy NameCrop toggles. max_num_words handles auto-name cropping, and the deprecated Include_Loras toggle 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 by max_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.

    CategoryAUN Nodes/File Management

    Inputs (21)

    NameTypeDefaultDescription
    MainFolderSTRINGVideosTop-level folder under which the path will be created (e.g., Videos).
    Date_SubfolderBOOLEANtrueInsert a YYYY-MM-DD subfolder beneath MainFolder.
    SubfolderASTRINGWan22Optional subfolder A (e.g., project/model name).
    SubfolderBSTRINGOptional subfolder B (e.g., variant).
    manual_nameSTRINGNameManual name value used only when Name Mode is Manual.
    name_modeBOOLEANfalseManual: use 'manual_name'. Auto: use 'auto_name' input.
    prefix_1STRINGOptional free-text prefix #1 to include before tokens.
    prefix_2STRINGOptional free-text prefix #2.
    ModelBOOLEANtrueInsert the %model_short% placeholder.
    SamplerBOOLEANtrueInsert the %sampler_name% placeholder.
    SchedulerBOOLEANtrueInsert the %scheduler% placeholder.
    StepsBOOLEANtrueInsert the bare %steps% placeholder. AUN Save Video formats it as steps-<v> when > 0.
    CfgBOOLEANtrueInsert the bare %cfg% placeholder. AUN Save Video formats it as cfg-<v> when > 0.
    suffix_1STRINGOptional free-text suffix #1 placed after tokens.
    suffix_2STRINGOptional free-text suffix #2.
    SeedBOOLEANtrueInsert the bare %seed% placeholder. AUN Save Video formats it as seed-<v> (0 allowed).
    delimiterSTRING String used to join parts (prefixes/tokens/suffixes) into the filename.
    max_num_wordsINT10–32Maximum number of words to keep from auto_name. Set to 0 for no limit.
    DateBOOLEANtrueInclude the %date% placeholder in the filename template.
    date_formatCOMBODate format used for the dated subfolder output and returned for downstream V2 saver nodes.
    auto_nameoptSTRINGNameAuto mode name source. Cropped using max_num_words.

    Outputs (2)

    NameTypeDescription
    path_filenameSTRING
    date_formatSTRING