-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
set_duration ignored on TextClip #63
Comments
Interesting. My guess is that ffmpeg changed the way to handle images. In my version (from 2 months ago) a png file appears as a 1-frame video (so with duration 0.04 at 25fps). I'll adapt the code. |
Thank you for the quick reply. On a separate note - shouldn't |
Here the problem is that with the new ffmpeg we should not check for duration of pictures, since they have none. Once this will be fixed in MoviePy, set_duration will do its job properly. |
now fixed on github if you want to try. |
There is this line in
|
Ah thanks, I forgot to git-add it. It is now fixed on github. |
Yup, it works now 👍 |
I am using:
also installed
numpy
,Decorator
,tqdm
,scipy
,PyGame
andPillow
I edited the
conf.py
file to match my paths to binaries - and they both work (i know this because bothVideoFileClip
andwrite_gif
method works flawlessly)Now with the actual problem, when i try to execute this code:
i get
IOError: MoviePy error: failed to read the duration of file
:So this looks like
set_duration
onTextClip
is ignored, and insteadN/A
fromffmpeg
is taken and error occurs. Could you help me with this issue?The text was updated successfully, but these errors were encountered: