🦊H3本地视频提示词生成@炮老师的小课堂
H3 video prompts from your own GPU, markers and all
- 🧩 H3素材标记
- 🎬 首帧图
- 🏁 尾帧图
- 🖼️ 参考图1
- 🖼️ 参考图2
- 🖼️ 参考图3
- 🖼️ 参考图4
- 🖼️ 参考图5
- 🖼️ 参考图6
- 🖼️ 参考图7
- 🖼️ 参考图8
- 🖼️ 参考图9
- 🎞️ 参考视频1
- 🎵 参考音频1
- 🎞️ 参考视频2
- 🎵 参考音频2
- 🎞️ 参考视频3
- 🎵 参考音频3
- 🎬 H3最终提示词
- 🎛️ 识别模式
- 📑 素材与制作分析
- 📄 LLM完整响应
- ℹ️ 处理信息
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素材标记- optionalDAPAO_H3_REFERENCESfrom theDapaoLocalH3PromptBoxNode, which locks numbering to the official H3 node's actual material order.🖼️ 参考图1through🖼️ 参考图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/.
Inputs (44)
| Name | Type | Default | Description |
|---|---|---|---|
| 🤖本地模型文件 | COMBO | 0 options: | |
| 🔌本地对话处理器 | COMBO | Qwen3.8 | 22 options: None, LLaVA-1.5, LLaVA-1.6, Moondream2, nanoLLaVA, llama3-Vision-Alpha, +16 |
| 🖼️本地mmproj文件 | COMBO | None | 1 options: None |
| 📐本地上下文长度 | INT | 8192512–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。 |
| 🔢图像最小token | INT | 2561–4096 | — |
| 🔢图像最大token | INT | 13441–8192 | — |
| 🧠本地思考模式 | BOOLEAN | false | — |
| 🧠Qwen3.8推理强度 | COMBO | 关闭 | 5 options: 关闭, 自动, 低, 中等, 高 |
| 🎛️ H3生成模式 | COMBO | 自动识别 | 6 options: 自动识别, T2VA-文生视频, I2VA-首帧生视频, FL2VA-首尾帧生视频, L2VA-尾帧生视频, Ref2VA-全能参考 |
| 🎨 创作类型 | COMBO | 通用H3 | 31 options: 通用H3, 极简产品广告, 3D动画短片, 纸艺定格科普, 品牌宣传短片, 音乐MV动态字幕, +25 |
| 🌐 输出中文提示词 | BOOLEAN | false | 默认关闭时输出英文H3提示词;开启后正文输出简体中文,H3固定字段和标签仍保留官方格式。 |
| 📝 原始视频需求 | STRING | 电影感镜头,主体动作自然,音画同步,画面稳定且细节丰富。 | — |
| 🧩 H3自动素材清单 | STRING | 由节点界面在H3最终提示词直连官方MiniMax H3节点时自动维护。 | |
| ⏱️ 目标时长(秒) | INT | 54–15 | — |
| 📐 视频比例 | COMBO | 16:9 | 6 options: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 |
| 🔊 原生音频 | BOOLEAN | true | — |
| 🌡️ 温度 | FLOAT | 0.400–2 | — |
| 📝 最大输出令牌 | INT | 4096512–65536 | — |
| 🎲 Top_P | FLOAT | 1.000–1 | — |
| 🎲 随机种 | INT | 00–18446744073709550000 | 仅控制ComfyUI缓存,不发送给接口。 |
| ⌛ 请求超时 | INT | 30030–1200 | — |
| 🧩 H3素材标记opt | DAPAO_H3_REFERENCES | 连接🧙♂️H3专用提示词框的素材标记输出,用官方H3节点的实际素材顺序锁定编号。 | |
| 🔗 外部文本输入opt | STRING | 可连接任意STRING文本节点;连接后执行时优先使用外部文本,未连接时使用本节点的大文本框。 | |
| 🎬 首帧图opt | IMAGE | I2VA/FL2VA 使用;在H3提示词中作为精确首帧锚点。 | |
| 🏁 尾帧图opt | IMAGE | L2VA/FL2VA 使用;在H3提示词中作为精确尾帧锚点。 | |
| 🎞️ 每个视频采样帧数opt | INT | 50–8 | 正常范围2–8,默认5;旧工作流异常恢复为0时会自动按5处理。 |
| 🎧 参考音频原声直传LLMopt | BOOLEAN | false | 只发送参考音频1/2/3接口接入的原始音频,不会自动提取参考视频音轨;要求所选LLM支持input_audio。 |
| 🚫 出错时跳过opt | BOOLEAN | false | — |
| 🖼️ 参考图1opt | IMAGE | Ref2VA源图片1;源图片总数最多9张。 | |
| 🖼️ 参考图2opt | IMAGE | Ref2VA源图片2;源图片总数最多9张。 | |
| 🖼️ 参考图3opt | IMAGE | Ref2VA源图片3;源图片总数最多9张。 | |
| 🖼️ 参考图4opt | IMAGE | Ref2VA源图片4;源图片总数最多9张。 | |
| 🖼️ 参考图5opt | IMAGE | Ref2VA源图片5;源图片总数最多9张。 | |
| 🖼️ 参考图6opt | IMAGE | Ref2VA源图片6;源图片总数最多9张。 | |
| 🖼️ 参考图7opt | IMAGE | Ref2VA源图片7;源图片总数最多9张。 | |
| 🖼️ 参考图8opt | IMAGE | Ref2VA源图片8;源图片总数最多9张。 | |
| 🖼️ 参考图9opt | IMAGE | Ref2VA源图片9;源图片总数最多9张。 | |
| 🎞️ 参考视频1opt | VIDEO | Ref2VA源视频1;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频1opt | AUDIO | Ref2VA源音频1;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 | |
| 🎞️ 参考视频2opt | VIDEO | Ref2VA源视频2;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频2opt | AUDIO | Ref2VA源音频2;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 | |
| 🎞️ 参考视频3opt | VIDEO | Ref2VA源视频3;每个2–15秒,视频总时长不超过15秒。 | |
| 🎵 参考音频3opt | AUDIO | Ref2VA源音频3;每个2–15秒,音频总时长不超过15秒,不能作为唯一素材。 |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| 🎬 H3最终提示词 | STRING | — |
| 🎛️ 识别模式 | STRING | — |
| 📑 素材与制作分析 | STRING | — |
| 📄 LLM完整响应 | STRING | — |
| ℹ️ 处理信息 | STRING | — |