Lenylvt commited on
Commit
7c2e039
·
verified ·
1 Parent(s): 6f2b410

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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]