fix: ASS 双眼字幕样式修正
- 右眼 MarginR 误用 width-50 改为 50(左右眼对称内边距) - 字幕颜色改为半透明白(&H80FFFFFF),避免遮挡 VR 画面
This commit is contained in:
+3
-3
@@ -16,7 +16,7 @@ def _ass_header(resolution: str) -> str:
|
|||||||
width, height = resolution.lower().split("x", 1)
|
width, height = resolution.lower().split("x", 1)
|
||||||
# 左眼样式占左半边,右眼样式占右半边,各留 50px 内边距。
|
# 左眼样式占左半边,右眼样式占右半边,各留 50px 内边距。
|
||||||
left_margin = 50
|
left_margin = 50
|
||||||
right_margin = int(width) - 50
|
right_margin = 50
|
||||||
return f"""[Script Info]
|
return f"""[Script Info]
|
||||||
Title: VR Dual-Eye Subtitle
|
Title: VR Dual-Eye Subtitle
|
||||||
ScriptType: v4.00+
|
ScriptType: v4.00+
|
||||||
@@ -28,8 +28,8 @@ ScaledBorderAndShadow: yes
|
|||||||
|
|
||||||
[V4+ Styles]
|
[V4+ Styles]
|
||||||
Format: Name,Fontname,Fontsize,PrimaryColour,SecondaryColour,OutlineColour,BackColour,Bold,Italic,Underline,StrikeOut,ScaleX,ScaleY,Spacing,Angle,BorderStyle,Outline,Shadow,Alignment,MarginL,MarginR,MarginV,Encoding
|
Format: Name,Fontname,Fontsize,PrimaryColour,SecondaryColour,OutlineColour,BackColour,Bold,Italic,Underline,StrikeOut,ScaleX,ScaleY,Spacing,Angle,BorderStyle,Outline,Shadow,Alignment,MarginL,MarginR,MarginV,Encoding
|
||||||
Style: LeftEye,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H80000000,0,0,0,0,50,100,0,0,1,4,0,2,{left_margin},{int(width) // 2},{int(height) // 2 + 60},1
|
Style: LeftEye,Arial,50,&H80FFFFFF,&H000000FF,&H00000000,&H80000000,0,0,0,0,50,100,0,0,1,4,0,2,{left_margin},{int(width) // 2},{int(height) // 2 + 60},1
|
||||||
Style: RightEye,Arial,50,&H00FFFFFF,&H000000FF,&H00000000,&H80000000,0,0,0,0,50,100,0,0,1,4,0,2,{int(width) // 2},{right_margin},{int(height) // 2 + 60},1
|
Style: RightEye,Arial,50,&H80FFFFFF,&H000000FF,&H00000000,&H80000000,0,0,0,0,50,100,0,0,1,4,0,2,{int(width) // 2},{right_margin},{int(height) // 2 + 60},1
|
||||||
|
|
||||||
[Events]
|
[Events]
|
||||||
Format: Layer,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text
|
Format: Layer,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text
|
||||||
|
|||||||
Reference in New Issue
Block a user