guanghulab/video-ai-system/assets/subtitle-styles/subtitle-style.reference-drama.json
冰朔 f0d5879d68
Some checks failed
自动更新代码和重启 / update-and-restart (push) Has been cancelled
CI检查 + 自动部署 / check (push) Has been cancelled
CI检查 + 自动部署 / deploy (push) Has been cancelled
D144 · 字幕工业化流水线8大工具开发完成
-  reference-subtitle-analyzer.py
  从样片截图里量字幕:字高、底部距离、描边宽度、字幕框位置、字号比例

-  subtitle-style.reference-drama.json
  把样片字幕标准固化成配置,不再靠肉眼调

-  ass-subtitle-renderer.py
  用ASS/libass正式渲染字幕,支持字体、粗体、描边、边距、对齐
  不再用Pillow PNG凑合

-  subtitle-font-manager.py
  固定项目字幕字体,不能依赖系统默认字体

-  subtitle-safe-area-qc.py
  自动检查字幕有没有遮脸、遮身体表演、贴边、看不清

-  subtitle-preview-contact-sheet.py
  每次烧字幕后自动抽帧出检查图

-  subtitle-style-ab-test.py
  同一底片一次生成多个字幕风格版本,对比选,不盲调

-  script-to-srt-with-timing.py
  用剧本台词和配音时长生成正式SRT,不手写时间轴

冰朔 TCS-0002∞ 见证 · 国作登字-2026-A-00037559
⊢ 铸渊 ICE-GL-ZY001 · D144 · 2026-06-24
2026-06-24 12:59:26 +08:00

120 lines
2.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"_comment": "参考短剧字幕样式配置 · subtitle-style.reference-drama.json",
"_description": "从样片截图量化得到的字幕标准用于ASS字幕渲染",
"_version": "1.0",
"_date": "2026-06-24",
"_source": "渔乡守真心 样片分析",
"video": {
"width": 1080,
"height": 1920,
"aspect_ratio": "9:16",
"scan_type": "progressive"
},
"subtitle_box": {
"x": 100,
"y": 1750,
"width": 880,
"height": 120,
"_unit": "px",
"_note": "字幕框位置左下角x,y + 宽度,高度)"
},
"font": {
"family": "PingFang SC",
"size": 38,
"size_ratio": 0.0198,
"_note_size_ratio": "字号/视频高度 = 38/1920 = 0.0198",
"color": "&HFFFFFF&",
"color_hex": "#FFFFFF",
"bold": true,
"italic": false,
"underline": false,
"strikeout": false,
"_note_font": "使用PingFang SC粗体白色"
},
"stroke": {
"enabled": true,
"width": 2,
"width_px": 2,
"color": "&H000000&",
"color_hex": "#000000",
"opacity": 0.92,
"_note": "黑色描边宽度2px用于白色字体轮廓"
},
"shadow": {
"enabled": false,
"depth": 0,
"color": "&H000000&",
"opacity": 0
},
"position": {
"alignment": 2,
"_alignment_values": {
"1": "左下",
"2": "中下",
"3": "右下",
"4": "左中",
"5": "中中",
"6": "右中",
"7": "左上",
"8": "中上",
"9": "右上"
},
"margin_left": 100,
"margin_right": 100,
"margin_vertical": 50,
"_note": "对齐方式=2中下水平边距100px底部边距50px"
},
"spacing": {
"line_spacing": 1.45,
"letter_spacing": 0,
"_note": "行间距1.45倍,字间距默认"
},
"background": {
"enabled": false,
"color": "&H000000&",
"opacity": 0.6,
"padding": 20,
"_note": "参考短剧不使用背景框,纯字幕+描边"
},
"timing": {
"fade_in_ms": 150,
"fade_out_ms": 150,
"_note": "字幕淡入淡出150ms"
},
"qc_thresholds": {
"min_bottom_distance_ratio": 0.02,
"max_bottom_distance_ratio": 0.05,
"min_font_size_ratio": 0.015,
"max_font_size_ratio": 0.025,
"max_stroke_width_px": 3,
"min_contrast_ratio": 4.5,
"_note": "QC自动检查阈值"
},
"ass_template": {
"_comment": "ASS字幕格式模板用于FFmpeg libass渲染",
"_example": "Dialogue: 0,0:00:01.00,0:00:03.50,Default,,0,0,0,,{\\pos(540,1850)\\fs38\\b1\\3c&H000000&\\4a&H40&\\fsp0}苏白:付费才能修仙?",
"format": "Dialogue: <Layer>,<Start>,<End>,<Style>,<Name>,<MarginL>,<MarginR>,<MarginV>,<Effect>,<Text>",
"default_style": "Default",
"common_tags": {
"font_size": "\\fs38",
"bold": "\\b1",
"stroke_color": "\\3c&H000000&",
"stroke_opacity": "\\4a&H40&",
"position": "\\pos(540,1850)",
"fade_in": "\\fad(150,0)",
"fade_out": "\\fad(0,150)"
}
}
}