Created
January 9, 2021 17:34
-
-
Save JayantGoel001/7c67b46b854c810126d904fa5d9a7c3e to your computer and use it in GitHub Desktop.
Creating GIF from a Video using moviepyu
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
from moviepy.editor import * | |
clip = VideoFileClip('GIF.mp4') | |
clip = clip.subclip(2, 5) | |
clip.write_gif("GIF.gif") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment