Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old January 13th 04, 07:58 PM
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  
Old January 14th 04, 04:07 PM
malcolm
 
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?

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  
Old January 14th 04, 07:04 PM
William Sommerwerck
 
Posts: n/a
Default

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  
Old January 15th 04, 05:19 AM
Ricky W. Hunt
 
Posts: n/a
Default

"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  
Old January 15th 04, 05:19 AM
Dick Pierce
 
Posts: n/a
Default

"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  
Old January 15th 04, 06:45 AM
Ben Bradley
 
Posts: n/a
Default

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  
Old January 16th 04, 03:24 PM
malcolm
 
Posts: n/a
Default


"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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
digital conversion of tapes to files t...biteme General 2 December 24th 03 12:19 AM
ROHN Files for Chapter 11 Protection... Frank Todd K3EKO General 0 September 24th 03 04:37 PM
ROHN Files for Chapter 11 Protection... Frank Todd K3EKO General 0 September 24th 03 04:37 PM
ROHN Files for Chapter 11 Protection... Frank Todd K3EKO Policy 0 September 24th 03 04:37 PM
.EZ files to .N4W files conversion Martin Antenna 1 August 11th 03 12:01 AM


All times are GMT +1. The time now is 11:53 PM.

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

About Us

"It's about Radio"

 

Copyright © 2017