From 981ec0ddb8eaea1895b20f3cbc1b6d5117463843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 1 Apr 2023 15:10:46 +0800 Subject: [PATCH] fix ffmpeg --- my_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my_utils.py b/my_utils.py index c82c754..71d4b1e 100644 --- a/my_utils.py +++ b/my_utils.py @@ -8,7 +8,7 @@ def load_audio(file,sr): out, _ = ( ffmpeg.input(file, threads=0) .output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=sr) - .run(cmd=["./ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True) + .run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True) ) except ffmpeg.Error as e: raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e