Spaces:
Runtime error
Runtime error
Commit
·
757859b
1
Parent(s):
ed64e04
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,8 @@ def process_video(video, high_quality, target_language):
|
|
38 |
try:
|
39 |
ffmpeg.input(video_path).output(audio_output, acodec='pcm_s24le', ar=48000, map='a').run()
|
40 |
except ffmpeg.Error as e:
|
41 |
-
|
|
|
42 |
|
43 |
|
44 |
y, sr = sf.read("output_audio.wav")
|
|
|
38 |
try:
|
39 |
ffmpeg.input(video_path).output(audio_output, acodec='pcm_s24le', ar=48000, map='a').run()
|
40 |
except ffmpeg.Error as e:
|
41 |
+
stderr_output = e.stderr.decode('utf-8') if e.stderr else "Unknown error"
|
42 |
+
return f"FFmpeg error: {stderr_output}"
|
43 |
|
44 |
|
45 |
y, sr = sf.read("output_audio.wav")
|