delka MP3

Honza Pazdziora adelton na fi.muni.cz
Neděle Duben 15 15:25:00 CEST 2001


On Sat, 14 Apr 2001 13:03:25 +0200, Lubomir Berky <berta na email.cz> wrote:
> potrebuju nejak zjistit delku mp3 skladby v minutach, ale vubec netusim jak
> na to. Mate nekdo nejakej typ?

$ perl -MCPAN -e 'install "MP3::Info"'
$ perl -MMP3::Info -e 'my $data = get_mp3info(shift); print $data->{TIME}, "\n";' soubor.mp3

-- 
------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
 .project: Perl, mod_perl, DBI, Oracle, auth. WWW servers, XML/XSL, ...
Petition for a Software Patent Free Europe http://petition.eurolinux.org
------------------------------------------------------------------------


Další informace o konferenci Linux