Animation.save not working?

I am trying to make an animation of the double pendulum using the
attached script (v1.1.x branch). It creates all the files _tmp*.png,
and creates the mpg but it has zero file size. If I manually make the
movie with the resultant PNGs, it works fine

mencoder mf://_tmp*.png -mf type=png:fps=15 -ovc lavc -lavcopts
vcodec=mpeg4 -oac copy -o test2.mpg

I need to add some debugging output to animation.py (we should add
lots of verbose.report command in there to see what is going on, I'm
going to try and get a pull request together) but I thought I'd fire
this off to anyone else has the same problems or if I'm doing it
wrong. I do have ffmpeg and mencoder installed on my 64bit ubuntu
11.04 box.

Thanks,
JDH

double_pendulum_animated.py (2.25 KB)

Looks like the filename kwarg wants the "mp4" extension not the "mpg"
extension. I am updating the animation docs in my docstring pull
request.

ยทยทยท

On Sun, Oct 2, 2011 at 10:27 AM, John Hunter <jdh2358@...149...> wrote:

I am trying to make an animation of the double pendulum using the
attached script (v1.1.x branch). It creates all the files _tmp*.png,
and creates the mpg but it has zero file size. If I manually make the
movie with the resultant PNGs, it works fine

mencoder mf://_tmp*.png -mf type=png:fps=15 -ovc lavc -lavcopts
vcodec=mpeg4 -oac copy -o test2.mpg