Comfy-Org / Comfy-Org/ComfyUI

filename_prefix formatting NOT WORKING in the default Save Video node

Open
#10,479 4 comments 5 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

https://blenderneko.github.io/ComfyUI-docs/Interface/SaveFileFormatting/

### Actual Behavior

The files in the output are created with names like "ComfyUI_%KSamplerAdvanced.noise_seed%_0001" instead of taking values from the appropriate node as instructed within the %% brackets. All the nodes' title names and S&R names are default. The "%date:FORMAT%" information prefix (and yes, I've changed it to "%date:yyyy-MM-dd%" before you ask) actually breaks the output and produces 0-byte files with a "%date" filename and no file format - not mp4, or anything else - just a blank empty file.

### Steps to Reproduce

1. Input the text "%LoadImage.image%_%KSamplerAdvanced.noise_seed%" into the "filename_prefix" widget of Save Video node;
2. Failure...???

### Debug Logs

```powershell
Adding extra search path custom_nodes C:\AI Generation Instruments\ComfyUI\custom_nodes
Adding extra search path download_model_base C:\AI Generation Instruments\ComfyUI\models
Adding extra search path custom_nodes C:\AI Generation Instruments\ComfyUI\resources\ComfyUI\custom_nodes
Setting output directory to: C:\AI Generation Instruments\ComfyUI\output
Setting input directory to: C:\AI Generation Instruments\ComfyUI\input
Setting user directory to: C:\AI Generation Instruments\ComfyUI\user
[START] Security scan
[DONE] Security scan
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-10-25 14:43:22.741
** Platform: Windows
** Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
** Python executable: C:\AI Generation Instruments\ComfyUI\.venv\Scripts\python.exe
** ComfyUI Path: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI
** ComfyUI Base Folder Path: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI
** User directory: C:\AI Generation Instruments\ComfyUI\user
** ComfyUI-Manager config path: C:\AI Generation Instruments\ComfyUI\user\default\ComfyUI-Manager\config.ini
** Log path: C:\AI Generation Instruments\ComfyUI\user\comfyui.log
[ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.

Prestartup times for custom nodes:
2.7 seconds: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely.
Total VRAM 8192 MB, total RAM 32697 MB
pytorch version: 2.8.0+cu129
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3070 : cudaMallocAsync
Using pytorch attention
Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
ComfyUI version: 0.3.66
[Prompt Server] web root: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app
ComfyUI-GGUF: Allowing full torch compile
[save_image_extended] AVIF is supported! Woohoo!
[save_image_extended] JXL is not supported. To add it: pip install jxlpy
[save_image_extended] You will need a valid MSVC env to build the wheel
[save_image_extended] version: 2.64
### Loading: ComfyUI-Manager (V3.36)
[ComfyUI-Manager] network_mode: public
### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)

Import times for custom nodes:
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\ComfyUI-NodeReset
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\multi-lora-stack
0.0 seconds: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI\custom_nodes\websocket_image_save.py
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\comfyui-lora-tuner
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\lora-info
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\save-image-extended-comfyui
0.0 seconds: C:\AI Generation Instruments\ComfyUI\resources\ComfyUI\custom_nodes\ComfyUI-Manager
0.0 seconds: C:\AI Generation Instruments\ComfyUI\custom_nodes\ComfyUI-GGUF

[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: (sqlite3.OperationalError) unable to open database file
(Background on this error at: https://sqlalche.me/e/20/e3q8)
Starting server

To see the GUI go to: http://127.0.0.1:8000
comfyui-frontend-package not found in requirements.txt
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
comfyui-frontend-package not found in requirements.txt
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
[DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
FETCH ComfyRegistry Data: 5/102
FETCH ComfyRegistry Data: 10/102
FETCH ComfyRegistry Data: 15/102
FETCH ComfyRegistry Data: 20/102
FETCH ComfyRegistry Data: 25/102
FETCH ComfyRegistry Data: 30/102
FETCH ComfyRegistry Data: 35/102
FETCH ComfyRegistry Data: 40/102
FETCH ComfyRegistry Data: 45/102
FETCH ComfyRegistry Data: 50/102
FETCH ComfyRegistry Data: 55/102
FETCH ComfyRegistry Data: 60/102
FETCH ComfyRegistry Data: 65/102
FETCH ComfyRegistry Data: 70/102
FETCH ComfyRegistry Data: 75/102
FETCH ComfyRegistry Data: 80/102
FETCH ComfyRegistry Data: 85/102
FETCH ComfyRegistry Data: 90/102
FETCH ComfyRegistry Data: 95/102
FETCH ComfyRegistry Data: 100/102
FETCH ComfyRegistry Data [DONE]
[ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
[ComfyUI-Manager] All startup tasks have been completed.
got prompt
Using pytorch attention in VAE
Using pytorch attention in VAE
VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
Using scaled fp8: fp8 matrix mult: False, scale input: False
CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
Requested to load WanTEModel
loaded partially 5678.8 5667.477024078369 0
0 models unloaded.
loaded partially 5667.477024173737 5667.477024078369 0
Requested to load WanVAE
loaded completely 509.2578125 242.02829551696777 True
gguf qtypes: F16 (694), Q3_K (400), F32 (1)
model weight dtype torch.float16, manual cast: None
model_type FLOW
Requested to load WAN21
0 models unloaded.
loaded partially 128.0 127.9981689453125 0
Attempting to release mmap (574)
100%|██████████| 2/2 [02:29<00:00, 74.52s/it]
gguf qtypes: F16 (694), Q3_K (400), F32 (1)
model weight dtype torch.float16, manual cast: None
model_type FLOW
Requested to load WAN21
0 models unloaded.
loaded partially 128.0 127.9981689453125 0
Attempting to release mmap (574)
100%|██████████| 2/2 [02:29<00:00, 74.66s/it]
Requested to load WanVAE
0 models unloaded.
loaded partially 128.0 127.9998779296875 0
Prompt executed in 375.66 seconds
```

### Other

Including my Workflow for potential troubleshooting [WAN 2.2 I2V Workflow With Low VRAM.json](https://github.com/user-attachments/files/23141628/WAN.2.2.I2V.Workflow.With.Low.VRAM.json)

Image

Image

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.