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

如何正确设置?ImageMagick的路径? #101

Open
hezta opened this issue Aug 12, 2024 · 1 comment
Open

如何正确设置?ImageMagick的路径? #101

hezta opened this issue Aug 12, 2024 · 1 comment

Comments

@hezta
Copy link

hezta commented Aug 12, 2024

我已找到虚拟环境funclip下的:funclip\lib\site-packages\moviepy\config_defaults.py
import os
IMAGEMAGICK_BINARY = r"C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe"
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio')
IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'auto-detect')

我这样设置后,依然出现:This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect
Keyboard interruption in main thread... closing server.
而我的ImageMagick已经安装在C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\

@aloxc
Copy link

aloxc commented Aug 16, 2024

路径中的\更改为/
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', 'C:/runtime/ffmpeg-6.0-full_build/bin/ffmpeg.exe')
IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', 'C:/Program Files/ImageMagick-7.1.1-Q16-HDRI/magick.exe')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants