Skip to content
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

Is there a way to create the gif faster? #88

Closed
qqibrow opened this issue Nov 16, 2014 · 2 comments
Closed

Is there a way to create the gif faster? #88

qqibrow opened this issue Nov 16, 2014 · 2 comments

Comments

@qqibrow
Copy link

qqibrow commented Nov 16, 2014

Hi, I want to use moviepy to create a gif from a mp4 file. I found the speed is very slow however. Is there a way to make it faster? like reduce image quality or reduce sample rate? Thank you!

@Zulko
Copy link
Owner

Zulko commented Nov 16, 2014

There are many ways. First, try adding program='ffmpeg' to the arguments of write_gif, it should make the gif compression with ffmpeg instead of ImageMagick, this is much faster but not as good. Then you can reduce the fps with fps=15.

If you just want to make a gif from a mp4, without changing anything, it would be even faster to do it directly with ffmpeg:

ffmpeg -i myvideo.mp4 output.gif

@qqibrow
Copy link
Author

qqibrow commented Nov 17, 2014

Got it! Thank you!

@qqibrow qqibrow closed this as completed Nov 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants