In order to get matplotlib saving animations in these formats you need to do:
- Install ffmpeg for mac. I grab Mac binaries from here. You may need 7zX for mac to unzip the file.
- Place the binary in a suitable local path and make sure you add the path.
- When you call matplotlib.animate pass the arguments extra_args=['-vcodec', 'libxvid']
This should produce a video file that is playable by QT on any standard install of Mac OS X