Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know from [Sources], that FLAC computes CRC and MD5.

What I am afraid that flac --test only does CRC test - as stated in man flac : same as -d except no decoded file is written .

How to check flac file correctness, using MD5 of raw PCM placed in STREAMINFO in given .flac file ?

If flac --test makes job, are there any reliable (like in flac documentation) references that shows it?


http://en.wikipedia.org/wiki/Free_Lossless_Audio_Codec we can find:

FLAC uses CRC checksums for identifying corrupted frames when used in a streaming protocol, and also has a complete MD5 hash of the raw PCM audio stored in its STREAMINFO metadata header.


By default when processing files, flac computes the MD5 sum while encoding and decoding.

To see md5sums in STEAMINFO we can use:

$ metaflac --show-md5sum *.flac
share|improve this question

The most reliable source is the source code itself, and it does suggest that MD5 stored in STREAMINFO is checked by default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.