I have a set of RGB images (size (400,200,3)) that I'm animating using matplotlib.animation and I want to overlay an RGBA image (size (400,200,4)) on top of them. It seems that FFMPEG is choking on the alpha data that gets added when I overlay the second image using axes.add_image() (it works fine without the overlay). I was wondering if there is a way to overlay the second image and eliminate the alpha data before I pass it along to matplotlib.animation as I think this will solve the problem.
I'm using python 2.7.9 and matplotlib 1.4.2.