Update app.py
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ def process_video(url):
|
|
214 |
output_video_file = input_video_name + '_subtitled' + ".mp4"
|
215 |
subtitle_clips = create_subtitle_clips(subtitles, video.size, 32, 'arial.ttf', 'yellow', False)
|
216 |
final_video = CompositeVideoClip([video] + subtitle_clips)
|
217 |
-
final_video.write_videofile(output_video_file, codec="libx264", audio_codec="aac")
|
218 |
return output_video_file
|
219 |
|
220 |
#def download_file(file_path):
|
|
|
214 |
output_video_file = input_video_name + '_subtitled' + ".mp4"
|
215 |
subtitle_clips = create_subtitle_clips(subtitles, video.size, 32, 'arial.ttf', 'yellow', False)
|
216 |
final_video = CompositeVideoClip([video] + subtitle_clips)
|
217 |
+
final_video.write_videofile(output_video_file, codec="libx264", audio_codec="aac", logger=None)
|
218 |
return output_video_file
|
219 |
|
220 |
#def download_file(file_path):
|