Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Apple Lossless "DIFF" tests (Read 3034 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Apple Lossless "DIFF" tests

Reading this forum gave me the idea of doing some tests on Apple Lossless encoded files to see exactly how lossless they really are. One user reported using the UNIX command "diff" on an original WAV file and a WAV file converted from an ALAC file converted from the original WAV file. His results were identical. I decided to repeat the procedure, but testing AIFF files as well.

The results were quite interesting.

While the original WAV and the 3rd generation WAV reported identical, the original AIFF and 3rd generation AIFF files did not. In fact, file sizes differed by 6 bytes, the alac2aiff file being larger. I've also tested iTunes converting WAV to AIFF and then back to WAV, and vice versa. Those proved to be identical.

Any ideas explaining the behavior? Thanks.

Tests were done in the latest iTunes on a Mac platform. iTunes version 7.0.2

Code: [Select]
diff cdda2wav.wav alac2wav.wav -s
Files cdda2wav.wav and alac2wav.wav are identical

diff cdda2aiff.aif alac2aif.aif -s
Binary files clean.aif and radio.aif differ

 

Apple Lossless "DIFF" tests

Reply #1
WAV and AIFF files have headers and other metadata that can differ even if the actual sound signal doesn't, so always export the raw signal before doing such a comparison (you can use pretty much any audio editor for this, if you haven't got one yet Audacity can probably do this, although I haven't checked).