Wanted: A Python library (supporting at least Python 3.5+) that can take a sequence of (non-animated) raster images (in some format that Pillow can generate) plus timing information and create a movie (not GIF!) file — MPEG, MP4, or whatever the kids are watching these days.
1 Answer
MoviePy can do what you need with the heavy lifting behind the scenes being done by FFMPEG, which it downloads and installs of first use. The documentation is also very helpful.
- Support MP4 and any other FFMPEG supported output format as well as GIFs.
- Inputs can be:
- Just about any FFMPEG supported input format
- Any PIL/Pillow supported input format as an Image Clip
- Numpy Arrays
- MatPlotLib plots
- Text with ImageMagick installed
- The results of OpenCV processing
- Vector Animations
- 3D Animations
- It is cross platform with even a pre-configured Docker container available.
- Works with Python 2.7 and 3.3+
Of course it can do a lot more besides.