Skip to content

Instantly share code, notes, and snippets.

@Zulko
Last active August 16, 2022 02:32
Show Gist options
  • Save Zulko/a019abb802b6233df4de to your computer and use it in GitHub Desktop.
Save Zulko/a019abb802b6233df4de to your computer and use it in GitHub Desktop.
Awkward date gif code
# Code for this GIF:
# http://imgur.com/gallery/pTypr1Y
# This demonstrates how to freeze a region with MoviePy
from moviepy.editor import *
clip = (VideoFileClip("the_fault_in_our_stars.mp4")
.subclip("00:59:48.4","00:59:49.6")
.resize(width=600)
.fx(vfx.freeze_region, outside_region=(168, 233, 379, 322)))
clip.write_gif("akward_date.gif", fps=15)
@Zulko
Copy link
Author

Zulko commented Feb 4, 2015

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