Last active
November 28, 2019 23:41
-
-
Save dennissergeev/58a435a788d3568d6ffe9126148ed709 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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