FFMpegWriter = animation.writers['ffmpeg']
metadata = dict(title='Movie Test', artist='Matplotlib', comment=
    'Movie support!')
writer = FFMpegWriter(fps=15, bitrate=1000, metadata=metadata)
Pixelated animations in Matplotlib