Last active
July 25, 2016 06:32
-
-
Save Lukse/202aae676f60edce4eee757238ebc809 to your computer and use it in GitHub Desktop.
Making animated GIF’s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from moviepy.editor import * | |
start = 0.0 | |
end = 10.0 | |
width = 500 | |
fps = 20 | |
speedx = 2 | |
file_in = "video.avi" | |
file_out = "img.gif" | |
clip = (VideoFileClip(file_in).subclip((0,start),(0,end)).resize(width=width)) | |
clip.speedx(speedx).write_gif(file_out, fps=fps) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full blog article hosted on: http://kurokesu.com/main/2016/07/14/making-animated-gifs/