app.py
CHANGED
@@ -31,11 +31,12 @@ def combine_video_subtitle(video_file :_TemporaryFileWrapper , subtitle_file):
|
|
31 |
|
32 |
output_file
|
33 |
]
|
34 |
-
|
|
|
35 |
res = subprocess.run(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
36 |
print(res)
|
37 |
|
38 |
-
return [
|
39 |
except subprocess.CalledProcessError as e:
|
40 |
error_message = f"An error occurred: {e.returncode}\n{e.stderr.decode()}"
|
41 |
print(error_message)
|
|
|
31 |
|
32 |
output_file
|
33 |
]
|
34 |
+
print(os.getcwd())
|
35 |
+
file_path = os.path.join(os.getcwd() , "subtitle.ass" )
|
36 |
res = subprocess.run(cmd1, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
37 |
print(res)
|
38 |
|
39 |
+
return [file_path ,res]
|
40 |
except subprocess.CalledProcessError as e:
|
41 |
error_message = f"An error occurred: {e.returncode}\n{e.stderr.decode()}"
|
42 |
print(error_message)
|