Log in

View Full Version : corrupted wave files


Jay Blanchard
October 23rd 03, 02:43 AM
Some audio (wave) files on my computer have suddenly been corrupted for no
apparent reason. When I try to play these I get an error "Invalid file type"
I can fix this by copying the header information from a non corrupted wave
file into a corrupted one. However I still get an error: "Unknown CODEC" ...
As far as I know it is impossible to fix this, however if anyone has any
ideas?


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03

Len Moskowitz
October 23rd 03, 03:44 AM
Jay Blanchard > wrote:

>Some audio (wave) files on my computer have suddenly been corrupted for no
>apparent reason. When I try to play these I get an error "Invalid file type"
>I can fix this by copying the header information from a non corrupted wave
>file into a corrupted one. However I still get an error: "Unknown CODEC" ...
>As far as I know it is impossible to fix this, however if anyone has any
>ideas?

You might try using Gidluck Mastering's WaveScript to salvage the file.

--
Len Moskowitz PDAudio, Binaural Mics, Cables, DPA, M-Audio
Core Sound http://www.stealthmicrophones.com
Teaneck, New Jersey USA http://www.core-sound.com
Tel: 201-801-0812, FAX: 201-801-0912

Jay Blanchard
October 24th 03, 02:18 AM
Thanks for the help people!


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 16/10/03

October 24th 03, 04:31 AM
In rec.audio.tech Jay Blanchard > wrote:
> Some audio (wave) files on my computer have suddenly been corrupted for no
> apparent reason. When I try to play these I get an error "Invalid file type"
> I can fix this by copying the header information from a non corrupted wave
> file into a corrupted one. However I still get an error: "Unknown CODEC" ...
> As far as I know it is impossible to fix this, however if anyone has any
> ideas?

Rename the file to .raw, then use SOX to convert to .wav (something like
$sox -c2 -w -s -r44100 file.raw file.wav
assuming 44.1, stereo, signed, 16 bit).

Then you will need to remove the click that has probably been introduced
by reading the header as audio, but that should be easy.

I consider sox to be an essential tool for hacking around with audio
file formats.


Regards, Dan.
--
** The email address *IS* valid, do NOT remove the spamblock
And on the evening of the first day the lord said...........
..... LX 1, GO!; and there was light.