Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.42k stars 1.55k forks source link

write_gif with ImageMagick only works if I enable temp files #1974

Open nocturnae opened 1 year ago

nocturnae commented 1 year ago

Hi,

I'm writing a tool to bulk convert MP4's into Gifs.

Right now my code is super minimal, but I notice that my gif only gets exported if I have the tempfiles="True" flag in there. If I remove this part, the output gif is nowhere to be found on my system.

from moviepy.editor import VideoFileClip
videoClip = VideoFileClip("Untitled.mp4")
videoClip.write_gif("textgifOpt.gif",program="ImageMagick", opt="optimizeplus",tempfiles="True",fuzz=3)

I'm running this on a VPS with 8GB ram, so maybe that amount is too small for the conversion? But my MP4's are only a few seconds longs (<10seconds each). So not like it's that big of a movie to convert.

keikoro commented 1 year ago

Please always include your specs like we ask for in our issue templates – MoviePy version, platform used etc. – to help pinpoint what causes your problem, thanks.