Save Video (Exact Filename)
SaveVideoExact for Wan 2.2 and Beyond
- video
Video renders are expensive - a single Wan 2.2 clip can eat twenty minutes of GPU time - so the last thing you want is a save node that numbers your output wan_00001_00002_.mp4 and makes you guess which file is which. SaveVideoExact is the exact-filename counterpart of the pack's image node, aimed squarely at ComfyUI's native VIDEO type that ships with the Wan 2.2 workflow: the official CreateVideo node assembles your image batch, fps, and optional audio into a VIDEO object, and this is the node that writes it to disk under a name you chose.
Same naming rules as the rest of the pack, and they're worth repeating once since they're the whole point: filename_prefix is the subfolder, filename is the exact name, path is ComfyUI/output/<prefix>/<filename>. Give it hero_shot and you get hero_shot.mp4, not hero_shot_00001_.mp4. Leave filename empty and it falls back to counter-style numbering, so a fully blank node behaves like a (thin) core save. No parsing the history API to find your file.
How it writes
Under the hood it calls the video container's own save_to() with a format and codec, and it's defensive about ComfyUI's churn:
formatis mp4 (default) or auto - auto resolves to mp4, since that's what the native path produces.codecis h264 (default) or auto - same idea, h264 unless you say otherwise.- If
overwriteis on and the file already exists, it deletes it before writing. That's a real-world fix: some container writers flat-out refuse to overwrite an existing file, and the error you'd get otherwise is a confusing "file exists" from deep inside av. Deleting first is ugly but reliable. - It also passes your workflow metadata into the mux - useful for the "drag the output back in" trick - but wrapped in a try/except so it quietly skips it on older ComfyUI builds whose
save_to()doesn't accept metadata.
The input list is short: video (the VIDEO tensor), filename_prefix, filename, format, codec, overwrite. That's it. Output node, nothing comes out, it just runs and gives you a file.
Install and the one caveat
Same story as the whole pack - it's a single tiny repo with no model downloads:
cd ComfyUI/custom_nodes
git clone https://github.com/windskyer/comfyui-save-exact
Then restart. Dependencies are numpy, Pillow, and av - all already in a current ComfyUI, so nothing extra installs. ComfyUI Manager can do it for you if you search "comfyui-save-exact."
The caveat: this node is only useful if your ComfyUI actually produces a VIDEO type, which means a recent enough build with native video support (Wan 2.2's official workflow, for instance). On an older install you'll find no VIDEO socket to plug in and no reason to use it. The error handling in the source shows it was written against a moving target - that's normal for the video side of ComfyUI in 2026 - so keep the core updated if the save starts misbehaving. For anything that renders a native video object, this is the one save node that remembers what you called it.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| video | VIDEO | — | |
| filename_prefix | STRING | — | |
| filenameopt | STRING | — | |
| formatopt | COMBO | mp4 | 2 options: mp4, auto |
| codecopt | COMBO | h264 | 2 options: h264, auto |
| overwriteopt | BOOLEAN | true | — |
Outputs (0)
No outputs