This is a very old article. It has been imported from older blogging software, and the formatting, images, etc may have been lost. Some links may be broken. Some of the information may no longer be correct. Opinions expressed in this article may no longer be held.
Here’s my latest update to dhyana.pl…
Change Log
Added a title to the output image, which can be in a different font and colour from the rest of the text.
Use Getopt to parse command line, and accept more options.
Improved handling of certain dodgy WMV files, mostly thanks to Matt Pinkham.
Improved use of FFMPEG
Code straightened out to use functions — it used to be one big long mess.
Added a help function — just run the program with the –help paramater.
Requirements
Perl Getopt::ArgvFile
Perl Getopt::Long ⥠2.33
Perl Pod::Usage;
mplayer
ImageMagick
Optional
Perl File::chdir
Perl File::Spec
Perl Cwd
FFMPEG
All of the Perl modules can be found in CPAN, here is the FFMPEG site and here is mplayer. And don’t forget ImageMagick.
Download
Perl script
Source code