Java library for extracting audio information from MP3 files -


Is there any freely available library (except for the Java media framework) that I can use to extract bit rates Am I (like 128 Kbps, VBR) and audio quality from MP3 files (eg 44.1 kH, stereo)?

I have a standalone library that I can include in my application pane, which can be deployed on the old Mac only Java 1.5 is available and I do not get them upgraded or any large Java library can do.

Just to clarify: I will not play any kind of play, transcode or anything with audio stream, I am only interested in metadata.

I acknowledge that there is not much information about MP3 files, but you can see it All the information that is required is in the 32-bit long header of the file.

You can open MP3 with a FileInputStream , read the first 4 bytes of the file and, using some simple binary masks, retrieve the information you need IMHO Using a special library, which is a bit of an overkill.

Comments