DEV Community

Cover image for Programmatically creating video clips and animated GIFs in Python
Piotr Maliński
Piotr Maliński

Posted on

Programmatically creating video clips and animated GIFs in Python

Video editing is an art of it own but sometimes you may have to generate a short video programmatically - like a marketing or manual type of content that uses data from your application at the time of creation. This can be done in Python although it won't be that easy.

MoviePy and Gizeh can be used to create animated GIFs or video clips with text, images, animated vector graphics and alike. Let see what they can do.

Gizeh is a wrapper around Cairo library and tries to make working with it easier. This library can be used to create vector drawings. To use it you have to have Cairo installed on your system.

MoviePy is a video editing library that has a similar function set as a desktop video editor application and thus allows creating video editing flows programmatically.

Animated Hello World

Code commentary and examples on:

https://rk.edu.pl/en/programmatically-creating-video-clips-and-animated-gifs-in-python/

Top comments (0)