JakgritB commited on
Commit
08d2fa9
·
1 Parent(s): f585352

fix(backend): raise burned subtitle placement

Browse files
Files changed (1) hide show
  1. backend/app/services/clips.py +11 -1
backend/app/services/clips.py CHANGED
@@ -114,5 +114,15 @@ class ClipGenerator:
114
 
115
  def _subtitle_filter(self, subtitle_path: Path) -> str:
116
  escaped = str(subtitle_path.resolve()).replace("\\", "/").replace(":", "\\:")
117
- style = "Fontname=Arial,Fontsize=18,PrimaryColour=&H00FFFFFF,OutlineColour=&H00000000"
 
 
 
 
 
 
 
 
 
 
118
  return f"subtitles='{escaped}':force_style='{style}'"
 
114
 
115
  def _subtitle_filter(self, subtitle_path: Path) -> str:
116
  escaped = str(subtitle_path.resolve()).replace("\\", "/").replace(":", "\\:")
117
+ style = (
118
+ "Fontname=Arial,"
119
+ "Fontsize=22,"
120
+ "PrimaryColour=&H00FFFFFF,"
121
+ "OutlineColour=&H00000000,"
122
+ "BorderStyle=1,"
123
+ "Outline=2,"
124
+ "Shadow=1,"
125
+ "Alignment=2,"
126
+ "MarginV=210"
127
+ )
128
  return f"subtitles='{escaped}':force_style='{style}'"