Nodes/ComfyUI-llama_Dapao/🦊H3本地视频提示词生成@炮老师的小课堂
ComfyUI Node

🦊H3本地视频提示词生成@炮老师的小课堂

H3 video prompts from your own GPU, markers and all

By paolaoshi·Created 4 months ago·Updated 2 days ago· 44
🦊H3本地视频提示词生成@炮老师的小课堂
  • 🧩 H3素材标记
  • 🎬 首帧图
  • 🏁 尾帧图
  • 🖼️ 参考图1
  • 🖼️ 参考图2
  • 🖼️ 参考图3
  • 🖼️ 参考图4
  • 🖼️ 参考图5
  • 🖼️ 参考图6
  • 🖼️ 参考图7
  • 🖼️ 参考图8
  • 🖼️ 参考图9
  • 🎞️ 参考视频1
  • 🎵 参考音频1
  • 🎞️ 参考视频2
  • 🎵 参考音频2
  • 🎞️ 参考视频3
  • 🎵 参考音频3
  • 🎬 H3最终提示词
  • 🎛️ 识别模式
  • 📑 素材与制作分析
  • 📄 LLM完整响应
  • ℹ️ 处理信息
🤖本地模型文件
🔌本地对话处理器Qwen3.8
🖼️本地mmproj文件None
📐本地上下文长度8192
💾本地显存限制(GB)-1.0
🔢图像最小token256
🔢图像最大token1344
🧠本地思考模式false
🧠Qwen3.8推理强度关闭
🎛️ H3生成模式自动识别
🎨 创作类型通用H3
🌐 输出中文提示词false
📝 原始视频需求电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。
🧩 H3自动素材清单
⏱️ 目标时长(秒)5
📐 视频比例16:9
🔊 原生音频true
🌡️ 温度0.40
📝 最大输出令牌4096
🎲 Top_P1.00
🎲 随机种0
⌛ 请求超时300
🔗 外部文本输入
🎞️ 每个视频采样帧数5
🎧 参考音频原声直传LLMfalse
🚫 出错时跳过false

MiniMax H3's video workflow has a specific shape: you feed it text, images, video frames, and audio, and it needs everything organized into its official Context-IR prompt format - with the right material markers, field order, and timing. DapaoH3LocalPromptNode ("H3本地视频提示词生成") does that organization with a local GGUF vision model instead of an API. The pack frames it bluntly: independent local inference, no online H3 node, no online LLM API, no API key.

What makes this worth your attention is the scope of what it juggles. It auto-detects the H3 task mode - T2VA (text-to-video), I2VA (first-frame), FL2VA (first+last frame), L2VA (last frame), and Ref2VA (all-round reference) - and it accepts up to 9 source images, 3 video frame batches, and 3 audio tracks (12 mixed materials max). Video arrives as time-sorted IMAGE frame batches, so there's no video-decode dependency to install; audio is analyzed locally for spectrum, energy, and silence by default, with a switch to pass raw audio through when your model supports it.

The inputs that matter

The model side is the pack's standard cluster: 🤖本地模型文件, 🔌本地对话处理器, 🖼️本地mmproj文件, context length, the 💾本地显存限制(GB) budget (same tooltip math: 8GB card → 6, 12GB → 10, leave ~2GB headroom), image min/max tokens, thinking mode, and the Qwen3.8 reasoning-strength dropdown.

Then the H3-specific controls:

  • 🎛️ H3生成模式 - auto-detect or force one of T2VA/I2VA/FL2VA/L2VA/Ref2VA.
  • 🎨 创作类型 - 31 presets from 通用H3 through 极简产品广告, 3D动画短片, 真人电影叙事, 美食料理广告·ASMR, 时尚美妆大片 and more. This is where the prompt's genre voice comes from.
  • 🎬 首帧图 / 🏁 尾帧图 - the anchor images for I2VA/L2VA/FL2VA; the tooltips are explicit that these act as precise anchors in the prompt.
  • 🎞️ 每个视频采样帧数 (2–8, default 5), ⏱️ 目标时长(秒) (4–15), 📐 视频比例 (21:9 … 9:16), and 🔊 原生音频.
  • 📝 原始视频需求 - your actual idea. This is the creative input; everything else is scaffolding around it.
  • 🧩 H3素材标记 - optional DAPAO_H3_REFERENCES from the DapaoLocalH3PromptBoxNode, which locks numbering to the official H3 node's actual material order.
  • 🖼️ 参考图1 through 🖼️ 参考图9, 🎞️ 参考视频1🎞️ 参考视频3, 🎵 参考音频1🎵 参考音频3 - the Ref2VA material ports (each video/audio 2–15s, total ≤15s).

The outputs

🎬 H3最终提示词 (STRING) is the one that matters - wire it to the official MiniMax H3 node's text input. The rest are diagnostics and plumbing: 🎛️ 识别模式, 📑 素材与制作分析, 📄 LLM完整响应, and ℹ️ 处理信息. The 🌐 输出中文提示词 toggle flips the prose to simplified Chinese while keeping the official H3 field format and markers intact.

Where people get burned

Two things. First, the audio reality check: raw-audio passthrough only works if your chosen GGUF actually supports input_audio - the default local spectrum/energy analysis is the safe path, and the tooltip says so. Second, model pairing: the pack recommends multi-image-capable vision models like Qwen3.5 / Qwen3-VL with a matched mmproj; a weak or mismatched projection means muddled material understanding, and you'll feel it in wrong references.

Installing it

Standard pack:

cd ComfyUI/custom_nodes
git clone https://github.com/paolaoshi/ComfyUI-llama_Dapao

then requirements + restart. The pack-wide gotcha: llama-cpp-python is pinned to the JamePeng fork at 0.3.47+ (stock PyPI 0.3.35 fails on Qwen3.8 GGUFs with missing tensor 'blk.64.ssm_conv1d.weight'); NVIDIA users install a matching GPU wheel from the JamePeng releases and restart. GGUF + mmproj go in ComfyUI/models/LLM/.

Category🍭大炮-llama-cpp

Inputs (44)

NameTypeDefaultDescription
🤖本地模型文件COMBO0 options:
🔌本地对话处理器COMBOQwen3.822 options: None, LLaVA-1.5, LLaVA-1.6, Moondream2, nanoLLaVA, llama3-Vision-Alpha, +16
🖼️本地mmproj文件COMBONone1 options: None
📐本地上下文长度INT8192512–131072
💾本地显存限制(GB)FLOAT-1.0-1–999这是LLM可使用的显存预算,不是预留空间。-1=尝试全部放入GPU,最快但可能因显存不足失败;填写数值=只将部分模型层放入GPU,其余使用系统内存。参考起点:8GB显卡填6,12GB填10,16GB填13,24GB填20,32GB填24-28。请为ComfyUI、mmproj和上下文缓存保留约2GB。
🔢图像最小tokenINT2561–4096
🔢图像最大tokenINT13441–8192
🧠本地思考模式BOOLEANfalse
🧠Qwen3.8推理强度COMBO关闭5 options: 关闭, 自动, 低, 中等, 高
🎛️ H3生成模式COMBO自动识别6 options: 自动识别, T2VA-文生视频, I2VA-首帧生视频, FL2VA-首尾帧生视频, L2VA-尾帧生视频, Ref2VA-全能参考
🎨 创作类型COMBO通用H331 options: 通用H3, 极简产品广告, 3D动画短片, 纸艺定格科普, 品牌宣传短片, 音乐MV动态字幕, +25
🌐 输出中文提示词BOOLEANfalse默认关闭时输出英文H3提示词;开启后正文输出简体中文,H3固定字段和标签仍保留官方格式。
📝 原始视频需求STRING电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。
🧩 H3自动素材清单STRING由节点界面在H3最终提示词直连官方MiniMax H3节点时自动维护。
⏱️ 目标时长(秒)INT54–15
📐 视频比例COMBO16:96 options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16
🔊 原生音频BOOLEANtrue
🌡️ 温度FLOAT0.400–2
📝 最大输出令牌INT4096512–65536
🎲 Top_PFLOAT1.000–1
🎲 随机种INT00–18446744073709550000仅控制ComfyUI缓存,不发送给接口。
⌛ 请求超时INT30030–1200
🧩 H3素材标记optDAPAO_H3_REFERENCES连接🧙‍♂️H3专用提示词框的素材标记输出,用官方H3节点的实际素材顺序锁定编号。
🔗 外部文本输入optSTRING可连接任意STRING文本节点;连接后执行时优先使用外部文本,未连接时使用本节点的大文本框。
🎬 首帧图optIMAGEI2VA/FL2VA 使用;在H3提示词中作为精确首帧锚点。
🏁 尾帧图optIMAGEL2VA/FL2VA 使用;在H3提示词中作为精确尾帧锚点。
🎞️ 每个视频采样帧数optINT50–8正常范围2–8,默认5;旧工作流异常恢复为0时会自动按5处理。
🎧 参考音频原声直传LLMoptBOOLEANfalse只发送参考音频1/2/3接口接入的原始音频,不会自动提取参考视频音轨;要求所选LLM支持input_audio。
🚫 出错时跳过optBOOLEANfalse
🖼️ 参考图1optIMAGERef2VA源图片1;源图片总数最多9张。
🖼️ 参考图2optIMAGERef2VA源图片2;源图片总数最多9张。
🖼️ 参考图3optIMAGERef2VA源图片3;源图片总数最多9张。
🖼️ 参考图4optIMAGERef2VA源图片4;源图片总数最多9张。
🖼️ 参考图5optIMAGERef2VA源图片5;源图片总数最多9张。
🖼️ 参考图6optIMAGERef2VA源图片6;源图片总数最多9张。
🖼️ 参考图7optIMAGERef2VA源图片7;源图片总数最多9张。
🖼️ 参考图8optIMAGERef2VA源图片8;源图片总数最多9张。
🖼️ 参考图9optIMAGERef2VA源图片9;源图片总数最多9张。
🎞️ 参考视频1optVIDEORef2VA源视频1;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频1optAUDIORef2VA源音频1;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。
🎞️ 参考视频2optVIDEORef2VA源视频2;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频2optAUDIORef2VA源音频2;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。
🎞️ 参考视频3optVIDEORef2VA源视频3;每个2–15秒,视频总时长不超过15秒。
🎵 参考音频3optAUDIORef2VA源音频3;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。

Outputs (5)

NameTypeDescription
🎬 H3最终提示词STRING
🎛️ 识别模式STRING
📑 素材与制作分析STRING
📄 LLM完整响应STRING
ℹ️ 处理信息STRING