Nodes/H3MD Director (H3MD 导演台)/H3MD Save Video Interp
ComfyUI Node

H3MD Save Video Interp

Saves the H3MD Loop result straight from its segment cache (mp4 H.264/H.265 + AAC, gif, webp or a PNG sequence), chunk by chunk (automatic size from free VRAM / RAM) - RAM never holds the whole clip. Optional RIFE interpolation (ComfyUI-VFI's model and options). Replaces RIFE Frame Interpolation + Video Combine / Create Video + Save Video after H3MD Loop.

By 1113800942·Created 4 days ago·Updated about 7 hours ago· 11
H3MD Save Video Interp
  • segments
  • video_path
  • frame_count
  • video
  • preview
◄filename_prefixvideo/H3MD►
◄output_folder►
◄interpolatefalse►
◄target_fps24.0►
◄scale1.00►
◄model_nameflownet.pkl►
◄batch_size8►
◄use_fp16true►
◄formatvideo/h264-mp4►
◄pix_fmtyuv420p►
◄crf19►
◄loop_count0►
◄trim_to_audiofalse►
◄save_metadatatrue►
◄save_outputtrue►
◄delete_cache_after_savefalse►
CategoryMiniMax H3/H3MD

Inputs (17)

NameTypeDefaultDescription
segmentsH3MD_SEGMENTSlong video: H3MD Loop Sampler output 'long video'.
filename_prefixSTRINGvideo/H3MDLike SaveVideo: <prefix>_00001_.mp4 (subfolders allowed, %date% vars).
output_folderSTRINGEmpty = ComfyUI's output folder. Otherwise an absolute folder.
interpolateBOOLEANfalseOn: RIFE frame interpolation (ComfyUI-VFI's model) 24 fps -> target_fps. Off: the H3MD frames are written unchanged (the RIFE options below are greyed out).
target_fpsFLOAT24.01–240Frame rate of the saved file. interpolate on: RIFE target (e.g. 30, 48, 60). interpolate off: the file is still written at this rate - anything but 24 plays faster/slower than real time and the audio no longer matches (warned in the log).
scaleFLOAT1.000.25–4RIFE flow processing scale. Lower values process faster but may reduce quality (output size is unchanged).
model_nameCOMBOflownet.pklRIFE model (ComfyUI-VFI's list / locations / auto download).
batch_sizeINT81–32Frames interpolated in parallel (VRAM).
use_fp16BOOLEANtrueHalf precision RIFE (CUDA only).
formatCOMBOvideo/h264-mp4h264/h265-mp4: video + AAC audio. gif / webp: animated image, no audio. png-sequence: a folder of numbered PNGs, no audio. Every format is written chunk by chunk.
pix_fmtCOMBOyuv420ph264/h265-mp4 only. yuv420p = plays everywhere; yuv420p10le = 10 bit (less banding, not every player).
crfINT190–51h264/h265-mp4 only. Quality (default 19 like Video Combine; lower = better/larger).
loop_countINT00–100gif / webp only: 0 = loop forever, n = play n more times (like Video Combine).
trim_to_audioBOOLEANfalseh264/h265-mp4 only: end the video with the audio (like Video Combine).
save_metadataBOOLEANtrueEmbed the prompt + workflow (like Video Combine): mp4 tags, first PNG of a sequence; gif / webp: an extra <file>.png first frame carries them.
save_outputBOOLEANtrueOn: save into the output folder (or output_folder). Off: ComfyUI's temp folder (cleared on restart) - still previewable below.
delete_cache_after_saveBOOLEANfalseDelete the H3MD segment cache after the video file was fully written. Off (default): keep it, e.g. to re-render single segments with resume_from_cache or to save again. The folder is shown below.

Outputs (4)

NameTypeDescription
video_pathSTRING—
frame_countINT—
videoVIDEO—
previewH3MD_VIDEO_PREVIEW—