I need to be able to read all the varous flavors of MP3 ID3 tags from Java. I took a tour through a number of different java mp3 tagging packages (see id3 java mp3 google search. Some were slow, some were way to complex, but Jens Vonderheide's java_mp3 was just right. It's fast, small, and easy to use. Here's a code snippet that dumps artist album and title of a song:

import de.vdheide.mp3.*;

    public  void showID3(File file) {
        try {
            ID3 id3 = new ID3(file);
            System.out.println("Artist: " + id3.getArtist());
            System.out.println("Album: " + id3.getAlbum());
            System.out.println("Title: " + id3.getTitle());));
        } catch (NoID3TagException e) {
            System.err.println("no ID3 Info found for " + file);
        }
    }

Comments:

I tried de.vdheide.mp3 package to update ID3Tags but TagContent always endup with exception.

Posted by Chandima Samaraweera on March 24, 2005 at 12:53 PM EST #

I use this library for several years. I fixed some bugs and added some new features like VBR/XING header. Years ago the development was abandoned by Jens and the new maintainer at rabbitfarm didn't show any activity. I use the new IO of jdk 1.4 to boost performance, at least under Windows. I tried to add support for id3v2.4 but I haven't finished this.

Posted by Harald on April 27, 2005 at 07:09 AM EDT #

http://javamusictag.sourceforge.net/ worked out well for me after applying this patch: http://sourceforge.net/forum/message.php?msg_id=3703606

Posted by Jon on August 16, 2006 at 11:20 PM EDT #

Post a Comment:

This blog copyright 2010 by plamere