Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    MP3::Tag 0.9710

    Download button

    No screenshots available
    Downloads: 498  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Thomas Geffert and Ilya Zakharevich | More programs
    Perl Artistic License / FREE
    February 1st, 2008, 09:52 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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();

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | mp3 tag | read tags | MP3::Tag | mp3 | tag

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM