Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

Sources:

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.

http://flac.sourceforge.net/comparison.html

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.