question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FFMPEG not downloaded

See original GitHub issue

Until two days ago, imageio was downloading ffmpeg correctly. It is not doing so anymore.

ERR Traceback (most recent call last):
ERR   File "restapi.py", line 9, in <module>
ERR     from modules.location_from_media_module import location_from_media
ERR     from helpers.flicksys_audio_video import get_video, get_frame, make_url, delete_file
ERR   File "/home/vcap/app/helpers/flicksys_audio_video.py", line 5, in <module>
ERR   File "/app/.heroku/python/lib/python2.7/site-packages/moviepy/editor.py", line 22, in <module>
ERR     from .video.io.VideoFileClip import VideoFileClip
File "/app/.heroku/python/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
ERR     from moviepy.video.VideoClip import VideoClip
ERR   File "/app/.heroku/python/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 20, in <module>
ERR     from .io.ffmpeg_writer import ffmpeg_write_image, ffmpeg_write_video
ERR   File "/app/.heroku/python/lib/python2.7/site-packages/moviepy/video/io/ffmpeg_writer.py", line 19, in <module>
ERR   File "/app/.heroku/python/lib/python2.7/site-packages/moviepy/config.py", line 38, in <module>
ERR     FFMPEG_BINARY = get_exe()
ERR   File "/app/.heroku/python/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 86, in get_exe
ERR     raise NeedDownloadError('Need ffmpeg exe. '
ERR imageio.core.fetching.NeedDownloadError: Need ffmpeg exe. You can download it by calling:
ERR   imageio.plugins.ffmpeg.download()

Details of deployed server:

IBM Bluemix CloudFoundry App Runs Ubuntu 14.04 LTS Server Moviepy installed via pip.

Adding the line imagio.plugins.ffmpeg.download() to my python code has no effect. Also, I’m not sure why it is looking for ffmpeg exe when it is running on a linux server.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (7 by maintainers)

github_iconTop GitHub Comments

42reactions
Zulkocommented, Mar 13, 2017

Oh yeah sorry for not addressing that. When do you run the imageio.plugins.ffmpeg.download() ? My best guess would be “not soon enough”. Can you try this ?

import imageio
imageio.plugins.ffmpeg.download()
from moviepy.editor import *

And report what happens ?

5reactions
kartikaroracommented, Mar 14, 2017

@gpantelis You don’t need to catch it. Just add these two lines at the very top of the file where you are using moviepy and you should be done.

import imageio
imageio.plugins.ffmpeg.download()

@Zulko are there any other dependencies which can raise a NeedDownloadError exception?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download FFmpeg
Cannot access Git or wish to speed up the cloning and reduce the bandwidth usage? FFmpeg has always been a very experimental and...
Read more >
How to Install FFmpeg on Windows: 15 Steps (with Pictures)
1. Go to https://ffmpeg.org/download.html. This brings you to a page containing the latest FFmpeg install packages and binary files. If you don't have an...
Read more >
How to Install FFmpeg on Windows? - GeeksforGeeks
In this article, we will show you how to install ffmpeg in Windows. ... Step 1: Click here to download the zip file...
Read more >
Installing FFmpeg on Windows {Step-by-Step} - phoenixNAP
Step 1: Download FFmpeg for Windows · 1. Hover over the Windows logo and click the Windows builds from gyan.dev link. · 2....
Read more >
How to Install FFmpeg on Windows - Adaptive Samples
Click “Environment Variables”, then “PATH”, then “Edit..” as above. The window that then appears will look different. Instead of a single field named...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found