It seems that the Animation.save method assume that ffmpeg is installed,
as there is no cmd_gen keyword argument for this method.

As a quick and dirty fix, you may change the imposed commandline
constructor overloading the ffmpeg_cmd method

        ani.ffmpeg_cmd = ani.mencoder_cmd

or, if you prefer using gstreamer, something like that (not tested)
        def gst_cmd(fname, fps, codec, frame_prefix):
            cmd = 'gst-launch multifilesrc location="{prefix}%%04d.png" 
index={i0} num-buffers={nb} '\
                  'caps="image/png,framerate=\(fraction\){fps}/1" ! pngdec ! 
ffmpegcolorspace ! '\
                  '{codec_f} ! filesink location={fname} '
           nb_frames = len([tmp for tmp in os.listdir('./') if 
tmp.endswith('.png') and tmp.startswith(frame_prefix)])
           return cmd.format(prefix=frame_prefix, i0=0, nb=nb_frames, fps=fps, 
codec_f=codec+'mux', fname=fname)
        
        ani.ffmpeg_cmd = gst_cmd
-- 
Fabrice Silva


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to