Update app.py
Browse files
app.py
CHANGED
|
@@ -216,7 +216,7 @@ def add_transcript_to_video(video_path, translated_json, output_path):
|
|
| 216 |
font=font_path,
|
| 217 |
method='caption',
|
| 218 |
color='yellow',
|
| 219 |
-
|
| 220 |
size=(max_subtitle_width, None) # Restrict the width to ensure wrapping
|
| 221 |
).with_start(entry["start"]).with_duration(entry["end"] - entry["start"]).with_position(('bottom')).with_opacity(0.7)
|
| 222 |
text_clips.append(txt_clip)
|
|
|
|
| 216 |
font=font_path,
|
| 217 |
method='caption',
|
| 218 |
color='yellow',
|
| 219 |
+
font_size=subtitle_font_size, # Use relative font size
|
| 220 |
size=(max_subtitle_width, None) # Restrict the width to ensure wrapping
|
| 221 |
).with_start(entry["start"]).with_duration(entry["end"] - entry["start"]).with_position(('bottom')).with_opacity(0.7)
|
| 222 |
text_clips.append(txt_clip)
|