Nodes/ComfyUI-MiniMaxH3-PrefixStream/MiniMax H3 Clip Bin Saver (Media Pool)
ComfyUI Node

MiniMax H3 Clip Bin Saver (Media Pool)

Archive each H3 clip with a rating, tag and preview

By knoic·Created 2 days ago·Updated about 16 hours ago· 0
MiniMax H3 Clip Bin Saver (Media Pool)
  • latent
  • images
  • audio
  • video_file_name
  • clip_id
  • preview_image
  • bin_path
project_nameDefault_Project
shot_tagAuto (自动编号)
rating4
prompt
parent_clip_id
save_videotrue

Long-form H3 work generates a pile of clips, and the whole problem this pack solves is that the next clip you make depends on choosing the right previous one. MiniMaxClipBinSaver ("MiniMax H3 Clip Bin Saver (Media Pool)") is the archive side of that: it takes a finished segment and files it into a per-project "clip bin" with a preview card, a star rating, a shot tag, the prompt you used, and the family tree of which clip it was continued from. Later, the Clip Bin Picker shows you those clips as a gallery so you can continue from the take you actually like - instead of decoding five files by name to remember which run was the good one.

This is a media pool, not a video stitcher. It doesn't concatenate anything or make your final film; it organizes the raw material - latents and previews - so a human (or the Auto chaining modes) can make informed choices.

What you must feed it

Three required inputs plus the latent:

  • latent - the sampler's full joint AV latent. Same rule as everywhere in this pack: the continuation context must be the complete, untrimmed latent with both video and audio streams. Save it even though you'll trim pixels for delivery.
  • project_name - which bin this clip belongs to (e.g. Default_Project, sci-fi_short). Projects are fully isolated from each other, which is how you keep several stories from cross-contaminating.
  • shot_tag - a free-text label ("hero turns", "Take 2", "wide empty shot"). Leave Auto (自动编号) and it auto-numbers as Shot 1, Shot 2, … based on how many clips are already in the project.
  • rating - 1–5 stars (default 4). This is the quality signal the Picker's rating filter later uses to skip the duds, so be honest - marking everything 5 stars defeats the one workflow feature that keeps garbage out of your continuation chain.

The optional slots that make it good

  • images - decoded frames of the delivered segment (connect your trimmed output). With this connected the saver extracts the real first and last frames and builds the side-by-side preview card.
  • audio - the segment's audio, muxed in when it encodes a video.
  • prompt - the positive prompt for the segment, stored to meta.json so you can recall what each shot was for.
  • parent_clip_id - wire the previous Picker's clip_id here and the bin records parent-child lineage, so branching and retakes have a traceable history.
  • video_file_name - connect the Filenames output of a VHS_VideoCombine (or type an MP4 name) and the saver will copy that finished video into the clip's asset folder. The wildcard input accepts VHS's list format too.
  • save_video (default on) - with this on, the saver archives an MP4 for each clip: it copies the associated video if you gave one, or encodes one from your images if you didn't.

Outputs: clip_id (a timestamped ID like clip_20260908_… - keep this, it's the lineage handle), preview_image (the card), and bin_path (where the clip folder lives).

Where clips go, and the ffmpeg catch

Storage is under your ComfyUI output dir: output/minimax_h3_bins/<project>/<clip_id>/, holding the latent safetensors, preview.png, meta.json, and optionally video.mp4. That self-contained folder is the "self-sufficient asset package" idea - latent plus finished AV in one place.

The grounded gotcha: that auto-encoding shells out to ffmpeg on your PATH, not an imageio fallback. If ffmpeg isn't installed/found, the node logs a warning and silently skips video encoding - your clip is still archived, but you get no MP4, which means the Picker gallery loses its hover-play and audio playback for that clip. On Windows/portable installs that don't add ffmpeg to PATH, check this first when videos go missing.

Install

ComfyUI Manager (search "MiniMaxH3 PrefixStream"), or:

cd ComfyUI/custom_nodes
git clone https://github.com/knoic/ComfyUI-MiniMaxH3-PrefixStream.git
cd ComfyUI-MiniMaxH3-PrefixStream
pip install -r requirements.txt

Restart, Ctrl+F5. Dependencies are just torch/safetensors/pillow. Remember the H3 weights themselves are separately licensed - the MiniMax H3 Community License excludes US/EU/UK/Korea - and this node does nothing about that, but also adds no license of its own beyond the pack's MIT.

CategoryMiniMaxH3/ClipBin

Inputs (10)

NameTypeDefaultDescription
latentLATENT【核心音画潜空间】采样器输出的原生联合音画 Latent (支持 MiniMax H3 官方 NestedTensor,包含完整视频与音频潜空间)
project_nameSTRINGDefault_Project【项目/分镜箱名称】指定当前镜头归档的项目库(例如:科幻短片、广告场景1)。不同项目之间素材完全隔离,方便多故事独立管理
shot_tagSTRINGAuto (自动编号)【镜头标签/备注】镜头的编号或简要动作描述(如:'Shot 1'、'男主回眸'、'远景空镜')。填 'Auto (自动编号)' 时系统将根据项目内已有镜头数量自动顺延递增为 Shot 1, Shot 2...
ratingINT41–5【镜头星标打分】1~5 星质量评级。后续使用 Clip Bin Picker 加载接力时,可按星级一键过滤掉废案镜头,只接力高分镜头
imagesoptIMAGE【渲染像素画面】连接当前片段解码后的画面 (来自 VAEDecode 或 TrimPrefix)。连接后系统将自动截取真实的首帧与尾帧,生成超高清并排缩略图卡片!
audiooptAUDIO【音频流】连接当前片段的音频 (来自 TrimPrefix 或 VAEDecodeAudio)。当自动编码保存 MP4 视频时,将作为音轨同步封装
promptoptSTRING【本段正向提示词】连接输入文本 (Input Text/Prompt)。自动入库保存到 meta.json,以便后续回顾镜头剧情与接力参考
parent_clip_idoptSTRING【父镜头血缘ID】连接上一段 Clip Bin Picker 输出的 clip_id。用于在元数据中清晰记录多版本分支历史与承接血缘
video_file_nameopt*【关联合成视频名】连接当前片段合成保存节点 (VHS_VideoCombine) 的 Filenames 输出,或手动输入关联的 MP4 文件名,系统将自动将该视频归档到资产包中
save_videooptBOOLEANtrue【归档完整视频】是否在资产包内归档或编码生成完整 MP4 视频文件。开启后 Clip Bin Picker 画廊将支持悬停实时微动播放与声画视听弹窗!

Outputs (3)

NameTypeDescription
clip_idSTRING
preview_imageIMAGE
bin_pathSTRING