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
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)
For Windows 10 users.
I think you also need to install ffmpeg with your package manager, e.g.:
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 thenpip3 install ffmpeg
in my projectvenv
. This gave meAttributeError: module 'ffmpeg' has no attribute '_run'
Which I found the solution to in this Solution:But wait. There’s more.
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:
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.