Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iskandr/moving_pictures

Create a movie from a sequence of images in Python (uses PIL and ffmpeg)
https://github.com/iskandr/moving_pictures

Last synced: about 2 months ago
JSON representation

Create a movie from a sequence of images in Python (uses PIL and ffmpeg)

Awesome Lists containing this project

README

        

MovingPictures
=================

Create a movie from a sequence of images in Python (uses PIL and ffmpeg). The images can be any grid of numbers stored as an array.

Installation:

pip install moving_pictures

Requires:

* [NumPy](http://www.numpy.org/)
* [ffmpeg](http://www.ffmpeg.org/)
* [PIL](http://www.pythonware.com/products/pil/) -- Python Imaging Library
* [progressbar](https://code.google.com/p/python-progressbar/)

Usage:

start = Image.open('start.png')
stop = np.array(image)
images = []

for step_size in np.arange(0,1,0.001):
images.append(start*step_size + stop*(1-step_size))
moving_pictures.make_movie(images, movie_name="blend.mpg")