霜刃片头曲-02-分镜脚本与生产计划.md

《霜刃》片头曲 · 02 歌词分镜与生产计划

目标成片:2 分 26 秒(146.25 s)| 14 镜 | 1344×768 → 裁 2.39:1 音乐:YuE2 生成《霜刃引》(GPU 机 ComfyUI 节点,本地 0 成本) 视频:MiniMax H3(GPU 机 ComfyUI 8189),每镜一个独立任务 + AV latent 跨任务续接 配套:霜刃片头曲-01-角色与场景设定.md


一、音乐设计(先写歌,再拍画面)

1.1 核心工程决策:让「一段 H3 视频」正好等于「4 小节」

H3 单段实测最稳的长度是 260 帧 / 24fps = 10.8333 s(单段连续满载 ≤90 分钟才不会整机硬挂,这是 09-17 血的教训)。

反过来解节拍:

260 帧 ÷ 24fps        = 10.8333 s  =  4 小节
→ 1 小节 = 2.70833 s  →  ♩ = 88.6 BPM(4/4 拍)

所以片头曲直接按 ♩=88.6(生成时用 88 或 89,后期 ±0.5% 变速微调,听觉无感)写。 这样每一镜天然落在 4 小节的乐句上,剪辑点与鼓点严丝合缝,不需要逐帧对拍。

1.2 曲式结构与画面对应

段落小节时间歌词画面配器
前奏40:00.0–0:10.8—镜1 雪原箫 + 古筝泛音 + 风雪 + 一声剑鸣
主歌A80:10.8–0:32.5①–④镜2 手/刀、镜3 药庐回眸古筝分解 + 低音弦乐铺底
预副歌80:32.5–0:54.2⑤⑥镜4 夜雨竹海、镜5 推门入雪大鼓进入 + 琵琶扫弦,逐句加压
副歌180:54.2–1:15.8⑦–⑩镜6 剑冢、镜7 反派抬眸全奏:失真电吉他 + 大鼓 + 弦乐 + 和声
间奏41:15.8–1:26.7—镜8 破庙银簪(回忆)独奏琵琶 + 箫,骤然安静
主歌B41:26.7–1:37.5⑪⑫镜9 冰湖跪地古筝 + 人声近麦、气声
副歌281:37.5–1:59.2⑬–⑯镜10 断崖对峙、镜11 刀剑相击全奏,鼓更密
副歌381:59.2–2:20.8⑰–⑳镜12 城楼女主、镜13 雪中擦肩升半音,最高潮,人声叠八度
尾奏22:20.8–2:26.3㉑㉒镜14 雪落刀身 + 剧名定格乐器依次收,只留箫与余韵

1.3 歌词《霜刃引》(原创)

① 雪落无声 覆了旧年城
② 一盏孤灯 照我半生尘
③ 风过竹林 谁把姓名封存
④ 刀锋未冷 先冷的是人

⑤ 十年一诺 换一身风雪
⑥ 回身处 故人都已诀别

⑦ 一剑霜寒 十四州的风
⑧ 吹不散 眉间那道血红
⑨ 我以残躯 赴这场相逢
⑩ 刀落处 天光破晓 也从容

⑪ 那年庙前 谁递来一支银簪
⑫ 从此我记 一世人间

⑬ 一剑霜寒 十四州的风
⑭ 吹不散 眉间那道血红
⑮ 若此生 只够一次心动
⑯ 便许你 雪停之后 见苍穹

⑰ 一剑霜寒 十四州的风
⑱ 吹不散 眉间那道血红
⑲ 我提刀赴 这场重逢
⑳ 不问归途 只问你可曾懂

㉑(气声)雪停之后……见苍穹
㉒(念白)江湖再大,不过一诺。

「一剑霜寒十四州」出自唐代贯休诗句(公有领域),在此作 hook 引用无版权风险。

1.4 YuE2 生成参数(复用已跑通链路)

GPU 机 ~/Downloads/dl-hub/18-YuE2音乐生成/yue2-run.py(实测已出过 2:52 中文歌,峰值显存 9.26–10.05 GiB):

python3 yue2-run.py --cot full --sem-mx 7600 --attn sdpa \
  --lyrics-file sd-yin-lyrics.txt \
  --style "Mandarin wuxia epic ballad, 88 BPM 4/4, female lead vocal with male harmony, \
guzheng, dizi, erhu, pipa, taiko drums, distorted electric guitar, cinematic strings, \
dark minor key, cinematic build, no rap" \
  --tag shuangren-yin
参数说明
--cot full先出乐谱规划(ABC)再渲染,长歌必用;yue2-run.py 已含 16GB 内存档
--sem-mx 7600长度旋钮:上次 9000 → 171.7 s,今回按 146.25 s 线性折算 ≈ 7670,先取 7600
--attn sdpa已验证档位(sage 在 sm120 上有 OOM 前科,不要换)
生成后若长度偏差 ±5 s 以内:改画面节奏(尾奏留白);偏差大:调 sem-mx 重跑

⚠️ YuE2 与 H3 互斥(同一张 16 GB 卡)→ 音乐必须第一个做。当晚顺序:出歌 → 定小节表 → 跑视频。


二、分镜总表(14 镜)

镜时间码帧时长段落场景主体续接后处理
10:00.000–0:10.83326010.83前奏S1 雪原远景剪影none降饱和+颗粒
20:10.833–0:21.66726010.83主歌A—手 + 断刀none高光锐化
30:21.667–0:32.50026010.83主歌AS3 药庐苏晚回眸noneFaceRefine
40:32.500–0:43.33326010.83预副歌S2 竹海夜雨刀鞘 + 灯笼none雨层
50:43.333–0:54.16726010.83预副歌S3 药庐沈砚背影none冷暖过渡
60:54.167–1:05.00026010.83副歌1S6 剑冢玄空背影none暗角
71:05.000–1:15.83326010.83副歌1S7 城楼裴无涯近景noneFaceRefine
81:15.833–1:26.66726010.83间奏S5 破庙银簪(手)none柔光+辉光
91:26.667–1:37.50026010.83主歌BS8 冰湖沈砚跪地none冷青调
101:37.500–1:48.33326010.83副歌2S4 断崖双人剪影续接首段—
111:48.333–1:59.16726010.83副歌2S4 断崖刀剑相击AV 续接镜10火星锐化 + RIFE
121:59.167–2:10.00026010.83副歌3S7 城楼苏晚中景noneFaceRefine
132:10.000–2:20.83326010.83副歌3S1 雪原双人擦肩none加雪粒子
142:20.833–2:26.2501305.42尾奏S9 雪地刀断刀特写none剧名排版

合计 3510 帧 / 146.25 s / 2:26.25


三、逐镜脚本

镜1 · 雪原(0:00.000–0:10.833)

镜2 · 手与断刀(0:10.833–0:21.667)

镜3 · 药庐回眸(0:21.667–0:32.500)★需 FaceRefine

镜4 · 夜雨竹海(0:32.500–0:43.333)

镜5 · 推门入雪(0:43.333–0:54.167)

镜6 · 剑冢(0:54.167–1:05.000)

镜7 · 反派抬眸(1:05.000–1:15.833)★需 FaceRefine

镜8 · 破庙银簪(1:15.833–1:26.667)

镜9 · 冰湖跪地(1:26.667–1:37.500)

镜10 · 断崖对峙(1:37.500–1:48.333)→ 续接首段

镜11 · 刀剑相击(1:48.333–1:59.167)→ AV 续接镜10

镜12 · 城楼女主(1:59.167–2:10.000)★需 FaceRefine

镜13 · 雪中擦肩(2:10.000–2:20.833)

镜14 · 剧名定格(2:20.833–2:26.250)


四、H3 提示词规范(Ref2VA 六段式)

本项目全部镜头走 Ref2VA(MiniMaxH3ReferenceToVideo),提示词必须是英文六段式,顺序固定:

subject_definitions   ← 定义 <Subject N> / <Picture N>,说明它是什么、提供什么
summary               ← 一行英文 + 方括号任务类型前缀,如 [reference generation]
retention_analysis    ← 每个参考标签一行 + 固定关系标记
detailed_description  ← 主体:按播放顺序写画面/动作/镜头/声音,350–500 词
overall_soundscape    ← 环境音与物理音
non_diegetic_music    ← 只有观众能听到的配乐

关系标记(只能从这个表里选)

可见内容用途
fully_preserved参考特征完整保留
partially_preserved用到了但部分特征改变
attribute_transfer特征转移到另一个主体
weak_reference只保留风格/氛围的大致相似

硬性规则

  1. 一旦给某内容分配了 <Subject N>,全篇含义不得改变;
  2. 参考图只用来定义角色/场景/服装/风格时,不单独建 <Picture N> 条目,写进对应 <Subject N> 定义里;
  3. 台词/歌词/画面内可见文字保留原文语言,写在 <d>[语言] ...</d> 里;
  4. 派生引用项目禁止字面媒体标签:提示词正文里不能出现 <Video 1>/<Audio 1> 这类字面标签(会报 unstable_reference_tag),源视频用中性措辞 "the source video reference";
  5. 角色替换类任务(本片不用)另有 identity-migration 专用规范,编号 <Subject 1>=源视频被替换者、<Subject 2>=目标角色,不得写反。

4.1 完整范例 —— 镜3 药庐回眸

subject_definitions:
<Subject 1> is the young woman in <Picture 1> and <Picture 2>, with a soft oval face, slightly upturned eyes, dark hair half-gathered and pinned with a plain silver hairpin, wearing a moon-white chest-high ruqun under a plain white short cape with pale-cyan cuffs and sash, and a cinnabar-red silk shawl draped over both arms.
<Subject 2> is the snow-covered herbalist courtyard in <Picture 3>, with a bamboo fence, snow-dusted herb-drying trays on wooden racks, a small red-clay stove, and warm light glowing through paper windows.
<Subject 3> is the man in <Picture 4>, seen only from behind and in silhouette: a tall figure in a black narrow-sleeved martial robe with a half-worn dark-grey fox-fur cloak slipping off his right shoulder, black hair tied high with an ebony pin.

summary:
[reference generation] The target video is one 10.8-second cinematic shot for a wuxia television opening: <Subject 1> turns her head toward the arriving <Subject 3> inside <Subject 2>, her cinnabar shawl lifted by the wind.

retention_analysis:
<Subject 1> (appears in [Shot 1]): fully_preserved - her oval face, half-gathered hair with the plain silver hairpin, moon-white ruqun, pale-cyan cuffs and the cinnabar shawl are retained.
<Subject 2> (appears in [Shot 1]): fully_preserved - the bamboo fence, snow-dusted herb trays, red-clay stove and warm paper-window light are retained.
<Subject 3> (appears in [Shot 1]): partially_preserved - only his back and silhouette are used and his face is never shown.

detailed_description:
The target video is a cinematic wuxia television-opening shot with a cool desaturated winter palette, a single warm interior light source, shallow depth of field and fine film grain.
[Shot 1] A medium shot establishes <Subject 2>, the snow-covered herbalist courtyard, with a bamboo fence and snow-dusted herb-drying trays on wooden racks in the foreground. <Subject 1> (S1), the young woman in the moon-white ruqun with pale-cyan cuffs and the cinnabar-red shawl, stands with her back to the camera beside a small red-clay stove, turning dried herbs over the fire with both hands; warm light from the paper windows rims her shoulders. At 00:02.500, faint footsteps crunch on snow behind her. She stops moving, then turns her head to look back over her right shoulder, the plain silver hairpin catching the window light; a strand of hair slips loose across her cheek. A gust lifts one end of the cinnabar shawl away from her arm, and the fabric snaps once in the air before settling. Behind her, at 00:06.000, the blurred dark silhouette of <Subject 3>, the tall man in the black robe and the dark-grey fox-fur cloak, passes the bamboo gate without stopping, his face never visible. The camera makes a slow right-to-left pan with a gentle push in, keeping <Subject 1> in the left third of the frame and the blurred silhouette in the right background. She holds the look for a beat, then turns back to the stove and lowers her eyes before the shot ends.

overall_soundscape:
A quiet snowy courtyard ambience throughout: light wind through bamboo, a crackling red-clay stove, the soft rustle of dried herbs, and two muffled footfalls on snow behind the woman.

non_diegetic_music:
N/A

4.2 续接段范例要点(镜11 刀剑相击)


五、生产计划与工期

阶段内容工具预计耗时产出
0 设定定稿本两份文档确认—你审阅定稿
1 静态素材4 角色 + 9 场景 + 4 道具 ≈ 17–21 张即梦 5.0 + 2k(0 积分)1–2 h三视图 / 背景板
2 出歌《霜刃引》含人声 2:26YuE2(GPU 机 ComfyUI)0.5–1 h主音轨
3 预览版14 镜全跑,864×480 / 4 步(约 9–12 min/镜)H3≈2.5 h节奏/构图/一致性验证版
4 正式版14 镜,1344×768 / 12 步(54–86 min/镜 + 5 min 冷却)H313–19 h → 分 2 晚母版片段
5 后期溶像拼接 → FaceRefine → RIFE 插帧 → 放大 1080p → 统一调色 → 混音 → 剧名排版ffmpeg / ComfyUI3–5 h成片 2:26

阶段 4 的运行纪律(09-17 硬挂教训,必须照做)

  1. 单段独立任务,绝不把多镜塞进一个任务;绝不开 Director 的 continuityEnabled / 段间引导;
  2. 单段连续满载 ≤90 分钟(260 帧 / 12 步实测 54–86 min,安全区);
  3. 段间 sleep 300(5 分钟冷却);
  4. 批处理已出片即跳过(可断点续跑),任一段失败立即停止、不带病继续;
  5. 跑之前 bash ~/stop-ridge.sh + 停掉其他占卡进程;bash ~/restart_comfy.sh 起 ComfyUI;
  6. 挂回内存哨兵 ~/ram_guard.sh(MemAvailable 连续两次 <2.5 GB 自动 interrupt);
  7. ⚠️ 本机 kernel.panic=0,真硬挂不会自愈,只能人工断电 → 长跑期间请确保机器旁有人。

执行入口(GPU 机)

# 预览版(先跑,验证节奏)
cd ~/Downloads/h3-tasks/sd-yin && bash run_preview_480p.sh

# 正式版(分两晚,断点续跑)
cd ~/Downloads/h3-tasks/sd-yin && bash run_official_720p.sh

脚本将按 h3_chain.py 的通用执行器改写(复用已跑通 13 小时零挂机的 run_all_scenes.sh 结构), 放在 GPU 机 ~/Downloads/h3-tasks/sd-yin/。


六、风险与对策

风险概率对策
音乐实际长度偏离 146 s高调 --sem-mx 重跑;±5 s 内改尾奏留白;最后手段音频变速 ±1%
角色跨镜不一致中固定 seed + 每镜同一张身份锚图 + 三视图;续接段只留身份锚
中近景人脸崩坏中镜3/7/12 必过 FaceRefine;远景一律剪影
打斗动作糊/崩中缩短单镜、用剪影与兵器特写替代全身动作;RIFE 补帧提升流畅度
整机硬挂低(守纪律时)≤90 min/段 + 冷却 + 断点续跑 + 人工值守
即梦 2K 限免到期中素材一次出足,别分批拖
生成出现文字/水印低出图后逐张验,出现即重出;字幕一律后期加

七、交付物清单

  1. 霜刃片头曲-成片-2m26s-1080p.mp4(裁 2.39:1 + 立体声)
  2. 霜刃片头曲-母版-1344x768-16x9.mp4(未裁切)
  3. 霜刃引-人声版.flac / .mp3(48 kHz)
  4. 14 个单镜母版 + 三视图 / 场景板素材包
  5. 项目记录 .md(含实际耗时、踩坑、seed 表)
  6. 全部产出归档:下载中心 + 相册 h3-shuangren-opening/
下载此文件