Video to GIF animation under 20 sec with Python *UWU*

Published: 31 July 2022
on channel: Python 5
3,699
121

How to convert mp4 video to gif animation using python and moviepy library.
#shorts #python #programming #coding #uwu

Notice: install Image Magick before (enter magick.exe to config_defaults.py)

from moviepy.editor import *
video = VideoFileClip(r"uwu.mp4")
video = video.resize(0.5)
txt_clip = TextClip("uwu", font="Arial-Black",
fontsize=75, color='white',
stroke_color='black',
stroke_width=5).set_pos('bottom')\
.set_duration(1)\
.set_start(1)
video = CompositeVideoClip([video, txt_clip])
video.write_gif(r"uwu.gif")


Watch video Video to GIF animation under 20 sec with Python *UWU* online without registration, duration hours minute second in high quality. This video was added by user Python 5 31 July 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,699 once and liked it 121 people.