Skip to content

Instantly share code, notes, and snippets.

@JayantGoel001
Created January 9, 2021 17:34
Show Gist options
  • Save JayantGoel001/7c67b46b854c810126d904fa5d9a7c3e to your computer and use it in GitHub Desktop.
Save JayantGoel001/7c67b46b854c810126d904fa5d9a7c3e to your computer and use it in GitHub Desktop.
Creating GIF from a Video using moviepyu
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