Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,15 +148,15 @@ def process_video(video_file, language="hindi", progress=gr.Progress()):
|
|
| 148 |
print(f"FFmpeg command: {' '.join(ffmpeg_cmd)}")
|
| 149 |
|
| 150 |
try:
|
| 151 |
-
|
| 152 |
ffmpeg_cmd,
|
| 153 |
check=True,
|
| 154 |
capture_output=True,
|
| 155 |
text=True,
|
| 156 |
timeout=600
|
| 157 |
)
|
| 158 |
-
print(f"FFmpeg stdout: {
|
| 159 |
-
print(f"FFmpeg stderr: {
|
| 160 |
except subprocess.CalledProcessError as e:
|
| 161 |
print(f"FFmpeg failed!")
|
| 162 |
print(f"Return code: {e.returncode}")
|
|
|
|
| 148 |
print(f"FFmpeg command: {' '.join(ffmpeg_cmd)}")
|
| 149 |
|
| 150 |
try:
|
| 151 |
+
ffmpeg_result = subprocess.run(
|
| 152 |
ffmpeg_cmd,
|
| 153 |
check=True,
|
| 154 |
capture_output=True,
|
| 155 |
text=True,
|
| 156 |
timeout=600
|
| 157 |
)
|
| 158 |
+
print(f"FFmpeg stdout: {ffmpeg_result.stdout}")
|
| 159 |
+
print(f"FFmpeg stderr: {ffmpeg_result.stderr}")
|
| 160 |
except subprocess.CalledProcessError as e:
|
| 161 |
print(f"FFmpeg failed!")
|
| 162 |
print(f"Return code: {e.returncode}")
|