SongKong Jaikoz

SongKong and Jaikoz Music Tagger Community Forum

Can't save - "incorrect offset" error message

Some tracks are not allowing me to save changes because of an “incorrect offset” error message.

How do I address this?

I am running 3.8.2 on OS 10.6.4. The files in question are mp4.

Sounds like a bug in the mp4 code. Mp4s are problematic because the specification is quite lose and different applications create different types of Mp4s, could you send me an example file please.

These files are written with the Amadeus application, the problem is that it is writing a free atom after the ftyp atom, this is not usual although it is legal and it is preventing the write working.

i.e

Amadeus

Atom ftyp @ 0 of size: 28, ends @ 28
Atom free @ 28 of size: 61404, ends @ 61432
Atom moov @ 61432 of size: 564183, ends @ 625615
     Atom mvhd @ 61440 of size: 108, ends @ 61548
     Atom trak @ 61548 of size: 76937, ends @ 138485
         Atom tkhd @ 61556 of size: 92, ends @ 61648
         Atom mdia @ 61648 of size: 76837, ends @ 138485
             Atom mdhd @ 61656 of size: 32, ends @ 61688

iTunes

Atom ftyp @ 0 of size: 32, ends @ 32
Atom moov @ 32 of size: 312219, ends @ 312251
     Atom mvhd @ 40 of size: 108, ends @ 148
     Atom trak @ 148 of size: 75393, ends @ 75541
         Atom tkhd @ 156 of size: 92, ends @ 248
         Atom mdia @ 248 of size: 75293, ends @ 75541
             Atom mdhd @ 256 of size: 32, ends @ 288

I’ll devise a fix

Fix now available, please give it a go
Download http://www.jthink.net/jaikoz/jsp/beta/jaudiotagger.jar then replace your copy of this file in your installation with this one as follows

OSX
Go to Applications : Jaikoz
Right-click on Jaikoz and select Show Package Contents
Go into Contents : Resources : Java
Rename jaudiotagger.jar to jaudiotagger.old
Copy in this jaudiotagger

Windows Vista:
Go to C:\Program Files\Jthink\Jaikoz\lib
Rename jaudiotagger.jar to jaudiotagger.old
Copy in this jaudiotagger

Linux
Go to where you installed Jaikoz
cd lib
mv jaudiotagger.jar jaudiotagger.old
Copy in this jaudiotagger

This fix works for me using the same files that originally caused the issue. Thanks for addressing this so efficiently!