Not on CPAN just yet but available http://github.com/jbenjore/runops-movie/tree/master.
This is kind of a "splat" at the world since it may or may not work at the moment. As I used it, I used a forked version of Treemap but I uploaded and didn't test the namespace change from Treemap::* to Runops::Movie::TM::*.
Roughly, to make your own movie:
perl -MRunops::Movie=run your-program 2> movie.log
bzip2 -9 movie.log
bzcat movie.log.bz2 | frame-runner
ffmpeg -i frame-%05d.png movie.mp4