Skip to content

Instantly share code, notes, and snippets.

@Lukse
Last active July 25, 2016 06:32
Show Gist options
  • Save Lukse/202aae676f60edce4eee757238ebc809 to your computer and use it in GitHub Desktop.
Save Lukse/202aae676f60edce4eee757238ebc809 to your computer and use it in GitHub Desktop.
Making animated GIF’s
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)
@Lukse
Copy link
Author

Lukse commented Jul 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment