Created
June 16, 2014 21:54
-
-
Save tmaybe/7aa0e9cbd4bb8fa3387b to your computer and use it in GitHub Desktop.
rotate & shrink videos 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 = './' + filename.split('/')[-1].split('.')[0] + '-resized.mov' | |
VideoFileClip(filename).fx(vfx.rotation, 180).resize(0.3).to_videofile(output_filename, audio=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment