f = "/path/to/animation.mp4" writervideo = animation.FFMpegWriter(fps=60) anim.save(f, writer=writervideo)