mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-03-04 12:54:58 +00:00
fix ffmpeg
This commit is contained in:
@@ -8,7 +8,7 @@ def load_audio(file,sr):
|
|||||||
out, _ = (
|
out, _ = (
|
||||||
ffmpeg.input(file, threads=0)
|
ffmpeg.input(file, threads=0)
|
||||||
.output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=sr)
|
.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:
|
except ffmpeg.Error as e:
|
||||||
raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e
|
raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e
|
||||||
|
|||||||
Reference in New Issue
Block a user