Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Problems with ffmpeg (Windows 10) #672

Open
PSCM opened this issue Oct 27, 2021 · 5 comments
Open

[Discussion] Problems with ffmpeg (Windows 10) #672

PSCM opened this issue Oct 27, 2021 · 5 comments
Labels
ffmpeg question Further information is requested windows Windows related issues

Comments

@PSCM
Copy link

PSCM commented Oct 27, 2021

Hi, I'm having trouble working with the spleeter. I am currently using Windows 10 and pip.

I have already followed the steps suggested in the following questions:
#666
#546
#456

I've installed and uninstalled all possible files, all libraries and still get error messages.

I've already followed this tutorial: https://www.wikihow.com/Install-FFmpeg-on-Windows

And these:
https://www.youtube.com/watch?v=qjtmgCb8NcE&t=359s
https://www.youtube.com/watch?v=qjtmgCb8NcE

Here are my attempts:

On Jupyter Notebook:
1

2

In cmd:
3

Checking if ffmpeg is installed:
4

Checking the ffmpeg in the environment variables:
5

I really don't know what I'm doing wrong. It should probably be something basic, but it's my first time working with this library.

I apologize for asking, but if anyone has any ideas that might help me, I appreciate it!

@PSCM PSCM added the question Further information is requested label Oct 27, 2021
@mmoussallam
Copy link
Collaborator

Hi @PSCM

It's pretty weird indeed. The only explanation I see is that you have ffmpeg accessible locally (from within you home folder) but not at the root system level. Maybe you can try moving the FFMpeg directory to something like C:\ffmpeg\bin and update the PATH environment variable to point to that too.

@mmoussallam mmoussallam added ffmpeg windows Windows related issues labels Oct 27, 2021
@IgorArnaut
Copy link

IgorArnaut commented Apr 10, 2022

I put ffmpeg in C:\ffmpeg\bin and added it to PATH and Spleeter won't still work.

@PiYuanZhouLv
Copy link

I'm sorry for my poor English. If you find any spell or garmmar errors, please ignore them or help me to correct them, thanks.

I met the same error on my Win10.
我在Win10上也遇到了这个问题
It looks like this:
它看上去是这样的:
图片

Then, I try it in python shell, I got this error:
然后, 我在 Python shell 里运行了一下, 得到了这个错误:
图片
I tried to track it back, I found that it went wrong on this line:
我尝试找到问题所在, 发现是在这报错的:
图片
After that, I tried it again in my python shell, the result was like this:
我在 Python shell 里试了下,发现结果是这样的:
图片
So the result shows that “which” couldn't find “ffmpeg”, but it could find “ffmpeg.exe” on my PC.
所以“which”找不到“ffmpeg”,但它能找到“ffmpeg.exe”。
I replace the “ffmpeg” to “ffmpeg.exe”, “ffprobe” to “ffprobe.exe”. It works well, although another error is raised.
我就把“ffmpeg”换成了“ffmpeg.exe”、“ffprobe”换成了“ffprobe.exe”。问题就解决了(尽管另一个问题出现了)
图片

Solution 解决方案

In “Path/to/your/spleeter/audio/ffmpeg.py”
(Line 60) Replace "ffmpeg" to "ffmpeg.exe", replace "ffprobe" to "ffprobe.exe".

OK, I'm going to solve another error then, bye.
我要去解决另一个问题了,再见!

@PiYuanZhouLv
Copy link

I come back. It seems not spleeter mistake. Instead, it may be Python's.
我回来了,这似乎不是spleeter的错误,相反,这可能是Python的。
The step of checking whether it exists or not uses this expression:
检查它是否存在的那一步使用的是下面的这个表达式:

My python's version is 3.7.5, this mistake may be fixed in later version.
我的Python版本是3.7.5,这个错误可能在后面的版本已经被修复了。

def which(cmd, mode=os.F_OK | os.X_OK, path=None):
    # Skip some line
    def _access_check(fn, mode):
        return (os.path.exists(fn) and os.access(fn, mode) # Important ! It just check if it exists on your PC,
                and not os.path.isdir(fn)) # you have the access to it and it isn't a dir.

它只检查它 存在你的电脑上、你有使用权并且那不是一个文件夹

Anyhow, the way, which I mentioned above this, is useful when the "which" function don't work well.
不管怎么说,我在上一条评论里提到的解决方案在which函数有问题时是有用的。
This is the output after I put the models in the right place:
这是我把模型放在正确位置后的输出:
图片
Yes, it works well.
没错,它能正常运行了。

@ninjadev-1203
Copy link

I executed it on power shell command prompt. and then it worked. wow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ffmpeg question Further information is requested windows Windows related issues
Projects
None yet
Development

No branches or pull requests

5 participants