Last active
August 16, 2022 02:32
-
-
Save Zulko/a019abb802b6233df4de to your computer and use it in GitHub Desktop.
Awkward date gif code
This file contains hidden or 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
# 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Direct link to the gif