Archive for June, 2007

Making movies with mencoder from png images

mencoder "mf://*.png" -mf fps=10 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4

Run this in the directory containing the png files, named in the order you want them to appear.

I’ve had complaints from Mac users that they can’t view the movies – I suspect changing the codec would resolve this.


Leave a Comment

How to use octave to generate png images of equations

title_text = sprintf(“some text + %d”,some_number);

Leave a Comment

How to descend into all subdirectories and delete all files matching a pattern?

The latest in my set of asked questions. If you’re like me, and paranoid about r-syncing, you end up with loads of backup~, backup~~, backup~~~ and backup~~~~ files. Every now and again, usually after a backup to disc, it’s time to delete them.

find ./ -name '*~' | xargs rm

works, but produces an ugly error message. I’ve also followed a suggestion and created my own simple script to clean these files out.

Leave a Comment