Merge pull request #61 from thegeekyb0y/patch-2

Added code to create GIF from video files
This commit is contained in:
Advaita Saha 2022-10-02 23:30:07 +05:30 committed by GitHub
commit 5ee65a35a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Module used : ```moviepy``` and ```videofileclip```
You can learn more about the moviepy module on their official website. https://zulko.github.io/moviepy/

View File

@ -0,0 +1,9 @@
from moviepy.editor import VideoFileClip
# import moviepy , videofileclip
import VideoFileClip
# replace "my-life.mp4" with your file name
videoClip = VideoFileClip("my-life.mp4")
# write whatever name you want for you gif file
videoClip.write_gif("my-life.gif")