Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ def read_subtitle_file(subtitle_path):
|
|
9 |
return os.path.basename(subtitle_path), subtitle_content
|
10 |
|
11 |
def add_subtitle_to_video(input_video, subtitle_file, subtitle_language, soft_subtitle):
|
|
|
12 |
video_input_stream = ffmpeg.input(input_video)
|
13 |
subtitle_input_stream = ffmpeg.input(subtitle_file)
|
14 |
input_video_name = os.path.splitext(os.path.basename(input_video))[0]
|
|
|
9 |
return os.path.basename(subtitle_path), subtitle_content
|
10 |
|
11 |
def add_subtitle_to_video(input_video, subtitle_file, subtitle_language, soft_subtitle):
|
12 |
+
subtitle_file_path = subtitle_file.replace(" ", "\\ ")
|
13 |
video_input_stream = ffmpeg.input(input_video)
|
14 |
subtitle_input_stream = ffmpeg.input(subtitle_file)
|
15 |
input_video_name = os.path.splitext(os.path.basename(input_video))[0]
|