Silent data corruption when converting WAV files

To get bugs in the current release fixed, please report them here.

Moderator: Gurus

fphantom
Posts: 1
Joined: Fri Jul 10, 2020 8:42 pm
Contact:

Silent data corruption when converting WAV files

Post by fphantom »

When converting from accurately ripped WAV to FLAC or WAV to ALAC M4A, the resultant track is not always a bit-perfect copy of the original. This is reproducible for particular tracks on particular CDs and in a quick test I found many but not all of my CD rips are affected. For those affected it is most often one faulty track per album but sometimes more.
A reproducible procedure to replicate is as follows:
1. Rip a CD to WAV files (one file per track) with Exact Audio Copy v1.3 and verify a perfect rip with both CTDB and AccurateRip
2. Convert WAV files to FLAC (or ALAC) in Media Monkey
3. Check accuracy with CUEtools, and (in this example) track #10 of 14 no longer accurate, all other 13 tracks accurate. Same track affected for FLAC or ALAC conversion.
To narrow down the cause of this data corruption bug:
4. Check original WAV files with CUEtools, all still accurate
5. Convert original WAV files to FLAC in CUETools and check: CUETools conversion is all accurate.
6. Convert accurate CUETools FLAC files to ALAC in Media Monkey, all still accurate
So the problem appears to be in the WAV reading portion of the Media Monkey conversion algorithm.
This reveals at least two serious problems with MediaMonkey:
1. There is consistent silent corruption of data on conversion of certain WAV files
2. MediaMonkey apparently does not verify the audio stream in files after it has written them. For lossless destination formats, MediaMonkey should verify the resultant converted file, especially if the format conversion is set to replace the original. Such verification should occur before any originals are removed, and if implemented properly this would have surely revealed the existence of the bug above before the faulty software was released.
I am using the latest MediaMonkey 4.1.28.1905 (Standard Edition) on Windows 10, 64bit, build 1903. But I can also see this data corruption problem has been in MediaMonkey since at least MediaMonkey 4.1.23, which I first used to convert my WAV files to FLAC, as some of my rips from that time are also affected.
Lowlander
Posts: 47910
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5
Contact:

Re: Silent data corruption when converting WAV files

Post by Lowlander »

Provide track 10 to support if you can consistently reproduce. Also add converted FLAC copy that isn't an accurate copy. As files are larger upload to a fileshare like Dropbox and provide the link to it in your Support Ticket: https://www.mediamonkey.com/support/ind ... ets/Submit
Lowlander (MediaMonkey user since 2003)
Peke
Posts: 13453
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Silent data corruption when converting WAV files

Post by Peke »

HI,
In order to get it accurately, please provide us both WAV and Converted FLAC. I have seen that some apps incorrectly calculate based on Metadata and information contained in files.
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum
Post Reply