Nodes/ComfyUI-ZoeyTool/Zoey - 智能视频存储器
ComfyUI Node

Zoey - 智能视频存储器

Dated folders, numbered names, sidecar metadata

By liangzoey·Created about a year ago·Updated 3 days ago· 5
Zoey - 智能视频存储器
  • processed_videos
    output_directoryD:/视频输出
    prefixbatch
    metadata
    start_index1
    digits4
    date_foldertrue

    EnhancedVideoSaver is the tidy-up step at the end of a video batch job. If you've ever let ComfyUI generate a folder full of ComfyUI_00001.mp4-style outputs and then had to sort out which clip was which, this node exists to save you from that. Give it the list of processed videos from the pack's own VideoBatchProcessor, and it copies each one into an organized destination: optionally inside a date folder, with a clean prefix_0001.mp4 name, and - if you want - a matching .txt metadata sidecar recording source path, format, and your own notes.

    It's from comfyui-ZoeyTool (the Zoey Tool/视频处理 group), and it's the third leg of a three-node video pipeline that pack ships: BatchVideoLoader → VideoBatchProcessor → EnhancedVideoSaver. Batch load, re-encode, save neatly. The workflow takes maybe two minutes to wire up and then handles whole folders of clips for you.

    How it works

    The input is processed_videos, which is a VIDEO_BATCH. Important detail: this type is really just a Python list, and this saver specifically expects the dicts that VideoBatchProcessor emits - each entry carrying source, output, and format. It copies each file into output_directory under a new name built from prefix and a zero-padded start_index (digits wide, default 4 → batch_0001.mp4), keeping the original extension. With date_folder on (default), it nests everything under a YYYYMMDD subdirectory, so a week of batches never collides.

    metadata is optional free text. Fill it in and every copied file gets a sibling *.txt with the metadata plus the source path, format, and a timestamp - genuinely useful when you're farming out clips for review and want to know which run each one came from. No video is re-encoded here; it's a copy-and-rename job, so it's instant and lossless.

    There are no outputs - this is a terminal node. It's the end of the line, you wire the saver's output into nothing.

    Installing it

    Standard for this pack. In ComfyUI Manager, search comfyui-ZoeyTool, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/liangzoey/comfyui-ZoeyTool.git
    cd comfyui-ZoeyTool
    pip install -r requirements.txt
    

    Restart ComfyUI. This node itself is pure shutil file-copying, so no extra dependencies past the pack core.

    Where people get burned

    The number one confusion is feeding it the wrong kind of VIDEO_BATCH. If you wire in the raw file list straight from the pack's BatchVideoLoader - or from some other pack's video loader - the saver gets plain strings, not dicts with source/output/format keys, and it silently saves nothing while looking totally fine. That chain is deliberate: BatchVideoLoader → VideoBatchProcessor → this node, and only the middle one produces the format this node understands.

    Second gotcha: the default output_directory is a Windows D:/视频输出 path that won't exist as written on most machines - set an absolute path you can find. And third, note it's a copy, not a move: your processed originals stay in the processed subfolder the processor created, and the date-folder copy is a second set. If disk space is tight, remember you now have three copies of the same footage floating around (source, processed, dated export).

    CategoryZoey Tool/视频处理

    Inputs (7)

    NameTypeDefaultDescription
    processed_videosVIDEO_BATCH
    output_directorySTRINGD:/视频输出
    prefixSTRINGbatch
    metadataoptSTRING
    start_indexoptINT1
    digitsoptINT41–6
    date_folderoptBOOLEANtrue

    Outputs (0)

    No outputs