id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,merged,author,reviewer,upstream,work_issues,branch,commit,dependencies,stopgaps
11170,add an ffmpeg option to the animate command,jhpalmieri,jason was,"The attached patch allows you to do this:
{{{
sage: a = animate([sin(x + float(k)) for k in srange(0,2*pi,0.7)])
sage: a.ffmpeg('output.mpg')
}}}
or
{{{
sage: a.ffmpeg('output.avi')
}}}
Also, calling
{{{
sage: a.save('output.mpg') # or a.save('output.avi')
}}}
for example will work, calling the ffmpeg method. If ffmpeg is installed, it is also used to construct animated gifs, since it's faster than convert.
There was some discussion of this here: [https://groups.google.com/d/topic/sage-support/TdQ29S32K9k/discussion].
This also clean up some doctest flags, using {{{# optional -- ImageMagick}}} and {{{# optional -- ffmpeg}}} to mark the appropriate tests. For me, tests pass with each of the following combinations, and there are no stray graphics files created:
{{{
sage -t -long -optional animate.py (with convert and ffmpeg installed)
sage -t -long -only-optional=imagemagick (with only convert installed)
sage -t -long -only-optional=ffmpeg (with only ffmpeg installed)
sage -t -long
}}}
",enhancement,closed,minor,sage-4.7.1,graphics,fixed,,mhampton novoselt,sage-4.7.1.alpha1,John Palmieri,"David Kirkby, Dan Drake",N/A,,,,,