Retrieval-based-Voice-Conversion-WebUI icon indicating copy to clipboard operation
Retrieval-based-Voice-Conversion-WebUI copied to clipboard

ffmpeg error during infer, audio file path seems fine

Open archangel012 opened this issue 2 years ago • 3 comments

I get the following error when trying to infer however my file path for the audio file is "C:\Users\lolfa\Downloads\scatman2", which seems fine to me, and the filename is vocalscatman.wav, which also seems fine

Traceback (most recent call last): File "C:\Users\lolfa\Downloads\RVC-beta\my_utils.py", line 14, in load_audio ffmpeg.input(file, threads=0) File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\ffmpeg_run.py", line 325, in run raise Error('ffmpeg', out, err) ffmpeg._run.Error: ffmpeg error (see stderr output for detail)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\lolfa\Downloads\RVC-beta\infer-web.py", line 160, in vc_single audio = load_audio(input_audio_path, 16000) File "C:\Users\lolfa\Downloads\RVC-beta\my_utils.py", line 19, in load_audio raise RuntimeError(f"Failed to load audio: {e}") RuntimeError: Failed to load audio: ffmpeg error (see stderr output for detail)

Traceback (most recent call last): File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict output = await app.blocks.process_api( File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\blocks.py", line 1007, in process_api data = self.postprocess_data(fn_index, result["prediction"], state) File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\blocks.py", line 953, in postprocess_data prediction_value = block.postprocess(prediction_value) File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\components.py", line 2076, in postprocess processing_utils.audio_to_file(sample_rate, data, file.name) File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\processing_utils.py", line 206, in audio_to_file data = convert_to_16_bit_wav(data) File "C:\Users\lolfa\Downloads\RVC-beta\runtime\lib\site-packages\gradio\processing_utils.py", line 219, in convert_to_16_bit_wav if data.dtype in [np.float64, np.float32, np.float16]: AttributeError: 'NoneType' object has no attribute 'dtype'

archangel012 avatar Jun 09 '23 08:06 archangel012

im having this problem as well, can anyone help

ody007gr avatar Jun 09 '23 13:06 ody007gr

Maybe make sure that your filenames and paths don't have spaces? That's what worked for me.

SaltyBarnacles avatar Jun 11 '23 08:06 SaltyBarnacles

Is it only this path and file giving you the error? Also try running it under the batch conversion by uploading only that audio file and see if it still spits out the error.

sethtallen avatar Jun 12 '23 12:06 sethtallen

try using batch conversion it works.

krigrv avatar Jul 24 '23 15:07 krigrv

Make sure your path (folder names) do not contain any spaces, "_", "-", "()", "[]", "{}" etc. Just plain normal names.

Acrivec avatar Aug 28 '23 02:08 Acrivec

@archangel012 did u resolve this issue? I've same problem here

zimozimo000 avatar Dec 07 '23 09:12 zimozimo000

This issue was closed because it has been inactive for 15 days since being marked as stale.

github-actions[bot] avatar Apr 28 '24 04:04 github-actions[bot]