Thread Tools Display Modes
  #1   Report Post  
Bill Miller
 
Posts: n/a
Default Detecting corrupt wav files?

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?

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

  #3   Report Post  
malcolm
 
Posts: n/a
Default Detecting corrupt wav files?


"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?

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


I thought Wav files were raw? no way to detect corruption !.

do you mean MP3 or similar type files?


  #4   Report Post  
William Sommerwerck
 
Posts: n/a
Default Detecting corrupt wav files?

The Exact Audio Copy program checks for corruption when ripping a file from a CD
to WAV format. But I don't think it can analyze existing files.

In principle, you could write a program that opened and read the WAV file,
looking for such things as excessively long all-zero or full-scale sequences, or
abrupt jumps in sample values.


  #5   Report Post  
Ricky W. Hunt
 
Posts: n/a
Default Detecting corrupt wav files?

"malcolm" wrote in message
...

"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?

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



I missed the original post so I'm not sure what you mean by corrupt but they
certainly can be corrupt: missing or fouled headers; headers that are
correct but the data is corrupt; etc. The second kind is the hardest to
detect because the OS thinks they are fine and will even open them and they
will "play" somewhat (even though it's usually ear crunching noise). I don't
know of a program that will detect the second type but you might be able to
either copy the files to another directory and see if the copy fails. That
would be my first step. That might tell you which files are physically
corrupt. Secondly you might be able to use something like Windows Media
Player and just play the whole directory (like a playlist). If any files
fail to open or if they play noise you'll know they are corrupt. Of course
someone while have to sit and monitor it but you can "fast forward" to the
next one when you know the file is OK.




  #6   Report Post  
Dick Pierce
 
Posts: n/a
Default Detecting corrupt wav files?

"malcolm" wrote in message ...
"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?

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


I thought Wav files were raw? no way to detect corruption !.


No, WAV files are NOT raw files. Wave files have format information,
enabling a wav reader to fully interpret the contents. A raw audio
file simply has samples, no format, no sample rate, no nothing.

On CAN detect corruption in the various chunks, like the fmt
chunk (bogus sample rate, inconsistent average byte rate, and
so on), one can detect whetehr chunk headers are corrupted, and
so on.

But, even if its MPEG encoded, one may net necessarily be able to
detect if the audio DATA is corrupted. (Yes, WAV files CAN be MPEG
format).

  #7   Report Post  
Ben Bradley
 
Posts: n/a
Default Detecting corrupt wav files?

In rec.audio.misc,rec.audio.tech,rec.audio.pro,rec.ra dio.broadcasting,
"William Sommerwerck" wrote:

The Exact Audio Copy program checks for corruption when ripping a file from a CD
to WAV format. But I don't think it can analyze existing files.


Reading from the CD is different, because the drive gives errors
when it can't read/reconstruct a sector from the CD. Also, the actual
data from the CD is "raw" whereas a .wav file is not.
As Dick Pierce said, the .wav file is not "raw" but has a header
with sample rate, number of channels, number of bytes per sample, file
length and such. This can be checked for "reasonable" values and the
claimed length against the actual file length, things like that.

In principle, you could write a program that opened and read the WAV file,
looking for such things as excessively long all-zero or full-scale sequences, or
abrupt jumps in sample values.


This is a way to discriminate in the .wav data or a raw file
whether the content is "musical" or not, but may not be foolproof.
All-zero sequences might last for over four and a half minutes. g
An LP declicking algorithm would find abrupt jumps with no trouble.
-----
http://mindspring.com/~benbradley

  #8   Report Post  
malcolm
 
Posts: n/a
Default Detecting corrupt wav files?


"Ben Bradley" wrote in message
...
In rec.audio.misc,rec.audio.tech,rec.audio.pro,rec.ra dio.broadcasting,
"William Sommerwerck" wrote:

The Exact Audio Copy program checks for corruption when ripping a file

from a CD
to WAV format. But I don't think it can analyze existing files.


Reading from the CD is different, because the drive gives errors
when it can't read/reconstruct a sector from the CD. Also, the actual
data from the CD is "raw" whereas a .wav file is not.
As Dick Pierce said, the .wav file is not "raw" but has a header
with sample rate, number of channels, number of bytes per sample, file
length and such. This can be checked for "reasonable" values and the
claimed length against the actual file length, things like that.

In principle, you could write a program that opened and read the WAV

file,
looking for such things as excessively long all-zero or full-scale

sequences, or
abrupt jumps in sample values.


This is a way to discriminate in the .wav data or a raw file
whether the content is "musical" or not, but may not be foolproof.
All-zero sequences might last for over four and a half minutes. g
An LP declicking algorithm would find abrupt jumps with no trouble.
-----
http://mindspring.com/~benbradley


ah modern art, wonder if they would hand out a grant for a new version g



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting audio metadata Gaz General 2 October 27th 03 04:28 PM
Sources of Help With Ripping CD's to .wav Files Magnusfarce General 4 October 27th 03 03:24 AM
Real Audio Stream to Files !! Bhaskar General 0 August 22nd 03 02:49 PM
fix audio files [email protected] General 1 July 15th 03 05:44 PM
HARMAN KARDON DAL 150 and .WMA files... Faustino Dina General 2 July 8th 03 06:58 PM


All times are GMT +1. The time now is 10:36 PM.

Powered by: vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 AudioBanter.com.
The comments are property of their posters.
 

About Us

"It's about Audio and hi-fi"