06/01/2008: dhyana.pl/0.3

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

Comments

Comment 001

Thanks for the excellent script. You clearly did a ton of grim cleanup for this latest version, so thanks for that. One small suggestion in case you add a next version: In the —multi mode, unless it is set manually, the $Title variable is not set, so there is some small complaint from convert later in the script (the last time it is called in the annotate_montage subroutine). I just added

$Title=$file if(!$Title);

to the beginning of the

while ($file = shift @ARGV)

block. Thanks again!

Author: Anonymous Coward [71.179.85.25]
Date: Monday, 7th January 2008, 1:18am (GMT)

Comment 002

Yes, right you are. I’ll make sure this is corrected in the next version. Also want to come up with a decent way of manually specifying multiple titles for multiple files.

Probably something like:

dhyana.pl -t 'Title One' -t 'Title Two' vid1.avi vid2.avi
 
Author: Toby Inkster
Date: Thursday, 10th January 2008, 12:24pm (GMT)

Comment 005

bugreport ;)

- midentify is not found on some systems (debian?) What about using mplayer with options (from /usr/bin/midentify script)

- line 128: check if file exists even if it is not multi… if ($MM) {…} else { HERE }

- line 226(?): “Illegal division by zero” when i want only 1×1 images ;)

- and maybe.. some warning if font files are not found.. because user (me ;)) have no idea why it doesnt print info to images

–—

but anyway.. thanks for your work on this great script!

Author (Unverified): pre [85.207.0.27]
Date: Saturday, 1st March 2008, 10:32pm (GMT)

Comment 009

Nice program. But…

Why don’t you use imagemagick bindings for perl ?
Can you add gradient for v0.4, please ?

Author (Unverified): ws [86.196.4.27]
Date: Friday, 18th April 2008, 5:35am (BST)

Comment 010

Your script is great, thank you.

I have one question.

Is it possible to not include the full file path of the movie in the annotation and insted only show the filename or the title?

Author: Anonymous Coward [193.157.253.169]
Date: Sunday, 8th June 2008, 4:13am (BST)

Comment 012

Thanks for the script! It works quite well.

The only error I have had (apart from Debian not installing/unpacking the midentiy script from MPlayer source) is the missing/different font files on my system.

I would suggest adding a warning like this at the top of the script (I have added the lines after the declaration of the default values for the text):

warn “Font file $text_font not found. Annotations will (probably) not be seen!\n” if (not (-e $text_font));
warn “Font file $text2_font not found. Title will (probably) not be seen!\n” if (not (-e $text2_font));

Author (Unverified): Uwe [91.12.246.242]
Date: Friday, 1st August 2008, 7:12pm (BST)

Comment 013

Thank you!
It’s very useful tool.
Some issues:
* thumbnail file is creating in a same folder as video file, some times over folder is needed.

Author: Anonymous Coward [195.122.250.202]
Date: Wednesday, 13th August 2008, 6:43am (BST)

Comment 288

can someone tell me where and how to install the

dhyana.pl file ???? I don’t have a clue

thank you very much

lee

Author: lee
Date: Friday, 5th December 2008, 3:04pm (GMT)

Comments are moderated and may take one or two days to show up on the site. You can bypass comment moderation by signing up as a registered user.

  1. Comment
  2. Login
  3. Your Details

Comment

Login

Your Details