-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FFMPEG not downloaded #493
Comments
Thanks for this. This is the new |
@Zulko Appreciate the immediate response. From what I understand, there was a change in Could you highlight on what that command(s) is/are? I've raised an issue on imageio github repo as well. |
Oh yeah sorry for not addressing that. When do you run the
And report what happens ? |
I was running it right before the first usage of moviepy. I'll try this approach now. I guess the call |
@Zulko This seems to have worked. The first 10 lines of my code look like this: import imageio
imageio.plugins.ffmpeg.download()
import wave
import pafy
import os
import moviepy.editor as mpy
import datetime and it's working. Altough pycharm is giving me a warning saying Please do ping me if Thanks! |
This confirms the solution to this problem is to run |
Yes, that function is there in part because I was thinking of moviepy :) |
But you should only have to run |
yes, though the function caches the download, so calling it a second time will not start a new download. |
You just need to catch this particular |
even better, yes :) |
@Zulko you say to catch the NeedDownLoadError and then run the command |
@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? |
I'm not sure I was very clear. What we'll do is, inside MoviePy, catch that particular exception that appears in this issue, as this is the first ffmpeg-missing-related exception that appears when moviepy boots up. This way there wont be a need for any external hack. |
@Zulko Yup, got it. The hack is a temporary solution! |
@Zulko is there something stopping this issue from getting closed? PS: Great job with this package! |
I think we should actually sort this out, so that the end user doesn't need to manually install it. It is clearly an issue for some people, as my answer here is regularly upvoted, and the question has been asked on Github several times. |
@tburrows13 I'm using your answer in my script. I was just wondering why hasn't it been accepted yet. |
If you mean you’re wondering why this issue hasn’t been closed, it’s because there was discussion about a permanent fix, which hasn’t been implemented yet. As it’s such a simple fix, I’ll try to push it this week, then close this issue. |
Also note: at imageio we're considering adding a plugin based on pyav, mostly because we have a lot of issues with using ffmpeg directly. This would be an optional dependency for imageio, but I can imagine that if moviepy made it a direct dependency, everything would just work. See also imageio/imageio#115. |
@tburrows13 You said "But you should only have to run imageio.plugins.ffmpeg.download() once per computer, I think" That doesn't sound so good. So, if I am distributing a desktop software with |
@tengerdata that's not as bad as this, first because it doesnt take an hour, more like seconds, and second because you could simply run |
@tengerdata, in fact, this issue should probably be closed. In #731 when you import moviepy.editor, it calls I guess you might want to be including the ffmpeg binary with your packaged application... in which case you should be able to provide your own binary and link to moviepy by either editing |
@tengerdata The packaging of ffmpeg is for various reasons out of scope of imageio and moviepy. If you distribute an app, it's your job to ship ffmpeg along with it. We've tried to make this process easy. Also note that you can install ffmpeg using |
It was suggested before that we close this issue, can this be closed now? |
Previous versions were broken due to a breaking change in imageio See Zulko/moviepy#493 for more
Previous versions were broken due to a breaking change in imageio See Zulko/moviepy#493 for more
For the record, since about a year, the way to install ffmpeg support for imageio is to |
Until two days ago, imageio was downloading ffmpeg correctly. It is not doing so anymore.
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.The text was updated successfully, but these errors were encountered: