Created
June 16, 2014 21:52
-
-
Save tmaybe/6475031127e019f02668 to your computer and use it in GitHub Desktop.
create animated gifs from a folder full of video clips with moviepy
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
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