View Single Post
  #2   Report Post  
Old January 14th 04, 04:55 AM
Dick Pierce
 
Posts: n/a
Default

(Bill Miller) wrote in message ...
Is there a utility that can look at a directory full of wav files and
report if any of them are corrupt in any way?


Corrupt in ANY way? No, it's not possible.

I could take a completely valid wave file and replace the data
chunk with nothing more than random numbers, and as long as I get
the chunk header right, it's a valid wave file. I could swap all
the bytes of all the samples And it would sound AWFUL) and as long
as the chunk headers are right, it's a valid wave file. I could
change the sample rates around and as long as I maintain consistency
in the fmt chunk, it's a valid wave file. I could take an MPEG
wave file, change the fmt chunk to say it's PCM format, and, again,
as long as everything is consistent, it's a valid wave file, even
though the file is very audibly corrupted.

You CAN find things like contradictions in parts of the fmt chunk,
invalid lengths of chunks, missing fmt extension for non-PCM formats
and such.

Ideally, it would also report the sampling rate and bit rate of the
files.


There are probably a bunch of things out there, but check out
www.cartchunk.org for one WAVE utility whose intent is to
display metadata in WAVE files, including support for EBU and
AES-46-2003 compliant WAVE files.