Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading ID3 Tags of MP3s

 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there anyway to read the ID3 (both Version 1 and 2) tags of a MP3 file in Java ?

Thanks.
[ November 10, 2007: Message edited by: Yohan Liyanage ]
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, I do it all the time.
I don't know of a public library to do it, but it was fairly easy to write, I read ID3v1, ID3V2, ID3v3, Ogg, Flac and perhaps one or two more.

Be forwarned ID3 tags are a gross hack, badly designed, ancient, limited, and not standardized.

see
http://www.id3.org/
 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gee, thanks about the warning! I wanted to write my own program to manage my MP3 collection.

Thanks !
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to learn, go for it.
But there are many open source library management programs.
I use SlimServer from SlimDevices.com. They sell hardware, wifi audio, etc. but the server itself is open source, runs on Windows, Mac and linux, and does not require their hardware.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Parsing ID3 Tags From MP3 files
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use JID3.
http://jid3.blinkenlights.org/
 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys ! I looked into JID3 as well. Well, I want to write my own app, just for the sake of learning it. Thanks for the help.
 
joneric wennerstrom
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked around for java ID3 tag libraries, and didn't really like any that I found.
Plus I wanted to learn about it.
So, I wrote me own, which can be found at http://www.beaglebuddy.com.
It is open source, free, provides e-mail support, has amazing javadocs, lots of sample code examples, uses java 1.6 and works on Android, Windows, Linux, Mac, etc.

In my opinion, it is 1000 times better than anything out there.
You can load mp3 files from a local file system, from a URL, from a network drive, etc.
Especially loading mp3 files from a URL, which is something I have yet to find in any other java id3 library.
It has support for synchronized lyrics (ie, making mp3 files into Karaoke songs), support for images in your mp3 files, etc.

The javadocs are excellent. I spent a lot of time on them.
The sample code gets you up in running in a few minutes.

The design of the library is also far simpler and much easier to understand than anything else I've found out there.

But, I wrote the library, so don't take my word for it.
Check it out for yourself to see just how good it is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic