Vizible’s Blog

Perl : How to read MP3 Tag (ID3)

Posted in perl by wearetherock on July 25, 2009

Install MP3::Tag
=====================================
$ perl -MCPAN -e shell
cpan> install MP3::Tag


Example

=====================================

$ perlconsole
Perl> $mp3 = MP3::Tag->new("It's Not Love. - Wonder Girls.mp3")
MP3::Tag=HASH(0xa14b4a8)

Perl> $mp3->title()
It's Not Love

Perl> $mp3->artist()
Wonder Girls

Perl> $mp3->album()
The Wonder Begins
~

Reference : http://search.cpan.org/~ilyaz/MP3-Tag-0.9709/Tag.pm

Advertisements
Tagged with: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: