Here are a few projects using MoviePy. The gallery will fill up as more people start using MoviePy (which is currently one year old). If you have a nice project using MoviePy let us know !
Videos edited with Moviepy¶
The Cup Song Covers Mix¶
This mix of 60 covers of the Cup Song demonstrates the non-linear video editing capabilities of MoviePy. Here is the (undocumented) MoviePy code that generated the script.
Animations edited with MoviePy¶
GIFs made from video files¶
This tutorial gives you the basics to make gifs from video files (cutting, croping, adding text...). The last example shows how to remove a (still) background to keep only the animated part of a video.
This tutorial shows how to combine MoviePy with Gizeh to create animations:
It is also possible to combine MoviePy with other graphic librairies like matplotlib, etc.
This tutorial shows how to combine MoviePy with Vapory, a library to render 3D scenes using the free ray-tracer POV-Ray
With Vapory and MoviePy you can for instance embed a movie in a 3D scene:
Or render the result of this physics simulation made with PyODE (script):
Or use this script to make piano animations from MIDI files (which are some sort of electronic sheet music):
Scientific or technological projects¶
Misc. Programs and Scripts using MoviePy¶
Rincomcam is a camera which films surfers on the Californian beach of Point Rincon. At the end of each day it cuts together a video, puts it online, and tweets it. Everything is entirely automatized with Python. MoviePy is used to add transitions, titles and music to the videos.
Videogrep is a python script written by Sam Lavigne, that goes through the subtitle tracks of movies and makes supercuts based on what it finds. For instance, here is an automatic supercut of every time the White House press secretary tells us what he can tell us:
If you liked it, also have a look at these Videogrep-inspired projects:
This blog post attempts to cut a video precisely at the beginning and end of sentences or words:
words = ["Americans", "must", "develop", "open ", "source", " software", "for the", " rest ", "of the world", "instead of", " soldiers"] numbers = [3,0,4,3,4,0,1,2,0,1,0] # take clip number 'n' cuts = [find_word(word)[n] for (word,n) in zip(words, numbers)] assemble_cuts(cuts, "fake_speech.mp4")
This other post uses MoviePy to automatically cut together all the highlights of a soccer game, based on the fact that the crowd cheers louder when something interesting happens. All in under 30 lines of Python: