Skip to content

Instantly share code, notes, and snippets.

@leonardoo
Created February 16, 2017 06:06
Show Gist options
  • Save leonardoo/55eb16ac81fb9239a1d8633f2d79f682 to your computer and use it in GitHub Desktop.
Save leonardoo/55eb16ac81fb9239a1d8633f2d79f682 to your computer and use it in GitHub Desktop.
from moviepy.editor import *
cad = u'98597661-10.jpg'
myclip = ImageClip(cad).fx(vfx.resize, newsize=[1280, 660])
final = CompositeVideoClip([myclip], size=(1280, 720))
final.set_duration(7).write_videofile("test.mp4", fps=30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment