Nodes/ComfyUI-MetadataCleaner/保存视频(去除元数据)
ComfyUI Node

保存视频(去除元数据)

Save a video with no trace of the workflow that made it

By Bigesila-B·Created 8 days ago·Updated a day ago· 1
保存视频(去除元数据)
  • video
  • 视频
  • 文件路径
filename_prefixCleanedVideo
video_formatauto

The image leak has a video cousin. Wan, LTX-Video, HunyuanVideo - whatever pipeline you're running, if it ends in a video save node, the output file can carry your generation details along for the ride. CleanMetadataSaveVideo (保存视频(去除元数据) in the node menu, this pack is Chinese-labeled) is the same play as its image sibling: hang it where the official save node goes, and the video comes out scrubbed on the way out.

What it is

It takes the native VIDEO object - the exact interface the core Save Video node uses - so it drops into any modern video workflow that already has one of those. One wire in, default settings, done. That's the whole pitch, and it's a good one.

How the cleaning works

Under the hood it's simple and careful. The node saves the VIDEO to a temp file, then hands it to ffmpeg. With video_format set to auto (the default) or mp4, that's a stream copy - -c copy plus metadata mapped away - so the streams are copied byte-for-byte with no re-encode. No quality loss, audio intact, framerate taken from the source, and MP4 gets +faststart so it starts playing before it's fully downloaded. Only webm (VP9 + Opus) and gif re-encode - with an auto-generated palette for the GIF - so you pick those when the format is the point, not when you want quality.

Inputs and outputs

Inputs: video (VIDEO), filename_prefix (default CleanedVideo), video_format (auto / mp4 / webm / gif). Outputs: 视频 (VIDEO, passed through) and 文件路径 (STRING). It's an output node - end of the line.

The ffmpeg requirement

The dependency to know about is ffmpeg. Images never need it; video absolutely does. The pack hunts for it in a sensible order - system PATH first, then a bundled ffmpeg.exe beside the ComfyUI root (portable installs ship one), then the copy imageio_ffmpeg provides - and it even checks that the ffmpeg it found has the codecs for what you asked, skipping lite builds that don't. If nothing qualifies you get a clear error; the fix is dropping a full ffmpeg build in the ComfyUI root or on PATH.

Gotchas and verification

Two gotchas worth remembering. First, this needs a ComfyUI recent enough to have the native VIDEO type at all - that's the 2025-era builds that ship the core Create Video / Save Video nodes. If you're on an old portable install, update before you go looking. Second, don't confuse "no metadata" with "wrong file." Verify the author's way:

ffprobe -show_format your_file.mp4

No comment or title in the tags and you're clean. And when you still see major_brand and handler_name in there - relax. Those are structural fields of the MP4 container itself, present in every MP4 ever made, and every metadata tool leaves them alone. That's not a leak.

Frames to video

One workflow note while you're here: if you're generating individual frames and want a video, chain the core Create Video node first to turn the frames into VIDEO, then feed this one. The README recommends it, and it's the right shape.

Category元数据清除

Inputs (3)

NameTypeDefaultDescription
videoVIDEO要保存的视频(与官方保存视频节点相同的接口)
filename_prefixSTRINGCleanedVideo
video_formatCOMBOautoauto:保持原格式,流复制无损清理(推荐)

Outputs (2)

NameTypeDescription
视频VIDEO
文件路径STRING