Skip to content

Commit 46c484d

Browse files
authored
Add files via upload
convert mp4 videos to gif using moviepy convert images of jpg and png format into video format using imageio
1 parent 96c8d2f commit 46c484d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mp4_into_gif.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from imageio.core.util import Image
2+
from moviepy.editor import *
3+
4+
5+
# convert an video of mp4 format into gif
6+
video = VideoFileClip("title.mp4 ")
7+
video.write_gif("final.gif")
8+
9+
# convert an image into mp4 format using moviepy
10+
file = ["1.png", "2.png", "3.png", "4.png"]
11+
image = ImageSequenceClip(file, fps=2)
12+
image.write_videofile("sofware.mp4", fps=30)

0 commit comments

Comments
 (0)