Track Numbers are lost when importing into iTunes

I am struggling to import a number of m4a files into iTunes. I have converted the files from FLAC to m4a. I checked the metadata of the converted files using mp3Tag and the track and disc numbers look ok:

I then put the files into the "Add automatically to iTunes" folder to import them into iTunes. This worked. However in iTunes the tracks are sorted alphabetically and to not show any track numbers:


Looking at the files with mp3Tag again, they still seem to have their disc and track numbers:

I would be grateful for any pointers how I might get the track numbers across into iTunes intact.
Thanks a lot

I have looked at some files that came from the iTunes store and those have TOTALDISCS and TOTALTRACKS tags. My converted m4a files only have TRACK and DISCNUMBER tags. Could that be the reason iTunes does not read the track and discnumber tags?

The lack of TOTALDISCS and TOTALTRACKS Tags seems to have been the cause for the faulty import into iTunes. I added these tags to a test album and that one imported ok.

1 Like

Something worth noting is also, that the track numbers in your original screenshot have leading zeros. MP4 files usually don't have leading zeros (except if it's part of your column definition).

So it also can be the case, that the conversion somehow writes non-standard track fields which are converted to standard ones upon re-saving with Mp3tag.

1 Like

I had actually "fixed" the discnumber format to have leading zeroes. I will leave that out in the future.
I also found out that mp3 files are imported into iTunes without issues, even if they do not have a TOTALTRACKS and TOTALDISCS Tag.
I guess now I need to do some work with the auto track numbering wizard of mp3 to fix my files.

Do I understand it right: Your issue with the iTunes-Import was caused by the leading (discnumber and/or track) zero and not with the TOTALTRACKS and TOTALDISCS Tag?