[GH-ISSUE #1329] Getting failed to load audio error #858

Open
opened 2026-10-20 10:03:42 +00:00 by bsakaguchi · 6 comments
Owner

Originally created by @DhananjayPurohit on GitHub (Sep 24, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1329

I am storing the voice like this:-

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
353dd9|OK  |   472KiB/s|/content/Retrieval-based-Voice-Conversion-WebUI/dataset/alia.wav

On running the cell having commands:-

%cd /content/Retrieval-based-Voice-Conversion-WebUI
sudo python3 infer-web.py --colab --pycmd python3

the UI is starting up:-
Screenshot (318)

I think it's taking the location fine as it can read up the wav file inside the dataset folder but still getting the error:-

start preprocess
['trainset_preprocess_pipeline_print.py', 'dataset', '40000', '2', '/content/Retrieval-based-Voice-Conversion-WebUI/logs/mi-test', 'False']
dataset/alia.wav->Traceback (most recent call last):
  File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 14, in load_audio
    ffmpeg.input(file, threads=0)
  File "/usr/local/lib/python3.8/dist-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 "trainset_preprocess_pipeline_print.py", line 75, in pipeline
    audio = load_audio(path, self.sr)
  File "/content/Retrieval-based-Voice-Conversion-WebUI/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)

end preprocess

I have tried all the ways quotes and without quotes, using double slashes and single slash, don't have spaces in file or folder name.

Any suggestions or help will be much appreciated.

Thanks in advance.

Originally created by @DhananjayPurohit on GitHub (Sep 24, 2023). Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/1329 I am storing the voice like this:- ``` Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= 353dd9|OK | 472KiB/s|/content/Retrieval-based-Voice-Conversion-WebUI/dataset/alia.wav ``` On running the cell having commands:- ``` %cd /content/Retrieval-based-Voice-Conversion-WebUI sudo python3 infer-web.py --colab --pycmd python3 ``` the UI is starting up:- ![Screenshot (318)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/44242169/93af47f4-1fcc-46a6-bf97-0218c25eed54) I think it's taking the location fine as it can read up the wav file inside the `dataset` folder but still getting the error:- ``` start preprocess ['trainset_preprocess_pipeline_print.py', 'dataset', '40000', '2', '/content/Retrieval-based-Voice-Conversion-WebUI/logs/mi-test', 'False'] dataset/alia.wav->Traceback (most recent call last): File "/content/Retrieval-based-Voice-Conversion-WebUI/my_utils.py", line 14, in load_audio ffmpeg.input(file, threads=0) File "/usr/local/lib/python3.8/dist-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 "trainset_preprocess_pipeline_print.py", line 75, in pipeline audio = load_audio(path, self.sr) File "/content/Retrieval-based-Voice-Conversion-WebUI/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) end preprocess ``` I have tried all the ways quotes and without quotes, using double slashes and single slash, don't have spaces in file or folder name. Any suggestions or help will be much appreciated. Thanks in advance.
Author
Owner

@ZZZ-zero commented on GitHub (Sep 28, 2023):

ffmpeg可能是因为它不需要将wav转为wav文件而报错,也可能是由于ffmpeg版本报错,请先尝试重装ffmpeg。

<!-- gh-comment-id:1738321578 --> @ZZZ-zero commented on GitHub (Sep 28, 2023): ffmpeg可能是因为它不需要将wav转为wav文件而报错,也可能是由于ffmpeg版本报错,请先尝试重装ffmpeg。
Author
Owner

@DhananjayPurohit commented on GitHub (Oct 1, 2023):

I have tried downgrading the ffmpeg version. Can you specify the version I should try with?

<!-- gh-comment-id:1741972726 --> @DhananjayPurohit commented on GitHub (Oct 1, 2023): I have tried downgrading the ffmpeg version. Can you specify the version I should try with?
Author
Owner

@RVC-Boss commented on GitHub (Oct 8, 2023):

try copying the absolute path of dataset?

<!-- gh-comment-id:1751997519 --> @RVC-Boss commented on GitHub (Oct 8, 2023): try copying the absolute path of dataset?
Author
Owner

@DhananjayPurohit commented on GitHub (Oct 8, 2023):

I have tried absolute path as well but getting the same error. I tried drilling down the issue and found that it's saving the feature extraction file in /logs/mute instead of
/logs/mi-test. Is there anything wrong with my audio file? Any ways to fix this?
FileNotFoundError: [Errno 2] No such file or directory: '/content/Retrieval-based-Voice-Conversion-WebUI/logs/mi-test/3_feature256'

My folder structure:-

.
   |-TEMP
   |-_pycache_
   |-configs
   |-dataset
   |-docs
   |-i18n
   |-infer
   |-infer_pack
   |---_pycache_
   |-logs
   |---mi-test
   |-----0_gt_wavs
   |-----1_16k_wavs
   |-----2a_f0
   |-----2b-f0nsf
   |---mute
   |-----0_gt_wavs
   |-----1_16k_wavs
   |-----2a_f0
   |-----2b-f0nsf
   |-----3_feature256
   |-----3_feature768
   |---na
   |-----0_gt_wavs
   |-----1_16k_wavs
   |-----2a_f0
   |-----2b-f0nsf
   |---nigga
   |-----0_gt_wavs
   |-----1_16k_wavs
   |-----2a_f0
   |-----2b-f0nsf
   |-pretrained
   |-pretrained_v2
   |-train
   |---_pycache_
   |-uvr5_pack
   |---_pycache_
   |---lib_v5
   |-----_pycache_
   |-----modelparams
   |-uvr5_weights
   |-weights
<!-- gh-comment-id:1752011511 --> @DhananjayPurohit commented on GitHub (Oct 8, 2023): I have tried absolute path as well but getting the same error. I tried drilling down the issue and found that it's saving the feature extraction file in `/logs/mute` instead of `/logs/mi-test`. Is there anything wrong with my audio file? Any ways to fix this? `FileNotFoundError: [Errno 2] No such file or directory: '/content/Retrieval-based-Voice-Conversion-WebUI/logs/mi-test/3_feature256'` My folder structure:- ``` . |-TEMP |-_pycache_ |-configs |-dataset |-docs |-i18n |-infer |-infer_pack |---_pycache_ |-logs |---mi-test |-----0_gt_wavs |-----1_16k_wavs |-----2a_f0 |-----2b-f0nsf |---mute |-----0_gt_wavs |-----1_16k_wavs |-----2a_f0 |-----2b-f0nsf |-----3_feature256 |-----3_feature768 |---na |-----0_gt_wavs |-----1_16k_wavs |-----2a_f0 |-----2b-f0nsf |---nigga |-----0_gt_wavs |-----1_16k_wavs |-----2a_f0 |-----2b-f0nsf |-pretrained |-pretrained_v2 |-train |---_pycache_ |-uvr5_pack |---_pycache_ |---lib_v5 |-----_pycache_ |-----modelparams |-uvr5_weights |-weights ```
Author
Owner

@DhananjayPurohit commented on GitHub (Nov 28, 2023):

@ZZZ-zero @RVC-Boss

<!-- gh-comment-id:1830170351 --> @DhananjayPurohit commented on GitHub (Nov 28, 2023): @ZZZ-zero @RVC-Boss
Author
Owner

@PasiKoodaa commented on GitHub (May 4, 2024):

I had the same error in WLS2 Ubuntu, the fix was

pip install ffmpeg-python
instead of
pip install ffmpeg

<!-- gh-comment-id:2093930042 --> @PasiKoodaa commented on GitHub (May 4, 2024): I had the same error in WLS2 Ubuntu, the fix was pip install ffmpeg-python instead of pip install ffmpeg
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#858
No description provided.