I use:: ffmpeg -r 60 -i frame%05d.png -vcodec wmv2 -b 2000k out.avi
And this works well to generate movies that play on Windows, Mac and Linux. As a bonus, these movies can be included in Latex/Beamer output using the movies15 package and played within the PDF via Adobe Reader on Mac and Windows. (I'm sure it's just a matter of time before the linux PDF readers can do this, too.) Finally I feel I am near a an end to my cross-platform, doesn't-suck presentation-with-movies quest. I only wish the movie format required to make this possible was less license and patent encumbered... I have been encoding on Ubuntu Jaunty with libraries from mediabuntu. I haven't tested the above using the plain Ubuntu ffmpeg yet. -Andrew Philip Austin wrote: > This isn't strictly a matplotlib question, but I'm hoping > dual mac/linux users can provide some advice on converting png > files to quicktime movies using mencoder on Ubuntu or Centos. > So far I've found that > > 1) starting with > http://matplotlib.sourceforge.net/examples/animation/movie_demo.html > using > > mencoder mf://*.png -mf type=png:w=800:h=600:fps=25\ > -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi > > produces an avi file that works with Ubuntu/mplayer, but > fails with Windows Media Player. > > 2) changing the codec based on http://pymolwiki.org/index.php/Making_Movies > > mencoder -mc 0 -noskip -skiplimit 0 -ovc lavc -lavcopts > vcodec=msmpeg4v2:vhq "mf://*.png" -mf type=png:fps=18 -o output.avi > > works with mplayer and windows media player, but won't play > on macs (unless they install vlc). > When I try to convert the avi file to quicktime using > >> h264enc -2p -p qt >> > and accepting all defaults > it makes it through both passes, gets to > "converting avi file to mp4 container" > and exits the "-> Failed!" > > Any pointers appreciated. I'm open to any linux based > solution that produces animations > that can be be viewed on all three platforms -- thanks, Phil > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users