mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 14:01:12 +00:00
Merge pull request #61 from thegeekyb0y/patch-2
Added code to create GIF from video files
This commit is contained in:
commit
5ee65a35a2
3
scripts/video-to-gif/requirements.md
Normal file
3
scripts/video-to-gif/requirements.md
Normal 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/
|
9
scripts/video-to-gif/video2gif.py
Normal file
9
scripts/video-to-gif/video2gif.py
Normal 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")
|
Loading…
Reference in New Issue
Block a user