From Pydub: [FileNotFoundError: [WinError 2] The system cannot find the file specified] OR [RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work] #8
C:\Users\jeje9\Desktop\rvc_test\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
...
Traceback (most recent call last):
File "C:\Users\jeje9\Desktop\rvc_test\rvc_test.py", line 35, in <module>
for i in result:
File "C:\Users\jeje9\Desktop\rvc_test\lib\site-packages\rvc\modules\uvr5\modules.py", line 77, in uvr_wrapper
AudioSegment.from_file(process_path).export(
File "C:\Users\jeje9\Desktop\rvc_test\lib\site-packages\pydub\audio_segment.py", line 963, in export
p = subprocess.Popen(conversion_command, stdin=devnull, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Users\jeje9\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\jeje9\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1456, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
If you have this error then fear not, it can be fixed pretty easily:
For developpers using the RVC library:
If you have this error then fear not, it can be fixed pretty easily:
pydub.AudioSegment.converter = os.getcwd() + "\ffmpeg.exe" # or any other path to ffmpeg, as long as it is absolute and not relative.