Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform


Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | WAV file header corrupted - help needed

There are 7 messages in this thread.

You are currently looking at messages 0 to 7.


WAV file header corrupted - help needed - kim78 - 2006-04-11 08:35:00

Hi,

I'm in a bit of trouble with a WAV-file. I spoke at a symposium earlier
this year and recorded my talk with a MP3 player. However, to my
devastation I later found out that the resulting WAV file is corrupted and
will not play, and somebody thought that it is because the header has a
fault. Now I would like to use the audio from my talk to make the first
draft of a paper version of the presentation for a compilation, but cannot
do it.

The MP3 player records the WAV-files with 8-bit precision and IMA ADPCM
coding. Can anybody help me with this problem? I will be glad to send a
link to the file (17 Mb) in a personal e-mail if somebody wants to take a
look at it. Thanks all!

Kim


______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - kim78 - 2006-04-11 08:57:00



>Hi,
>
>I'm in a bit of trouble with a WAV-file ...´

Ok, never mind! I figured it out with the help of some message board
post.
The trick:

1. Get a hex-editor like XVI32.
2. Open the header of an intact file recorded with the same MP3 player
with the hex-editor.
3. Replace the corrupt header one hex-code after another with the header
of the intact file. Stop when you've gotten a bit further than the place
where the hex-code translates to the phrase "data".
4. You might have to do some tweaking in order to set the length of the
file properly, so you don't miss something at the end. The basic structure
of the header is given for example at
http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/

I hope this helps somebody else :)
Kim

______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - Jerry Avins - 2006-04-11 11:38:00

kim78 wrote:

   ...

> I hope this helps somebody else :)

It's interesting at the very least. Thanks for sharing the link.

Jerry
-- 
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - Jon Harris - 2006-04-12 18:39:00

"kim78" <k...@tut.fi> wrote in message 
news:e...@giganews.com...
> >Hi,
>>
>>I'm in a bit of trouble with a WAV-file ...´
>
> Ok, never mind! I figured it out with the help of some message board
> post.
> The trick:
>
> 1. Get a hex-editor like XVI32.
> 2. Open the header of an intact file recorded with the same MP3 player
> with the hex-editor.
> 3. Replace the corrupt header one hex-code after another with the header
> of the intact file. Stop when you've gotten a bit further than the place
> where the hex-code translates to the phrase "data".
> 4. You might have to do some tweaking in order to set the length of the
> file properly, so you don't miss something at the end. The basic structure
> of the header is given for example at
> http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/

Glad you solved the problem.  Another solution is that some wave editors allow 
opening a file as raw data with the user manually specifying the format 
(encoding, sample rate, number of bits, number of channels, byte order, etc.). 
Using that technique, you can open any file as long as you know the format, 
whether or not you have a "good" header to work with.  If you don't know all the 
format details, trial and error usually works.  You may have to trim a bit off 
the front (or back) end since it would interpret the corrupted header as audio 
data, but that is usually very simple.

-- 
Jon Harris
SPAM blocker in place:
Remove 99 (but leave 7) to reply 


______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - ali-m - 2007-10-25 09:31:00

This post was a life saver. I recovered a very important discussion with a
client that we had recorded on a portable digital audio recorder.

Thanks a lot,
ali-m

>"kim78" <k...@tut.fi> wrote in message 
>news:e...@giganews.com...
>> >Hi,
>>>
>>>I'm in a bit of trouble with a WAV-file ...?
>>
>> Ok, never mind! I figured it out with the help of some message board
>> post.
>> The trick:
>>
>> 1. Get a hex-editor like XVI32.
>> 2. Open the header of an intact file recorded with the same MP3 player
>> with the hex-editor.
>> 3. Replace the corrupt header one hex-code after another with the
header
>> of the intact file. Stop when you've gotten a bit further than the
place
>> where the hex-code translates to the phrase "data".
>> 4. You might have to do some tweaking in order to set the length of
the
>> file properly, so you don't miss something at the end. The basic
structure
>> of the header is given for example at
>> http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/
>
>Glad you solved the problem.  Another solution is that some wave editors
allow 
>opening a file as raw data with the user manually specifying the format 
>(encoding, sample rate, number of bits, number of channels, byte order,
etc.). 
>Using that technique, you can open any file as long as you know the
format, 
>whether or not you have a "good" header to work with.  If you don't know
all the 
>format details, trial and error usually works.  You may have to trim a
bit off 
>the front (or back) end since it would interpret the corrupted header as
audio 
>data, but that is usually very simple.
>
>-- 
>Jon Harris
>SPAM blocker in place:
>Remove 99 (but leave 7) to reply 
>
>
>


______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - RS - 2007-10-27 12:47:00

I just posted this elsewhere yesterday and someone pointed me to your
post!

Using an mp3 player with voice recorder, I was reading a book, hit
pause to get something, and didn't return to recording. I fell asleep
and forgot to hit save.  The battery must have run down and did some
kind of autosave.  The file is 8 megs but in using Adobe Audition to
edit it, there is no wav to display.  Does anyone know how to extract
that data or
fix the file?

--
Robert Pearson
ParaMind Brainstorming Software http://www.paramind.net
Creative Virtue Press/Telical Books/Regenerative Music
http://www.rspearson.com

______________________________
DSPRelated.com's 50,000th member announced! Details Here.

Re: WAV file header corrupted - help needed - Mark - 2007-10-27 23:08:00

On Oct 27, 11:47 am, RS <paramindsoftw...@gmail.com> wrote:
> I just posted this elsewhere yesterday and someone pointed me to your
> post!
>
> Using an mp3 player with voice recorder, I was reading a book, hit
> pause to get something, and didn't return to recording. I fell asleep
> and forgot to hit save.  The battery must have run down and did some
> kind of autosave.  The file is 8 megs but in using Adobe Audition to
> edit it, there is no wav to display.  Does anyone know how to extract
> that data or
> fix the file?
>
> --
> Robert Pearson
> ParaMind Brainstorming Softwarehttp://www.paramind.net
> Creative Virtue Press/Telical Books/Regenerative Musichttp://www.rspearson.com

use Google groups to read the beginning of the thread that starts on
Apr 11, 2006

______________________________
DSPRelated.com's 50,000th member announced! Details Here.