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

Hangs if using ImageMagick to write_gif #93

Closed
tankorsmash opened this issue Nov 30, 2014 · 2 comments
Closed

Hangs if using ImageMagick to write_gif #93

tankorsmash opened this issue Nov 30, 2014 · 2 comments

Comments

@tankorsmash
Copy link

I'm using ImageMagick on Windows, and nothing seems to be happening after it prints 'Writing Gif' just after calling write_gif. For comparison, It takes about 5 seconds to generate the frames with ffmpeg and instantly writes the file, and although with imagemagick the frames are generated instantly, but the proc2.wait() in gif_writers.py hangs and ignores my CTRL+C presses.

This is likely an issue on my end, but the convert demo for converting the logo works fine.

Version: ImageMagick 6.9.0-0 Q16 x86 2014-11-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates (built-in): bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo png ps rsvg tiff webp xml zlib

Using the latest version of moviepy off of pip (thanks for updating it!).

@Zulko
Copy link
Owner

Zulko commented Nov 30, 2014

Is your gif very big or very long ? If it is the case, can you make the experience with a shorter clip, and tell me if it works (if the process actually ends and produces a GIF ?). Otherwise it might be a real bug.

ImageMagick is extremely slow, if your gif has more than 100 average-sized frames it will take forever. You can either wait, or reduce the number of frames with fps=10, or use program='ffmpeg' in write_gif to assemble the gif with ffmpeg, which will be much faster.

@tankorsmash
Copy link
Author

Ah that's probably it then, just ImageMagick being slow. I had assumed that
since the generation happened faster, the rest of it would be faster too.
I'll close this then, because if you do proc2.terminate after a few
minutes, a portion of the file is saved. Thanks.

On Sun, Nov 30, 2014 at 3:49 AM, Zulko notifications@github.com wrote:

If you gif very big or very long ? If it is the case, can you make the
experience with a shorter clip, and tell me if it works (if the process
actually ends and produces a GIF ?). Otherwise it might be a real bug.

ImageMagick is extremely slow, if your gif has more than 100
average-sized frames it will take forever. You can either wait, or reduce
the number of frames with fps=10, or use program='ffmpeg' in write_gif to
assemble the gif with ffmpeg, which will be much faster.


Reply to this email directly or view it on GitHub
#93 (comment).

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