• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

moviepy错误imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can download it by calling:

python 开心洋葱 3104次浏览 0个评论

moviepy报错

Traceback (most recent call last):
File “julia_gif.py”, line 5, in
from moviepy.editor import ImageSequenceClip
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\editor.py”, line 22, in
from .video.io.VideoFileClip import VideoFileClip
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\io\VideoFileClip.py”, line 3, in
from moviepy.video.VideoClip import VideoClip
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\VideoClip.py”, line 21, in
from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\video\io\ffmpeg_writer.py”, line 11, in
from moviepy.config import get_setting
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\moviepy\config.py”, line 35, in
FFMPEG_BINARY = get_exe()
File “C:\Users\yang\AppData\Local\Programs\Python\Python36\lib\site-packages\imageio\plugins\ffmpeg.py”, line 86, in get_exe
raise NeedDownloadError(‘Need ffmpeg exe. ‘
imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can download it by calling:
imageio.plugins.ffmpeg.download()

解决办法:
下载ffmpeg.win32.exe到你的电脑。

确认你是windows系统, 因为我现在是在windows下开发的.

下载ffmpeg.win32.exe, 因为国外网站容易被墙, 所以我这里提供了自己的下载地址:ffmpeg.win32

放到ffmpeg的appdata文件夹下, 我的文件夹路径是C:\Users\yangt\AppData\Local\imageio\ffmpeg, 你的路径很可能是只需要改一下系统用户名yangt

确保放进去的文件名一定改成ffmpeg.win32.exe, 因为程序里就是硬编码的这个文件名.

问题解决, 测试一下


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明moviepy错误imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can download it by calling:
喜欢 (4)

您必须 登录 才能发表评论!

加载中……