MP3::TagMP3::Tag is a Perl module for reading tags of MP3 audio files. | |
Download |
MP3::Tag Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Thomas Geffert and Ilya Zakharevich
- Publisher web site:
- http://search.cpan.org/~ilyaz/MP3-Tag-0.9710/Tag.pm
MP3::Tag Tags
MP3::Tag Description
MP3::Tag is a Perl module for reading tags of MP3 audio files. MP3::Tag is a Perl module for reading tags of MP3 audio files.SYNOPSIS use MP3::Tag; $mp3 = MP3::Tag->new($filename); # get some information about the file in the easiest way ($title, $track, $artist, $album, $comment, $year, $genre) = $mp3->autoinfo(); $comment = $mp3->comment(); # or have a closer look on the tags # scan file for existing tags $mp3->get_tags; if (exists $mp3->{ID3v1}) { # read some information from the tag $id3v1 = $mp3->{ID3v1}; # $id3v1 is only a shortcut for $mp3->{ID3v1} print $id3v1->title; # change the tag contents $id3v1->all("Song","Artist","Album",2001,"Comment",10,"Top 40"); $id3v1->write_tag; } if (exists $mp3->{ID3v2}) { # read some information from the tag ($name, $info) = $mp3->{ID3v2}->get_frame("TIT2"); # delete the tag completely from the file $mp3->{ID3v2}->remove_tag; } else { # create a new tag $mp3->new_tag("ID3v2"); $mp3->{ID3v2}->add_frame("TALB", "Album title"); $mp3->{ID3v2}->write_tag; } $mp3->close(); Requirements: · Perl
MP3::Tag Related Software