Red sign error on varying number of tracks ripped from CDs

I’m a bit low on time currently, sorry for the delay here. But I received your file and could take a look.

The issue is kind of what I expected: The file is smaller then the file size internally reported. Actually it is missing exactly one byte at the end. Strictly speaking this is kind of a broken file, but this particular thing seems to be rather common and Picard should be able to handle it.

See also the discussion at Receiving ValueError when saving some files and the linked issue for Mutagen (the library used by Picard to actually read/write the tags) at https://github.com/quodlibet/mutagen/issues/496

I would like to look into this, but for now I have no good quick solution for you.

One way to get this fixed is looking at AIFF files that have an uneven size (e.g. the file you send me was exactly 18075033 bytes in size), and if it is uneven append an additional null byte. On Linux I would do this on the command line with:

truncate -s +1 broken.aif

Not sure there is a similar easy approach on macOS.

How many files are affected by this?

2 Likes