Consistency checking

FLAC

FLAC files already contain MD5 sums of stream data, so changes to other metadata (artist, track title, etc) will not perturb this checksum. flac can be used to check FLAC files:

   1 flac -ts *.flac

Some FLAC files cannot be checked, with the self-explaining warning:

WARNING, cannot check MD5 signature since it was unset in the STREAMINFO

The best thing to do is decode and recompress the FLAC files to contain an MD5 header. In the process, decoding is an effective check for frame damage. To rencode such files in-place:

   1 flac --best -f *flac

MP3

Checkmate MP3 checker is a simple and fast tool for checking MP3 files, particularly checking for bad frames. Invocation:

   1 mpck -qrB .


CategoryCheatSheet