My work recently involves programmatically making videos. In python, the typical workflow looks something like this:
import subprocess, Image, ImageDraw for
imageio supports this directly. It uses FFMPEG and the Video Acceleration API, making it very fast:
import imageio writer = imageio.get_writer('video.avi', fps=fps) for i in range(frames_per_second * video_duration_seconds): img = createFrame(i) writer.append_data(img) writer.close()