|
Posted by John Bokma on November 8, 2006, 11:11 am
Please log in for more thread options
> Each day the MP3::Tag module I maintain *looks* more and more like a
> module to deal with arbitrary multimedia types... At least a lot of
> APIs make sense for many other multimedia types; and the scripts
> supplied with the module work mostly via these API.
>
> But to actually address this similarity, I need (as a minimum) a way
> to inspect a multimedia file, and get some stats about it.
>
> The stats which come to my mind are
>
> a) does it contain audio, video, stills, slideshows (or combinations
> thereof)?
>
> b) What is the duration, number of frames, framerate, size of (the
> first?) image frame?
>
> c) which module to use to get the embedded metadata?
>
> d) what is the imbedded metadata?
>
> Are there ready-to-use Perl solutions to these problems?
>
> Thanks,
> Ilya
>
> P.S. The other (meta)questions is: which questions does it make sense
> to ask about a given multimedia file if you do not care what is
> the "format" of the file. This metaquestion should definitely
> have been addressed by any multimedia architecture which
> delegates the actual work to installable multimedia codecs.
>
> Anyone knowing about this?
For stills, look into EXIF, things I want to know are: which device was
used, settings, copyright information, title, author, date, time, etc.
Probably you want to normalize field names, and create a wrapper that is
able to offer meta data in raw format, and normalized.
$meta_info->get_field_names();
$meta_info->get_field_names_raw();
$meta_info->get_value_for( 'title' );
$meta_info->get_value_for_raw( 'title' );
Something like the above :-)
--
John Experienced Perl programmer: http://castleamber.com/
Perl help, tutorials, and examples: http://johnbokma.com/perl/
|