Python Moviepy installation problems (windows 7x64)

≡放荡痞女 提交于 2019-12-10 23:49:25

问题


Good day, i have a problem with instalation moviepy for python 64 bit and windows 64 bit.

Library was succesfully installed, file ffmpeg downloaded.

Every time i run it or using

video = VideoFileClip("path") 

OSError: [WinError 193] %1 is not valid win32 application.

How can this be solved? Imagemagick and PIL are already installed.


回答1:


 # moviepy.__version__=='0.2.3.5'

solved following next steps :

1) manual download following instructions here adaptivesamples.com/how-to-install-ffmpeg-on-windows;

2) disable autodownloading in /site-packages/moviepy/editor.py line 25:

if False: #os.getenv('FFMPEG_BINARY', 'ffmpeg-imageio') == 'ffmpeg-imageio':
    imageio.plugins.ffmpeg.download()

3) set path to binaries in /site-packages/moviepy/config-defaults.py line 53-54:

FFMPEG_BINARY = pathWithFilenameForDownloadedAndUnzipped_ffmpeg.exe ;
IMAGEMAGICK_BINARY =  ..\magick.exe"


来源:https://stackoverflow.com/questions/50380974/python-moviepy-installation-problems-windows-7x64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!