IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
How to validate a flac file
freboat
post Oct 22 2006, 04:27
Post #1





Group: Members
Posts: 10
Joined: 16-October 06
Member No.: 36427



when i get a flac file,

how can i simply check whether it is corrupt compared with the original wav file ?

thanks
Go to the top of the page
+Quote Post
Mangix
post Oct 22 2006, 06:05
Post #2





Group: Members
Posts: 587
Joined: 26-February 06
Member No.: 28077



decode it. i believe that josh coalson confirmed that FLAC checks the md5 which is stored inside.

also, if it is corrupt, the FLAC decoder will error while playing(this shows up at the Console in foobar2000).
Go to the top of the page
+Quote Post
ozmosis82
post Oct 22 2006, 07:34
Post #3





Group: Members
Posts: 204
Joined: 26-March 06
From: Edmonton, Canada
Member No.: 28860



QUOTE (jcoalson @ Oct 21 2006, 12:16) *
QUOTE (ozmosis82 @ Oct 21 2006, 04:00) *
Anyway, I went to WavPack because of the MD5 checksum that it stores and uses to check against when decoding. I realise that FLAC stores the MD5 checksum in the compressed file's metadata, but I wasn't sure if it actually checks against it when decoding.

FLAC was the first codec to have the MD5 sum (it was there from the beginning) and it checks it when decoding.

http://flac.sourceforge.net/documentation.html
"In test mode, flac acts just like in decode mode, except no output file is written. Both decode and test modes detect errors in the stream, but they also detect when the MD5 signature of the decoded audio does not match the stored MD5 signature, even when the bitstream is valid. "

http://flac.sourceforge.net/documentation...._options_decode
-d, --decode Decode (flac encodes by default). flac will exit with an exit code of 1 (and print a message, even in silent mode) if there were any errors during decoding, including when the MD5 checksum does not match the decoded output. Otherwise the exit code will be 0.

Josh

Voila
Go to the top of the page
+Quote Post
Synthetic Soul
post Oct 22 2006, 08:19
Post #4





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



If you have a load of files to test I suspect foobar's File Integrity Verifier may be handy.

If not, I have a batch file that can help.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
freboat
post Oct 22 2006, 08:35
Post #5





Group: Members
Posts: 10
Joined: 16-October 06
Member No.: 36427



Thanks to all,
i tried "flac -t"
it seems to work well!
Go to the top of the page
+Quote Post
EuMesmo
post Oct 28 2006, 00:51
Post #6





Group: Members
Posts: 21
Joined: 21-October 06
Member No.: 36610



The FLAC frontend for windows has a TEST function.
And if you have too many files, try FLACTester, from this page: http://www.vuplayer.com/other.php

It's a simple, no install, program that does the same as flac -t.

I have tryed the foobar file integrity check and it failed me once with a flac file.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th September 2014 - 12:19