Mp3tag is not saving the right ITUNESCATALOGID to files

Hi, I have been experiencing an issue with Mp3tag.

When I add the ITUNESCATALOGID tag to my M4A files, Mp3tag doesn't save the right one.

I recently added 4 songs from ROSALÍA's album LUX (Complete Works) (Dios Es Un Stalker, Focu 'Ranni, Jeanne & Novia Robot) but every time I try to add the ITUNESCATALOGID and save, it's saving a different one and it starts with a 2.

The same issue is also happening with the song Bring Your Love by Madonna and Sabrina Carpenter.

It only happens with songs released recently with an ITUNESCATALOGID that start with a 6 but nothing happens if it starts with a 1 like for the song I'm Perfect by Olivia O'Brien.

With the wrong ITUNESCATALOGID the songs cannot be matched on Apple Music when I sync them on my iPhone.

I have attached screenshots of the ITUNESCATALOGID tag before and after saving in Mp3tag.

And also I add my songs on iTunes.

Thanks!

The screenshots for Bring Your Love by Madonna and Sabrina Carpenter.

The screenshot for I'm Perfect by Olivia O'Brien.

How do you add the content of the field ITUNESCATALOGID in Mp3tag? Do you use a websource script or do you add it manually?

I use an Apple Music web script, but I have tried deleting the field and doing it manually and the issue is still happening.

I can confirm that if you add an ITUNESCATALOGID like
6763400211
to an M4A file, it will be stored wrongly as
2468432915

You can reproduce it manually.
This doesn't happen with other formats, such as MP3.

BTW: It seems, that only numbers starting with 6 and higher followed by 9 numbers are affected:
6000000001 -> 1705032705
6000000002 -> 1705032706
...
6000000009 -> 1705032713
6000000010 -> 1705032714
...
7000000001 -> 2705032705
8000000001 -> 3705032705
9000000001 -> 410065409

Thank you for confirming that's exactly the issue I'm dealing with

Those IDs exceed the maximum size for 32-bit integers, which was until now the commonly agreed on storage format for iTunes Catalog IDs.

I'll need to investigate further and keep you posted.

I've just released Mp3tag v3.34.1, which now detects if the integer value is larger than the preferred preferred storage width and preserves the data.

Thanks for reporting!

1 Like

This works for my test.m4a file - numbers greater than 6000000001 are saved correctly.

And for you @cleo?

1 Like

Hi, I just tried it and it worked.
Thank you so much!

1 Like

Yes, my files are now saved correctly too.
Thank you for your help!

Hey Florian,

Is there a fix for the Mac version. I am seeing this same issue and I'm on the latest release 1.12.1 (136). Thx!

1 Like

This is now also fixed with Mp3tag for Mac v1.12.2. Thanks for pointing!

1 Like