我如何在 windows 10 上安装 pyffmpeg

how do i install pyffmpeg on windows 10

任何人都可以指出我在 windows 10 计算机上安装 pyffmpeg 的正确方向。我似乎遇到了很多麻烦。这个需要cython吗?请感谢所有输入。

**更新我安装了 cython,它卡在 setup.py

在第 84 行安装时卡住

Traceback (most recent call last):
  File ".\setup.py", line 84, in <module>
incdir = incdir + list(nd.get_numpy_include_dirs())
TypeError: cannot concatenate 'str' and 'list' objects

ffmpeg 版本为 ffmpeg-20160415-git-21acc4d-win32-static

我也更改了它的文件路径

setup.py

中的这一行
    incdir = path_join(ffmpegpath, 'include')

不行,因为 incdir 在这里需要是一个数组:

if (with_numpy):
    incdir = incdir + list(nd.get_numpy_include_dirs())

所以,

if sys.platform in [ 'win32', 'win64' ] :
    libs = static_resolver(libs)
    libinc += [ r'/mingw/lib' ] # it seems some people require this
    incdir = [ path_join(ffmpegpath, 'include') ]
else:
    incdir = [ path_join(ffmpegpath, 'include'), "/usr/include" , "./include" ]

这可能对您帮助不大,因为可能需要旧版本的 ffmpeg。