spleeter: , message: ffmpeg binary not found

from spleeter.separator import Separator

separator = Separator('spleeter:2stems')
separator.separate_to_file(temp_file, '/var/www/myproject/')

above code rise below error

<class 'spleeter.SpleeterError'>, message: ffmpeg binary not found

image

ffmpeg is installed correctly at /usr/bin/

spleeter version = 1.5.4 python version = 3.6.5 os : ubuntu 20.0.4 nginx + uwsgi

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

For Windows 10 users.

  1. download FFmpeg from: http://ffmpeg.org/download.html#build-windows
  2. extract the binaries: FFmpeg and FFprobe
  3. add the path to these binaries to environment variables image

I think you also need to install ffmpeg with your package manager, e.g.:

sudo apt install ffmpeg

I was stuck at the same step, eventually followed @DanielHammerin’s answer. But installed “ffmpeg” manually using the following wikihow link before installing “spleeter” using the PIP command. https://www.wikihow.com/Install-FFmpeg-on-Windows Then did the steps that @DanielHammerin mentioned viz. - pip uninstall ffmpeg pip uninstall ffmpeg-python pip install ffmpeg-python And voila, it worked. 😃

I’ve followed your steps but my spleeter doesn’t work yet. It still says: ERROR:spleeter:ffmpeg binary not found

Ok, I’ve solved it. You have to make shure that ffmpeg is installed in the system evironmant variables. For Windows users just follow this tutorial: https://www.youtube.com/watch?v=qjtmgCb8NcE&ab_channel=LinuxLeech

I was stuck at the same step, eventually followed @DanielHammerin’s answer. But installed “ffmpeg” manually using the following wikihow link before installing “spleeter” using the PIP command. https://www.wikihow.com/Install-FFmpeg-on-Windows

Then did the steps that @DanielHammerin mentioned viz. -
pip uninstall ffmpeg pip uninstall ffmpeg-python pip install ffmpeg-python

And voila, it worked. 😃

Maybe you already solved it but I just ran sudo pkcon install ffmpeg in my terminal and then pip3 install ffmpeg in my project venv. This gave me AttributeError: module 'ffmpeg' has no attribute '_run' Which I found the solution to in this Solution:

pip install ffmpeg-python instead of pip install ffmpeg

But wait. There’s more.

I’m guessing this happens if you’ve installed both, ffmpeg and ffmpeg-python. uninstall both with: pip uninstall ffmpeg pip uninstall ffmpeg-python and install ffmpeg-python again with : pip install ffmpeg-python This solved the problem in my system 😃

Now I have a working spleeter lib in my project.

no it dose not work for mee

I can’t see anything wrong in this configuration. ffmpeg seems to be properly installed and accessible. But you said:

when i try to do this in my python shell it’s work fine

So it seems that the environment where your flask server is run may not be the same. ffmpeg as to be accessible from it and it seems not to be.