deezer / spleeter

Deezer source separation library including pretrained models.
https://research.deezer.com/projects/spleeter.html
MIT License
25.93k stars 2.84k forks source link

[Bug] ERROR:spleeter:ffmpeg binary not found #816

Open KooperTheTrooper15 opened 1 year ago

KooperTheTrooper15 commented 1 year ago

Description

After following all of the provided steps for installation, having installed ffmpeg and libsndfile, the only outcome when I try to separate a tarck is this. ERROR:spleeter:ffmpeg binary not found

Step to reproduce

  1. Dependencies installed using miniconda3
  2. Library installed using pip in regular cmd
  3. Run spleeter separate -o audio_output [my file's directory]

Output

Expected outcome: The program getting my tracks separated.

Obtained outcome:

ERROR:spleeter:ffmpeg binary not found

Environment

OS Windows 11 Home 64 bits
Installation type Conda / pip
RAM available 7.30 GB
Hardware spec Nvidia Geforce GTX 1650, AMD Ryzen 5
Computer HP Pavilion Gaming Laptop 15

Additional context

At first, i didn't know how to install ffmpeg so i just downloaded it from the webpage and executed it, then closed it. It didn't do anything so I installed ffmpeg with pip. I checked a ton of times that it was installed before everything else. Then, i executed pip install spleeter. After some time, it says everything is completed, but I double check everything's done executing pip install spleeter. I try to separate the file as the image says, and I receive the error. Later, I realize that I shouldn't have installed ffmpeg with pip, so I pip uninstall spleeter and then hop on to miniconda3 (anaconda, basically) to run conda install -c conda-forge ffmpeg libsndfile. It goes fine. I open cmd and run pip install spleeter once more to see if it works. Same error comes out. What did I do wrong here? How can I fix this? Do you recommend me any tutorials? I couldn't find any of them that were up to date. Thanks.

gitinmathew commented 1 year ago

Encountered the same issue. I have installed ffmpeg-python. Using Windows machine

CMD>python -m spleeter separate -p spleeter:2stems -o output audio_example.mp3 ERROR:spleeter:ffmpeg binary not found

CMD> python -m pip show ffmpeg-python Name: ffmpeg-python Version: 0.2.0 Summary: Python bindings for FFmpeg - with complex filtering support Home-page: https://github.com/kkroening/ffmpeg-python Author: Karl Kroening Author-email: karlk@kralnet.us License: UNKNOWN Location: \appdata\local\programs\python\python38\lib\site-packages Requires: future Required-by: spleeter

gitinmathew commented 1 year ago

FFMPEG exe package file and adding the path to environment variable worked for me. For download check out: https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-essentials.7z

28Lex28 commented 3 months ago

FFMPEG exe package file and adding the path to environment variable worked for me. For download check out: https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-essentials.7z

Thank you - this was very helpful