Skip to content

Instantly share code, notes, and snippets.

@dennissergeev
Last active November 28, 2019 23:41
Show Gist options
  • Save dennissergeev/58a435a788d3568d6ffe9126148ed709 to your computer and use it in GitHub Desktop.
Save dennissergeev/58a435a788d3568d6ffe9126148ed709 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import moviepy.editor as mpe
import sys
from pathlib import Path
fname = Path(sys.argv[1])
v = mpe.VideoFileClip(str(fname))
v.write_gif(fname.with_suffix(".gif"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment