Skip to content

AI video skill for Claude Code & Codex — cinematic, editable product promos with Remotion: 124 shot recipe cards, 150 motion previews, beat sync, sound design, Motion Workbench & JianYing (CapCut CN) export.

docs: add Q11 minimum effective text height rule (caption >=5% frame height)

Wei Yihaobb79f7c997ca
diff --git a/assets/lib/Caption.tsx b/assets/lib/Caption.tsx
index 91f6736..34d9131 100644
--- a/assets/lib/Caption.tsx
+++ b/assets/lib/Caption.tsx
@@ -6,7 +6,11 @@ const AMBER = 'oklch(52% 0.115 65)';
/** Screen-space narration caption: a mono UI info-strip at the bottom of the
* frame, led by a small amber square. Fades/rises in over 8 frames and fades
- * out over the last 8 of its window. */
+ * out over the last 8 of its window.
+ *
+ * 注意:22px 属"信息条"风格(大字距全大写作补偿),低于审美准则 Q11 的
+ * 字幕线(≥56px)。作为叙事主字幕使用时应提到 56–60px 档或改用大字幕组件;
+ * 沿用 22px 信息条风格属于 Q11 允许的有意识违反,需在项目说明中注明。 */
export const Caption: React.FC<{ text: string; duration: number; bottom?: number }> = ({
text,
duration,
diff --git a/references/aesthetic-rules.md b/references/aesthetic-rules.md
index 51163b3..fe77dfb 100644
--- a/references/aesthetic-rules.md
+++ b/references/aesthetic-rules.md
@@ -81,6 +81,11 @@
判例:用户:"周报内容的文字要用和现在排版和风格一致的,只是内容mock,文字内容铺满,且要完整展示左边栏和右边评论栏"(模板片中该镜头为周报页)。初版"贴图+标语"级假文档被整镜头重做,最终版为原生排版全量 mock、双栏完整入镜。
自检:暂停在文档镜头任意一帧:内容读起来像真的吗?版式(侧栏/评论/页眉)完整吗?
+### Q11. 要被读的文字有最低有效字高:字幕 ≥5% 帧高,辅助文字 ≥3%;按最终像素量,不按 fontSize
+规则:1080p 成片按手机/内嵌小窗播放校准可读性——镜头叙事字幕**有效字高 ≥56px(≥5.2% 帧高,推荐 60px 档)**,副标题/统计/URL 等辅助文字 ≥32px(≥3%);有效字高 = fontSize × 全部祖先 scale × 透视压缩(3D 镜头按 `cos(rotY)` 估算),验收量渲染帧上的实际像素,不看代码里的 fontSize。文字只有两态:**"纹理"**(截图 cutout 里的装饰小字,必须明显虚化/降亮度让观众不去读)或 **"要读"**(达标字号 + 足够对比度,压过浅色背景时配 scrim/投影),不存在"重排了但仍读不清"的中间态——读不到的文字宁可删掉。收尾 URL/行动号召是全片最不该小的一行。
+判例:用户(2026-07-25):"里面有几个镜头,你可以发现它配的字很小……现在那些镜头里面的字太小了,根本就看不见"。审查 gallery 介绍片:S1/S2/S4 字幕 38–40px(约 3.5% 帧高)、S6 副句 30px、收尾 URL 25px 全部低于线,其中 S2 面板"为可读性重排"的副标题只给了 19px——重排却没达标即中间态反例;六处统一提到 60/40/34px 档后整改通过。
+自检:抽每个含字幕的镜头一帧缩到 480px 宽(模拟手机小窗):每句还读得清吗?逐帧量"要读"文字的实际像素高:字幕 ≥56px、辅助 ≥32px 吗?有没有哪块文字处于"想让人读但读不清"的中间态?
+
---
## 声音(S)
diff --git a/references/pipeline.md b/references/pipeline.md
index 090f8ee..47bd566 100644
--- a/references/pipeline.md
+++ b/references/pipeline.md
@@ -196,6 +196,8 @@
3. **静帧验收(最高频动作)**:每镜头在计划里写死 2 个验收帧号,
完成即跑 `npx remotion still src/index.ts <Comp> out/qa/<name>.png
--frame=<N>`,自己肉眼检查构图/穿帮/文字锐度后才算完成。
+ 含字幕/文字的镜头加查有效字高(字幕 ≥56px、辅助文字 ≥32px,
+ 按渲染帧实际像素量,3D 镜头计入 scale 与透视压缩,见审美准则 Q11)。
静帧产物按迭代版本归档 `out/qa/`,用户贴帧反馈时可直接对号。
4. **每轮修改后整片渲染**:`npx remotion render src/index.ts <Comp>
out/promo.mp4`,再用 `ffmpeg -i out/promo.mp4 -vf "select=eq(n,…)"`