#133 Issues reading various ID3 tags

open
5
2011-03-21
2011-03-21
Mass Dosage
No

We're using entagged to extract the ID3 tags from a wide variety of mp3 files. It has quite a few issues reading tags from files which other programs (e.g. Amarok, KID3 etc.) can read just fine. Here are some example stack traces:

Caused by: entagged.audioformats.exceptions.CannotReadException: Error while reading header(maybe file is corrupted, or missing first mpeg frame before xing header)
at entagged.audioformats.mp3.util.Mp3InfoReader.read(Mp3InfoReader.java:157)
at entagged.audioformats.mp3.Mp3FileReader.getEncodingInfo(Mp3FileReader.java:40)
at entagged.audioformats.generic.AudioFileReader.read(AudioFileReader.java:82)
... 27 more

and

Caused by: entagged.audioformats.exceptions.CannotReadException: "/home/adrian/workspace/ingestion-trunk/bla3.mp3" :java.lang.IllegalArgumentException
at entagged.audioformats.generic.AudioFileReader.read(AudioFileReader.java:96)
at fm.last.ingestion.model.audiofile.Id3TagReaderEntagged.getId3Tag(Id3TagReaderEntagged.java:33)
... 26 more
Caused by: java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:218)
at entagged.audioformats.mp3.util.Id3v24TagReader.processExtendedHeader(Id3v24TagReader.java:144)
at entagged.audioformats.mp3.util.Id3v24TagReader.read(Id3v24TagReader.java:178)
at entagged.audioformats.mp3.util.Id3v2TagReader.read(Id3v2TagReader.java:178)
at entagged.audioformats.mp3.Mp3FileReader.getTag(Mp3FileReader.java:49)
at entagged.audioformats.generic.AudioFileReader.read(AudioFileReader.java:87)
... 27 more

Maybe these should be separate issues?

I can provide the mp3 files that cause these errors if necessary.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks