I generate png figures using python and then use mencoder to make a movie. I used the commend I searched online. It does generate a movie for me. But it's strange that it uses the first figure multiple times during the entire movie. That is not what I want. I'm not sure why. The code is below:
os.system("mencoder 'mf://_tmp*.png' -mf type=png:fps=10.0 -ovc vcodec=wmv2 -oac copy -o " + filename + ".mpg")