Commit
·
5d7177a
1
Parent(s):
fc4d939
fix subtitle functionality.
Browse files- utils/process_video.py +1 -1
utils/process_video.py
CHANGED
|
@@ -25,7 +25,7 @@ def process_video(invideo_filename:str,
|
|
| 25 |
OUTVIDEO_PATH = os.path.join(invideo_path_parts[-3], invideo_path_parts[-2], f"result_{VIDEO_NAME}")
|
| 26 |
if srt_path:
|
| 27 |
subtitler(invideo_filename, srt_path, OUTVIDEO_PATH, fontsize, font, bg_color, text_color)
|
| 28 |
-
return OUTVIDEO_PATH
|
| 29 |
logging.info("Converting Video to Audio")
|
| 30 |
INAUDIO_PATH = os.path.abspath(f"{invideo_filename.split('.')[0]}.m4a")
|
| 31 |
if not os.path.exists(INAUDIO_PATH):
|
|
|
|
| 25 |
OUTVIDEO_PATH = os.path.join(invideo_path_parts[-3], invideo_path_parts[-2], f"result_{VIDEO_NAME}")
|
| 26 |
if srt_path:
|
| 27 |
subtitler(invideo_filename, srt_path, OUTVIDEO_PATH, fontsize, font, bg_color, text_color)
|
| 28 |
+
return OUTVIDEO_PATH, srt_path
|
| 29 |
logging.info("Converting Video to Audio")
|
| 30 |
INAUDIO_PATH = os.path.abspath(f"{invideo_filename.split('.')[0]}.m4a")
|
| 31 |
if not os.path.exists(INAUDIO_PATH):
|