HydrogenAudio

Lossless Audio Compression => Lossless / Other Codecs => Topic started by: RazorBoy143 on 2011-04-13 14:43:32

Title: Monkey's Audio MD5 in foobar2000 is...wrong?
Post by: RazorBoy143 on 2011-04-13 14:43:32
When I transcoded a FLAC file into a Monkey's Audio file, MD5 and Bit Comparison tests in foobar2000 showed the files were identical. Yet when I looked at the MD5s that were stored in each file's metadata, they were totally different. The same thing happened when I transcoded a WavPack file into a Monkey's Audio file. Is this due to a quirk in the APE format and the way it gets an MD5 signature? Or is foobar2000 not reading the MD5 signature correctly?
Title: Monkey's Audio MD5 in foobar2000 is...wrong?
Post by: tuffy on 2011-04-13 15:35:13
FLAC's MD5 sum is of the file's raw data when decompressed.  Monkey's Audio's MD5 sum is of different parts of the compressed .ape file.  So it's okay that the two don't match up.
Title: Monkey's Audio MD5 in foobar2000 is...wrong?
Post by: dv1989 on 2011-04-14 11:05:30
Monkey's Audio's MD5 sum is of different parts of the compressed .ape file.
Which parts? I trust you you don’t mean everything; computing such an MD5 would require analysing the whole file including its not-yet-existent MD5…
Title: Monkey's Audio MD5 in foobar2000 is...wrong?
Post by: tuffy on 2011-04-14 13:27:54
Monkey's Audio's MD5 sum is of different parts of the compressed .ape file.
Which parts? I trust you you don’t mean everything; computing such an MD5 would require analysing the whole file including its not-yet-existent MD5…

It's the MD5 sum of everything from the end of the seektable to the end of the file data (not counting any metadata tags), and everything from the end of the descriptor to the end of the seektable.  Since the MD5 sum lives in the descriptor at the start of the file, it all works out.
Title: Monkey's Audio MD5 in foobar2000 is...wrong?
Post by: greynol on 2011-04-14 16:22:54
http://www.hydrogenaudio.org/forums/index....st&p=552272 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=60308&view=findpost&p=552272)