Skip to content

Instantly share code, notes, and snippets.

@tmaybe
Created June 16, 2014 21:52
Show Gist options
  • Save tmaybe/6475031127e019f02668 to your computer and use it in GitHub Desktop.
Save tmaybe/6475031127e019f02668 to your computer and use it in GitHub Desktop.
create animated gifs from a folder full of video clips with moviepy
import glob
from moviepy.editor import *
for filename in glob.glob("./*.MOV"):
output_filename = './gifs/' + filename.split('/')[-1].split('.')[0] + '.gif'
VideoFileClip(filename).speedx(6.0).resize(0.14).to_gif(output_filename, fps=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment