Nodes/ComfyUI-AusBoss/Save Video πŸ†Ž
ComfyUI Node

Save Video πŸ†Ž

Saves a frame batch as mp4 (h264/h265, CPU or NVENC), webm (vp9/av1), ProRes mov, lossless ffv1 mkv, gif or webp - with optional muxed audio and the workflow embedded, so the file drags back into ComfyUI. pingpong bounces the clip for a seamless loop. Wire fps straight from Load Video πŸ†Ž to keep the source timing, or connect a core VIDEO to encode that whole video instead.

By ausbossΒ·Created about a month agoΒ·Updated 7 days agoΒ· 2
Save Video πŸ†Ž
  • frames
  • audio
  • video
    β—„fps16β–Ί
    β—„filename_prefixAusBoss/videoβ–Ί
    β—„crf19β–Ί
    β—„formatmp4 h264β–Ί
    β—„pingpongfalseβ–Ί
    β—„save_metadatatrueβ–Ί
    CategoryπŸ†Ž AusBoss/Video

    Inputs (9)

    NameTypeDefaultDescription
    fpsFLOAT160.01–240Playback frame rate; wire Load Video's fps output to match the source. A connected video input brings its own rate and overrides this widget. Fractional rates like 23.976 and 29.97 can be typed in.
    filename_prefixSTRINGAusBoss/videoSaved under the output folder; subfolders are created automatically.
    crfINT190–51Encode quality: lower is better and larger. 19 is visually lossless for h264; h265 and vp9 read the same scale (vp9 tolerates a few points higher).
    framesoptIMAGEBHWC frame batch to encode. Not needed when a video is connected.
    audiooptAUDIOOptional track muxed into the file, e.g. Load Video's audio output.
    videooptVIDEOOptional core VIDEO. When connected, its frames and audio supersede the frames and audio inputs, and its own frame rate wins over the fps widget; a differing widget rate is logged once to the console. ComfyUI core decodes the whole file into memory before this node sees a frame: that phase reports no progress and does not stop on Cancel, which takes effect once the encode starts. Wiring frames instead keeps the whole run interruptible.
    formatoptCOMBOmp4 h264Container and codec. mp4 h264 plays everywhere; mp4 h265 halves the size at the same quality where supported; the nvenc pair encodes on an NVIDIA GPU instead of the CPU (much faster, slightly larger); webm vp9 and webm av1 suit the web and mux Opus; mov prores is a ProRes HQ editing master; mkv ffv1 is bit-exact lossless and very large. gif and webp are silent, loop forever, and hold every frame in memory - keep those to short clips.
    pingpongoptBOOLEANfalsePlay the clip forward then backward so it loops seamlessly. Roughly doubles the frame count and the encode time; the first and last frames are not repeated at the turnaround.
    save_metadataoptBOOLEANtrueEmbed the prompt and workflow in the file, so an mp4 dragged back onto the canvas restores its graph. Turn off to share a file without your prompts and node graph inside it. gif and webp never carry metadata.

    Outputs (0)

    No outputs