raise NeedDownloadError ('Need ffmpeg exe.' NeedDownloadError: Need ffmpeg exe)

0

I'm trying to run an unofficial Instagram API written in Python, after several fixed dependency errors are fixed I'm stuck on this error:

File "C:\Users\Pablo\Desktop\txts_pys_phps_programacion\Instagram-API-python-master\InstagramAPI.py", line 15, in <module>
    from moviepy.editor import VideoFileClip
  File "C:\Python27\lib\site-packages\moviepy\editor.py", line 22, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "C:\Python27\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 20, in <module>
    from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
  File "C:\Python27\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 15, in <module>
    from moviepy.config import get_setting
  File "C:\Python27\lib\site-packages\moviepy\config.py", line 38, in <module>
    FFMPEG_BINARY = get_exe()
  File "C:\Python27\lib\site-packages\imageio\plugins\ffmpeg.py", line 86, in get_exe
    raise NeedDownloadError('Need ffmpeg exe. '
NeedDownloadError: Need ffmpeg exe. You can download it by calling:
  imageio.plugins.ffmpeg.download()
    
asked by Pablo 14.06.2017 в 20:44
source

1 answer

1

This error is quite explanatory:

'NeedDownloadError: Need ffmpeg exe. You can download it by calling:' 

The script is requiring the ffmpeg.exe tool. You can download it from here , pay attention to the architecture. Obviously the EXE should be in the PATH.

Also, as a variant, the error is recommending: You can download it by calling: imageio.plugins.ffmpeg.download() which means that you could also do this from the python script:

import imageio 
imageio.plugins.ffmpeg.download()
    
answered by 14.06.2017 / 20:54
source