|
From: Andreas M. <amu...@ai...> - 2012-10-04 17:38:41
|
On 10/04/2012 03:51 PM, Benjamin Root wrote: > > > On Thu, Oct 4, 2012 at 10:02 AM, Andreas Mueller > <amu...@ai... <mailto:amu...@ai...>> wrote: > > Hi everybody. > I have been trying to save some animations I made and I > encountered the problem mentioned here > <http://sourceforge.net/mailarchive/forum.php?thread_name=CAKH0P%2BVLXthNCAZ1K2pKHYqqPiFHP5iXSFwJvEerVmvtmgGv0g%40mail.gmail.com&forum_name=matplotlib-devel>. > I am using current master. > To be precise, when I use > anim.save("file.mp4", fps=10, extra_args=['-vcodec', 'libx264']) > I get "RuntimeError: Error writing to file" from the agg backend. > If I don't use the extra_args, it works, but I get very, very bad > quality that can not be redeemed using bitrate. > I have ffmpeg and libx264 installed. I also tried the mencoder by > passing > MencoderWriter() to save, but that resulted in a video where all > frames are identical. > > Any help on this would be appreciated. Is there an easy way to > just dump > the frames? I can do the mencoder bit myself. > > Thanks, > Andy > > > Exactly which version of mpl are you using, and what is your > platform? This will help us diagnose what is going on. > Thanks for the quick answer. I am not on the box but I used master from yesterday, so 89482b21c8582d49a2ddc2865e472eb404fd07e2 <https://github.com/matplotlib/matplotlib/commit/89482b21c8582d49a2ddc2865e472eb404fd07e2>, I guess. The platform is Ubuntu Precise (with loads of random Python packages, but that seems somewhat unrelated). Cheers, Andy |