Can ALAC file with damaged header but ok audio be saved? 2019-08-09 11:45:30 Hello.I'm new here and unfortunately I don't know much about the inner workings of audio files. I recently discovered a number of corrupted ALAC files in my iTunes library that I can't play anymore.In earlier/simpler cases I used ffmpeg to convert them losslessly into a new ALAC (ffmeg -i damaged.m4a fixed.m4a).But that doesn't work with these damaged files.Using a hexeditor and an undamaged version of one corrupted file I could verify that the raw audio data (after the mdat) is byte-identical in both the damaged and undamaged file.I just don't know how to save the (raw) audio data and get a new working ALAC file.One thing I've tried and failed at is to "write" the raw audio into a new ALAC file (with a new/correct header). I've used ffmepg but it throws a lot of errors or produces a noise file.Another idea would be to come up with some kind of general minimal header I could insert in the hexeditor before the mdat part and then adjust whatever needs adjusting. But I don't know what a header with just the bare minimum information (atoms) to make an ALAC file would look like.There may even be more of those corrupted files in my library and maybe in the future.So if I find a way to repair them (provided the raw audio data is intact like in this case) that would save me a lot of trouble and headache.So if you have any idea what and how I could try that would make my day/week/month.Thank you so much.