From 352860f1ac3a68efdc2ff51a11578127ee6c3450 Mon Sep 17 00:00:00 2001 From: Aditya Tiwari Date: Sun, 2 Oct 2022 16:32:10 +0530 Subject: [PATCH 1/2] Added requirements/readme for python file --- scripts/video-to-gif/requirements.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 scripts/video-to-gif/requirements.md diff --git a/scripts/video-to-gif/requirements.md b/scripts/video-to-gif/requirements.md new file mode 100644 index 0000000..b25c386 --- /dev/null +++ b/scripts/video-to-gif/requirements.md @@ -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/ From b8173430dd2c0cd4409aa06fc353a40b5cdf6217 Mon Sep 17 00:00:00 2001 From: Aditya Tiwari Date: Sun, 2 Oct 2022 16:36:39 +0530 Subject: [PATCH 2/2] Created video2gif python file. --- scripts/video-to-gif/video2gif.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/video-to-gif/video2gif.py diff --git a/scripts/video-to-gif/video2gif.py b/scripts/video-to-gif/video2gif.py new file mode 100644 index 0000000..df7f5e1 --- /dev/null +++ b/scripts/video-to-gif/video2gif.py @@ -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")