(12-11-2023, 03:20 PM)raspiter Wrote: (...) And if I convert m4a/aac itunes files into m4a files moode is able to play them with no errors. I've found a sort of solution but it is a bit messy...
Until Francesco tells us what to do in the proper way to have those files play transparently, this is what I'd do:
(my solution is most probably very similar to the one you have come up with, it's just not messy...)
ffmpeg -i <your aac/ m4a iTunes broken track> fixed.aac / fixed.m4a
alternatively, for m4a files (which usually contain ALAC encoded files, therefore lossless) I convert them into flac:
ffmpeg -i filename.m4a filename.flac
(of course I do not do this for the .aac, as it is not fair to have lossy music inside a typical lossless container such as FLAC is.
You can do this from the command line, and also process a bunch of files at once, let me know if you need.