Open Cptn-Reynolds opened 1 year ago
Error during Inference
Error: Traceback (most recent call last):
File "/Users/cptnray/rvc-webui/modules/utils.py", line 23, in load_audio
ffmpeg.input(file, threads=0)
File "/Users/cptnray/rvc-webui/venv/lib/python3.10/site-packages/ffmpeg/_run.py", line 313, in run
process = run_async(
File "/Users/cptnray/rvc-webui/venv/lib/python3.10/site-packages/ffmpeg/_run.py", line 284, in run_async
return subprocess.Popen(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cptnray/rvc-webui/modules/tabs/inference.py", line 108, in infer
audio = model.single(
File "/Users/cptnray/rvc-webui/modules/models.py", line 124, in single
audio = load_audio(input_audio, 16000)
File "/Users/cptnray/rvc-webui/modules/utils.py", line 28, in load_audio
raise RuntimeError(f"Failed to load audio: {e}")
RuntimeError: Failed to load audio: [Errno 2] No such file or directory: 'ffmpeg'
To use this software, ffmpeg
must be installed on your PC.
If you are using MacOS, you can install ffmpeg
using homebrew
.
According to the Requirements.txt, the ffmpeg-python package is installed in the python environment when running webui.sh - shouldn't this be enough?
I recognize that ffmpeg-python
is a library for operating ffmpeg
installed on os.
So you need ffmpeg
installed.
I see, thanks for clarifying :) Will update you after testing
Could you possibly provide a link to the instructions for macOS installation? It's all a bit bewildering.
I saw there is a macos version of the gui and got it running.
I was able to "train index" one time and "train", but when trying to use "Inference" afterwards, it crashed with an ffmpeg error.
Error while train indexing