Nodes/AUN ComfyUI Nodes/Path Filename Video (Legacy)
ComfyUI Node

Path Filename Video (Legacy)

The legacy video filename builder that leaves tokens to the saver

By loz2754·Created 8 months ago·Updated a day ago· 5
Path Filename Video (Legacy)
    • path
    • filename
    • path_filename
    MainFolderVideos
    Date_Subfoldertrue
    SubfolderAWan22
    SubfolderB
    manual_nameName
    name_modefalse
    NameCroptrue
    NameCropWords1
    prefix_1
    prefix_2
    Modeltrue
    Samplertrue
    Schedulertrue
    Stepstrue
    Cfgtrue
    Include_Lorastrue
    suffix_1
    suffix_2
    Seedtrue
    delimiter
    max_num_words1
    auto_nameName

    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).

    CategoryAUN Nodes/File Management

    Inputs (22)

    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.
    NameCropBOOLEANtrueLegacy auto-name cropping toggle kept for older workflows. When Off, auto_name is not cropped.
    NameCropWordsINT11–6Legacy auto-name crop count kept for older workflows.
    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.
    Include_LorasBOOLEANtrueLegacy LoRA token toggle kept for older workflows. When On, appends %loras% to the filename.
    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.
    auto_nameoptSTRINGNameAuto mode name source. Cropped using max_num_words.

    Outputs (3)

    NameTypeDescription
    pathSTRING
    filenameSTRING
    path_filenameSTRING