modelscope / FunClip

Open-source, accurate and easy-to-use video speech recognition & clipping tool, LLM based AI clipping intergrated.
MIT License
3.26k stars 343 forks source link

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

Open hezta opened 1 month ago

hezta commented 1 month ago

我已找到虚拟环境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 commented 4 weeks ago

路径中的\更改为/ 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')