SPACERUNNER99 commited on
Commit
9ba636f
·
verified ·
1 Parent(s): feefcf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -352,7 +352,7 @@ def create_subtitle_clips(subtitles, videosize, fontsize, font, color, debug):
352
  text_clip = TextClip(font, subtitle.text, font_size=fontsize, size=(int(video_width * 0.68), int(video_height * 0.2)) ,text_align="center" ,color=color, bg_color='black', method='caption').with_start(start_time).with_duration(duration)
353
  color_clip = ColorClip(size=(int(max_width), int(max_height)),
354
  color=(0, 255, 255))
355
- color_clip = color_clip.set_opacity(.6)
356
  subtitle_x_position = 'center'
357
  subtitle_y_position = video_height * 0.74
358
  text_position = (subtitle_x_position, subtitle_y_position)
 
352
  text_clip = TextClip(font, subtitle.text, font_size=fontsize, size=(int(video_width * 0.68), int(video_height * 0.2)) ,text_align="center" ,color=color, bg_color='black', method='caption').with_start(start_time).with_duration(duration)
353
  color_clip = ColorClip(size=(int(max_width), int(max_height)),
354
  color=(0, 255, 255))
355
+ color_clip = color_clip.with_opacity(.6)
356
  subtitle_x_position = 'center'
357
  subtitle_y_position = video_height * 0.74
358
  text_position = (subtitle_x_position, subtitle_y_position)