Open Raviu56 opened 10 months ago
It was fixed after running
pip install ffmpeg
Should be added to encodec dependencies
installing ffmpeg didn't fix this for me, but doing pip install soundfile
did
I am having issue with MacOS (M2 Max).
File "/Users/rahul/.local/lib/python3.11/site-packages/torchaudio/_backend/utils.py", line 312, in save backend = dispatcher(uri, format, backend) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/rahul/.local/lib/python3.11/site-packages/torchaudio/_backend/utils.py", line 222, in dispatcher raise RuntimeError(f"Couldn't find appropriate backend to handle uri {uri} and format {format}.") RuntimeError: Couldn't find appropriate backend to handle uri separated/htdemucs/02 Saans/vocals.wav and format None.
demucs --segment 6 -d cpu --two-stems=vocals songs/02\ Saans.wav demucs --two-stems=vocals songs/02\ Saans.wav
╰─$ pip list Package Version Editable project location
antlr4-python3-runtime 4.9.3 attrs 23.2.0 cffi 1.16.0 cloudpickle 3.0.0 colorama 0.4.6 colorlog 6.8.2 Cython 3.0.10 demucs 4.1.0a2 /Volumes/Work/projects/research/demucs diffq 0.2.4 dora_search 0.1.12 einops 0.7.0 ffmpeg 1.4 ffmpeg-python 0.2.0 filelock 3.13.4 fsspec 2024.3.1 future 1.0.0 gmpy2 2.1.2 hydra-colorlog 1.2.0 hydra-core 1.3.2 Jinja2 3.1.3 jsonschema 4.21.1 jsonschema-specifications 2023.12.1 julius 0.2.7 lameenc 1.7.0 MarkupSafe 2.1.5 mpmath 1.3.0 musdb 0.4.2 museval 0.4.1 networkx 3.2.1 numpy 1.26.4 omegaconf 2.3.0 openunmix 1.2.1 packaging 24.0 pandas 2.2.2 pip 24.0 pyaml 23.12.0 pycparser 2.22 python-dateutil 2.9.0.post0 pytz 2024.1 PyYAML 6.0.1 referencing 0.34.0 retrying 1.3.4 rpds-py 0.18.0 scipy 1.13.0 setuptools 69.5.1 simplejson 3.19.2 six 1.16.0 soundfile 0.12.1 stempeg 0.2.3 submitit 1.5.1 sympy 1.12 torch 2.0.0 torchaudio 2.0.1 tqdm 4.66.2 treetable 0.2.5 typing_extensions 4.11.0 tzdata 2024.1 wheel 0.43.0
@therahulr please try to install libsox.so and check again
One of the possible commands:
brew install sox
pip install soundfile
🐛 Bug Report
Whenever I run encodec I get:
To Reproduce
(Write your steps here:)
pip install -U git+https://git@github.com/facebookresearch/encodec#egg=encodec
encodec -b 3.0 -s encodec cut_original.wav
I've trying different file formats mp3/m4a and others, no successExpected behavior
It should simply work
Actual Behavior
Error above
Your Environment