Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -401,7 +401,7 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
|
|
401 |
max_height = video_height * 0.2
|
402 |
#reshaped_text = arabic_reshaper.reshape(subtitle.text)
|
403 |
#bidi_text = get_display(reshaped_text)
|
404 |
-
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, method='caption').with_start(start_time).with_duration(duration)
|
405 |
subtitle_x_position = 'center'
|
406 |
subtitle_y_position = video_height * 0.68
|
407 |
text_position = (subtitle_x_position, subtitle_y_position)
|
|
|
401 |
max_height = video_height * 0.2
|
402 |
#reshaped_text = arabic_reshaper.reshape(subtitle.text)
|
403 |
#bidi_text = get_display(reshaped_text)
|
404 |
+
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, method='caption').with_opacity(0.8).with_start(start_time).with_duration(duration)
|
405 |
subtitle_x_position = 'center'
|
406 |
subtitle_y_position = video_height * 0.68
|
407 |
text_position = (subtitle_x_position, subtitle_y_position)
|