mem_usage_render.py currently outputs images, generated using cairo. Then, as a manual step, those images are processed into a video using ffmpeg at the command line.
It is desirable to perform the ffmpeg step in mem_usage_render.py; it should be possible with python-ffmpeg.