Spaces:
Paused
Paused
Commit
·
159a568
1
Parent(s):
5167afd
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,6 +69,7 @@ def process_video(Video, target_language):
|
|
| 69 |
# Debugging: Validate FFmpeg command for subtitle embedding
|
| 70 |
print("Validating FFmpeg command for subtitle embedding...")
|
| 71 |
try:
|
|
|
|
| 72 |
result = run(["ffmpeg", "-i", Video, "-vf", f"subtitles={translated_file}", output_video])
|
| 73 |
if result.returncode == 0:
|
| 74 |
print("FFmpeg executed successfully.")
|
|
|
|
| 69 |
# Debugging: Validate FFmpeg command for subtitle embedding
|
| 70 |
print("Validating FFmpeg command for subtitle embedding...")
|
| 71 |
try:
|
| 72 |
+
print(os.path.exists(translated_file))
|
| 73 |
result = run(["ffmpeg", "-i", Video, "-vf", f"subtitles={translated_file}", output_video])
|
| 74 |
if result.returncode == 0:
|
| 75 |
print("FFmpeg executed successfully.")
|