Last active
December 26, 2019 06:17
-
-
Save roman-smirnov/1bea54555b41b8b7cc7826a864313e85 to your computer and use it in GitHub Desktop.
Python convert video clip to GIF example
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
from moviepy.editor import VideoFileClip | |
def test_video_to_gif(): | |
clip = VideoFileClip('test_videos/solidWhiteRight.mp4').subclip(0,1) | |
clip.write_gif('test.gif', fps=24) | |
test_video_to_gif() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment