Invalid Frame size larger than size before mp3 audio

Issue #9 invalid
IJabz repo owner created an issue

From https://java.net/jira/browse/JAUDIOTAGGER-118

It seems that the "Invalid Frame size larger than size before mp3 audio" might also be responsible for some errors writing tags. I'm having problems writing USLT frames. What i'm doing is something like:

frame = (AbstractID3v2Frame) song.getID3v2Tag().getFrame("USLT");
if (frame != null) {
// update the existing frame
} else {
// create a new USLT frame
}

The file contains some metadata errors because i get an "Invalid Frame size
larger than size before mp3 audio:USLT" warning. So getFrame() returns null and
I try creating a new one. The problem is that sometimes the frame is saved
correctly and some other times it is not saved at all. So far it seems related
to the lyrics length:

Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.ID3v24Frame write
INFO: Writing frame to file:USLT
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
write
INFO: Writing frame body forUSLT:Est Size:0
Jun 4, 2007 7:04:48 PM
org.jaudiotagger.tag.datatype.TextEncodedStringNullTerminated writeByteArray
INFO: Writing NullTerminatedString.
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.framebody.AbstractID3v2FrameBody
write
INFO: Written frame body forUSLT:Real Size:2814
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.ID3v23Tag write
INFO: força.mp3:bodybytebuffer:sizebeforeunsynchronisation:3081
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.ID3v23Tag write
INFO: força.mp3:Current audiostart:4096
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.ID3v23Tag write
INFO: força.mp3:Size including padding:4096
Jun 4, 2007 7:04:48 PM org.jaudiotagger.tag.id3.ID3v23Tag write
INFO: força.mp3:Padding:1005
Jun 4, 2007 7:04:48 PM org.jaudiotagger.audio.mp3.MP3File save

In this case the USLT frame was not saved correctly. The lyrics string length was 1402. Usually if I save a short string it is saved properly and after that the "Invalid Frame size larger than size before mp3 audio" is resolved.

Comments (2)

  1. IJabz reporter

    I've checked FrameBodyULST and there is nothing significantly different in it to to other frames so I don't that is the cause of this problem. As I have no evidence and this is an old issue going to close as I cant progress with it expect it is resolved anyway.

  2. Log in to comment