Update app.py
Browse files
app.py
CHANGED
@@ -343,7 +343,7 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
|
|
343 |
#bidi_text = get_display(reshaped_text)
|
344 |
text_clip = TextClip(font, subtitle.text, font_size=fontsize, size=(int(video_width * 0.8), int(video_height * 0.2)) ,text_align="center" ,color=color, bg_color='black', method='caption').with_start(start_time).with_duration(duration)
|
345 |
subtitle_x_position = 'center'
|
346 |
-
subtitle_y_position = video_height * 0.
|
347 |
text_position = (subtitle_x_position, subtitle_y_position)
|
348 |
subtitle_clips.append(text_clip.with_position(text_position))
|
349 |
return subtitle_clips
|
|
|
343 |
#bidi_text = get_display(reshaped_text)
|
344 |
text_clip = TextClip(font, subtitle.text, font_size=fontsize, size=(int(video_width * 0.8), int(video_height * 0.2)) ,text_align="center" ,color=color, bg_color='black', method='caption').with_start(start_time).with_duration(duration)
|
345 |
subtitle_x_position = 'center'
|
346 |
+
subtitle_y_position = video_height * 0.6
|
347 |
text_position = (subtitle_x_position, subtitle_y_position)
|
348 |
subtitle_clips.append(text_clip.with_position(text_position))
|
349 |
return subtitle_clips
|