Become a Site Supporter and Never see Ads again!

Author Topic: Homegrown WAVE header repair utility  (Read 104155 times)

0 Members and 1 Guest are viewing this topic.

Offline pigiron

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 250
  • Gender: Male
  • I just did what I did
Homegrown WAVE header repair utility
« on: October 03, 2006, 02:04:30 AM »
I saw that a few folks are getting corrupted headers in their wave files and having a struggle with the existing utilities trying to fix the problem. So I cobbled together a wave header repair utility this last weekend that may help... 'cause I hate to see good music go to waste ;D

But it's a butt ugly command line program... if you want pretty, try next door.

Since it's mostly "universal" C coding, I was able to get it to compile on both Linux and Winders... don't own a Mac, sorry.

Beat the hell out of it and it seems to be working, but I'd be surprised if there wasn't some bugs still down in the cracks... so for sure, only use it on a backup copy.

Here's a sample output where it successfully repaired a wave file that had nothing but zeroes in the entire header and a partially truncated audio data sample (about as bad as it get's)...

# ./fixwav junk.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020:  00 00 00 00 00 00 00 00 00 00 00 00             ............

Exit the program now? [y/n] n
The total file size is 32617577 bytes
Chunk Size of 0 at offset 4 is incorrect... repairing
Chunk Format at offset 8 is incorrect... repairing
Subchunk1 ID at offset 12 is incorrect... repairing
Subchunk1 Size at offset 16 is incorrect... repairing
Subchunk1 Format at offset 20 is incorrect... repairing
Is the file recorded in 0 channels?  [y/n] n
Enter number of channels... 1=Mono, 2=Stereo, etc: 2
Is the number of samples per second = 0?  [y/n] n
Enter number of samples per second: 44100
Is the number of bits per sample = 0?  [y/n] n
Enter number of bits per sample: 16
Subchunk1 Format at offset 24 is incorrect... repairing
Subchunk1 Bytes Per Sample at offset 32 is incorrect... repairing
Subchunk2 ID at offset 36 is incorrect... repairing
Subchunk2 Size at offset 40 is incorrect... repairing
Found incorrect number of audio samples. This means that either
   the new WAVE header data is incorrect, or the audio samples
   in the existing file were clobbered. Do you wish to add silent
   audio samples to the end of the file?
   WARNING: this will modify the existing file. [y/n] y

Header repair is required!
   Overwrite the existing file? [y/n] y

File repair successful

As you see, you need to know a little about the file... the number of bits, the samples per second, and the number of mics... while that might stump a n00b, I don't think you'll have any problem.

One caveat... it assumes you're feeding it a "normal" wave file... i.e. only a single data "Subchunk"... if it ain't such an animal... or if it simply has junk data appended to it (there's some dumb ass programs that add ID3 tags like that), it's gonna hose up.

anyway, they're attached below... enjoy... and remember... you got it free  ;D
skm184, lsd2
v2, sd722, mini-me, jb3

Offline udovdh

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 986
Re: Homegrown WAVE header repair utility
« Reply #1 on: October 03, 2006, 04:41:51 AM »
Interesting. Thanks.
No source?

Offline strsng

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 1
Re: Homegrown WAVE header repair utility
« Reply #2 on: October 25, 2006, 11:57:17 PM »
Great, Thanks a lot. This is what I've been looking for!

Offline Will_S

  • Trade Count: (15)
  • Needs to get out more...
  • *****
  • Posts: 2217
Re: Homegrown WAVE header repair utility
« Reply #3 on: October 26, 2006, 01:04:50 AM »
If you're willing to share the source code, I'll take a crack at compiling it for the Mac.

Offline pigiron

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 250
  • Gender: Male
  • I just did what I did
Re: Homegrown WAVE header repair utility
« Reply #4 on: October 26, 2006, 03:22:46 AM »
sounds good... only ask that you throw it back up here so that all can share... unless someone has a better idea of where to keep it... it's too small, simple, and ugly for something like sourceforge.

It's created on linux, but surprisingly, the windoze compiler I used ate it without any CR/LF conversions (and without having to create a new Makefile)... and hopefully not too many changes required for the mac.

fixes and enhancements welcome  :)
skm184, lsd2
v2, sd722, mini-me, jb3

Offline udovdh

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 986
Re: Homegrown WAVE header repair utility
« Reply #5 on: October 27, 2006, 01:18:54 PM »
Thanks for the source!

Offline Chris K

  • Trade Count: (5)
  • Needs to get out more...
  • *****
  • Posts: 3141
  • Bound to cover just a little more ground
Re: Homegrown WAVE header repair utility
« Reply #6 on: November 25, 2006, 10:48:27 AM »
bumping this up, because this program helped save an encore to a recent show

thanks for this
My gear: JK Labs AKG DVC > M10
              AKG 460 ck61/ck62/ck63 > DR-70D
             
A live concert to me is exciting because of all the electricity that is generated in the crowd and on stage. It's my favorite part of the business, live concerts.
-Elvis Presley

Offline kuba

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 119
  • Gender: Male
  • king of snake
Re: Homegrown WAVE header repair utility
« Reply #7 on: November 25, 2006, 11:01:50 AM »
This seems to be galaxies better than the one I made. +T
AT831 > bb > iRiver H120

Offline sleepypedro

  • Trade Count: (4)
  • Needs to get out more...
  • *****
  • Posts: 4140
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #8 on: November 26, 2006, 07:17:58 AM »
thank you bob!   ;D

Offline ashevillain

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 3368
Re: Homegrown WAVE header repair utility
« Reply #9 on: November 26, 2006, 09:45:01 PM »
If you're willing to share the source code, I'll take a crack at compiling it for the Mac.

Did this ever happen?

Offline Will_S

  • Trade Count: (15)
  • Needs to get out more...
  • *****
  • Posts: 2217
Re: Homegrown WAVE header repair utility
« Reply #10 on: November 26, 2006, 09:53:03 PM »
If you're willing to share the source code, I'll take a crack at compiling it for the Mac.

Did this ever happen?

Wayne got it running:

http://taperssection.com/index.php?topic=74508.msg998132#msg998132

Offline ashevillain

  • Trade Count: (25)
  • Needs to get out more...
  • *****
  • Posts: 3368
Re: Homegrown WAVE header repair utility
« Reply #11 on: November 26, 2006, 10:04:31 PM »
If you're willing to share the source code, I'll take a crack at compiling it for the Mac.

Did this ever happen?

Wayne got it running:

http://taperssection.com/index.php?topic=74508.msg998132#msg998132

Thanks!

...however, now I can't even see the files on the "NONAME" drive. So I can't transfer them to the Mac in order to fix them.

Offline funk_pie

  • Victim of comfort
  • Trade Count: (0)
  • Taperssection Member
  • Posts: 878
  • Gender: Male
  • O hai!
    • My db list...
Re: Homegrown WAVE header repair utility
« Reply #12 on: April 19, 2007, 12:17:24 AM »
(so i wasn't used to having the hold button on, jb3 user)...first time out with the the iriver, i put it on hold, but forgot at the end. i hit reset to turn it off.  everything was saved but the saved file wouldn't play.  transferred 1.3 GB of data.  still won't play.  found this application, did the trick.  beautifully done.  :coolguy:
As a child, a library card takes you to exotic, faraway places. When you're grown up, a credit card does it.  -Sam Ewing

Offline pigiron

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 250
  • Gender: Male
  • I just did what I did
Re: Homegrown WAVE header repair utility
« Reply #13 on: May 15, 2007, 12:45:07 AM »
never even thought about sample shifts... good idea!... PM sent for more info.
skm184, lsd2
v2, sd722, mini-me, jb3

Offline kgreener

  • Trade Count: (4)
  • Taperssection All-Star
  • ****
  • Posts: 1448
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #14 on: May 21, 2007, 02:48:12 PM »
plus freakin' T dude, this just saved my ass!

another one in 12...

thanks

Offline zupercreep

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 22
Re: Homegrown WAVE header repair utility
« Reply #15 on: May 29, 2007, 03:32:23 PM »
wonderful. just saved my recording!

thank you!

BobW

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #16 on: June 19, 2007, 10:41:32 PM »
Gordon Gidluck has had a utility out for resizing WAV files to below the 2GB limit:
http://www.gidluckmastering.com/audiohck.zip

http://www.gidluckmastering.com

Gordon has done extensive work writing the "Live 2496" recording application for Pocket PC, Windows-based PDAs.
« Last Edit: June 19, 2007, 10:44:24 PM by Bob. »

Offline opticalaudio

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 1
Re: Homegrown WAVE header repair utility
« Reply #17 on: July 11, 2007, 11:15:15 AM »
Thanks SO much for putting this out there!!!  Last weekend my R-09 fell while recording and apparently shut down on impact.  There was a file there, but it wasn't recognized as a valid wav.

Your utility saved it!  And me....since I was pretty devasated after make a 15 hour drive (each way) to see/capture the show.

thanks again!!!


spreadheadtom

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #18 on: July 12, 2007, 11:59:07 AM »
anyone have any luck running this with Vista?  Maybe I am just a complete moron?

Offline Rleeee

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 148
  • Gender: Male
  • Lets Dance, Sylvia, Dance!
Re: Homegrown WAVE header repair utility
« Reply #19 on: July 31, 2007, 01:44:47 PM »
Plus T. Your utility just saved another recording.  Thank You.
Open:  Busman Audio BSC1-K1/K2/K3/K4 > Kind Kables Chameleon > Marantz PMD-661 (Oade Concert Mod)

No Stand:  AT831s > CA Bat 2B Battery Box > Tascam DR-07 

  " Poor people need MUISC too! "

Offline Patrick

  • Evil Urges, Baby.
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5220
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #20 on: July 31, 2007, 03:54:13 PM »
For some reason Wayne's compiled code for macs doesn't work for me.  Any hints?  Opening the utility up in Terminal doesn't work.

Thanks in advance!
Monitor Engineer: Band of Horses, Cage the Elephant, Bruce Hornsby, The Head and the Heart, Josh Ritter

Live Music Archive Bookmarks

Offline optimisticpessimist

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #21 on: November 22, 2007, 12:42:52 PM »
Pigiron... tried sending you a PM but it's not working for me.  I'm trying to use this wav header program for myself but I obviously don't know what I'm doing.  The batteries on my R-09 failed while taping and the file won't play in any audio program, but I am able to copy it and rename it.  If anyone feels like helping me out it would be much appreciated!    ???

Offline pigiron

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 250
  • Gender: Male
  • I just did what I did
Re: Homegrown WAVE header repair utility
« Reply #22 on: November 25, 2007, 06:03:33 PM »
I'm trying to use this wav header program for myself but I obviously don't know what I'm doing.

What the program does is attempt to repair a malformed WAVE header on the audio file (the first 44 bytes of a "normal" WAV file).

Some have used it to actually create a header on an audio file where one didn't previously exist. But doing that will overwrite 44 bytes of music data... a very tiny loss of music, but it's still a loss. That's why the first thing it does is display those first 44 bytes so you can verify that there's actually a header in the file.

Here's an example of it displaying a valid WAVE header... showing the keywords (highlighted in red) that it normally contains:

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  52 49 46 46 24 D4 55 0D 57 41 56 45 66 6D 74 20 RIFF$.U.WAVEfmt
00000010:  10 00 00 00 01 00 02 00 44 AC 00 00 10 B1 02 00 ........D.......
00000020:  04 00 10 00 64 61 74 61 00 D4 55 0D             ....data..U.



If you're a true geek (that can speak "hex), here's some links that explain those magical data bytes:

http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/
http://www.borg.com/~jglatt/tech/wave.htm


It will then ask you to verify three major pieces of audio information it found in the existing header, and allow you to correct them if they're wrong:

Is the file recorded in X channels?  [y/n]

This is verifying that the header contains the correct number of channels (i.e. Recorded with one microphone, two microphones, four microphones, etc). This would normally be 2 channels for a R-09, so you'd answer "N " (for a "No") here if it says anything different... otherwise enter a "Y " (meaning "Yes").

Enter number of channels... 1=Mono, 2=Stereo, etc:

Here's where you'd enter the correct number of channels (and this is only displayed if you answered "N " above).

Is the number of samples per second = XXXXX?  [y/n]

This is asking if the number of samples per second is correct for this audio file. This should normally display 44100 or 48000 for a R-09.

Enter number of samples per second:

This is where you enter the correct number of samples per second (and this is only displayed if you answered "N " above).

Is the number of bits per sample = XX?  [y/n]

This should normally be 16 or 24 bits per audio sample for a R-09. Again, answer "Y " or "N " depending on which setting you used when created the
 recording.

The most important point is that the information you enter must match how you actually created the recording. This program just changes the header... it won't actually convert the audio file from one format to another (for example, it won't actually change a file recorded in 16 bits per sample to 24 bits). So if you enter incorrect values, the audio is going to sound really screwed up on playback... so try running the program again  ;D
skm184, lsd2
v2, sd722, mini-me, jb3

Offline Chilly Brioschi

  • The fool doth think he is wise, but the wise man knows himself to be a fool.
  • Trade Count: (0)
  • Needs to get out more...
  • *****
  • Posts: 15432
  • Gender: Male
  • Waiting for the next cladogenetic event, or Godot
    • Oceana North America
Re: Homegrown WAVE header repair utility
« Reply #23 on: November 28, 2007, 09:23:14 PM »

...however, now I can't even see the files on the "NONAME" drive. So I can't transfer them to the Mac in order to fix them.


Usually this will help:

http://taperssection.com/index.php/topic,88050.msg1170309.html#msg1170309
"Peace is for everyone"
        - Norah Jones

"Music is the drug that won't kill you"
         - Fran Lebowitz

Offline friday

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 20
Re: Homegrown WAVE header repair utility
« Reply #24 on: December 16, 2007, 07:21:17 PM »
Huge thanks! Fixwav just saved me a concert :D

(http://www.2090.org/zoom/bbs/viewtopic.php?t=10044&sid=f552ea93479a599ec7e19336471d8122)

If I could give you tickets I would but I'm new.
« Last Edit: December 16, 2007, 10:27:54 PM by friday »

Offline wbrisette

  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 2855
  • Gender: Male
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #25 on: December 17, 2007, 04:58:16 PM »
For some reason Wayne's compiled code for macs doesn't work for me.  Any hints?  Opening the utility up in Terminal doesn't work.

Thanks in advance!


Seems something changed. Use to work. I'll see if I can recompile it on an Intel Mac.

Wayne
Mics: Earthworks SR-77 (MP), QTC-1 (MP)

Editing: QSC RMX2450, MOTU 2408 MK3, Earthworks Sigma 6.2

Offline avacado

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 1
Re: Homegrown WAVE header repair utility
« Reply #26 on: January 09, 2008, 02:50:41 AM »
Sorry to necro, but I signed up to these forums to download this program.
Your program fixed a file corrupted with a PMD671.
Thank you, pigiron.

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40690
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Homegrown WAVE header repair utility
« Reply #27 on: January 19, 2008, 12:36:48 AM »
Sorry for the STUPID question, but I'm MS/Dos and command line illiterate. Could anyone PLEASE tell me how I get this to scan/work on a particular file? I have it saved from a DVD-R>Internal HD and I have the EXE unzipped, I just need to know how to get it to see/scan/work on the file I need it to look at.

I recorded a second rig at RAQ on NYE and ran MBHO Hypers>722 on the floor, 9th Row/DFC and I also recorded 483>anotehr 722 from the balcony/DFC and my second set got cut at the freakin end by me just messing around w/ my gear, and it jarred my 7.2v NIMH RC batt setup for the 722 just enough to make the RC Connectors loose power for a SPLIT second. Well, the 722 shut down IMMEDIATELY, and I now have a file w/ 0 bytes and no audio. I havent tried to open it in any DAW software programs, but I am sure it WOULDN'T open since it reads 0 bytes. I am HOPING that I can save this file BADLY, because it SMOKES the MBHO source and the MG 300>TMOD R4 source from my stand on the floor. I would LOVE to just have to patch a few seconds compared to the whole set w/ my MBHO source.

If anyone could reply to this thread, or even better yet, shoot my dumb ass a PM and kind of walk me thru the copmmand line instructions. I would be ETERNALLY GRATEFUL ;D I have already tried Kuba's app and I put it in my Bean's DVD folder where I copied the corrupted file to as well, and all it did was flash the command line black screen VERY QUICKLY, like less than a half of a second, and it was GONE :'(

Any help is mUCH appreciated!

Bean
Schoeps MK 4V & MK 41V ->
Schoeps 250|0 KCY's (x2) ->
Naiant +60v|Low Noise PFA's (x2) ->
DarkTrain Right Angle Stubby XLR's (x3) ->
Sound Devices MixPre-6 & MixPre-3

http://www.archive.org/bookmarks/diskobean
http://www.archive.org/bookmarks/Bean420
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline JasonSobel

  • Trade Count: (8)
  • Needs to get out more...
  • *****
  • Posts: 3327
  • Gender: Male
    • My show list
Re: Homegrown WAVE header repair utility
« Reply #28 on: January 19, 2008, 06:35:07 AM »
Bean -

1) copy this into a blank text file:

Quote
fixwav yourfilename.wav

pause

(an obviously write your file name).

2) save the text file, close it, and change the extension from .txt to .bat
3) make sure the .exe file and the .bat file are in the same folder as your .wav file
4) double click on the .bat file

at least, that's how I've been using this program and it works great for me.
« Last Edit: January 19, 2008, 08:47:30 AM by JasonSobel »

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40690
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Homegrown WAVE header repair utility
« Reply #29 on: January 19, 2008, 08:27:30 AM »
Bean -

1) copy this into a blank text file:

Quote
fixwav yourfilename.wav

pause

(an obviously write your file name there in bold).

2) save the text file, close it, and change the extension from .txt to .bat
3) make sure the .exe file and the .bat file are in the same folder as your .wav file
4) double click on the .bat file

at least, that's how I've been using this program and it works great for me.

Jason, first off HUGE +T. Secondly, how do I make JUST the filename in BOLD ??? In Notepad, I can make nothing or everything in BOLD, not just the filename(which is T230. Its straight from the 722>DVD-R>HP Pavilion. Edit: I *think* I figured this part out. I opened the plain text file in Word rather than Notepad and it changed JUST the T230 filename to BOLD. So I guess I'm just unsure how to change the .txt extension to .bat ???

Secondly, I TOTALLY forget how to change an extension. Is it as simple as right-clicking and putting .bat on the end of the filename ???

Thanks alot Jason. I REALLY hope that 483>722 Balcony recording is on there :( As of right now, I only have the last 1min:35sec of the second set :( I guess I will find out shortly!

Bean
« Last Edit: January 19, 2008, 08:32:44 AM by Bean »
Schoeps MK 4V & MK 41V ->
Schoeps 250|0 KCY's (x2) ->
Naiant +60v|Low Noise PFA's (x2) ->
DarkTrain Right Angle Stubby XLR's (x3) ->
Sound Devices MixPre-6 & MixPre-3

http://www.archive.org/bookmarks/diskobean
http://www.archive.org/bookmarks/Bean420
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline JasonSobel

  • Trade Count: (8)
  • Needs to get out more...
  • *****
  • Posts: 3327
  • Gender: Male
    • My show list
Re: Homegrown WAVE header repair utility
« Reply #30 on: January 19, 2008, 08:51:03 AM »
sorry bean, forget about the bold, it makes no difference.  at first, I had put the "yourfilename.wav" in bold, but then the text file was simple enough and obvious enough, so I got rid of the bold part, but forgot to delete the "in bold" in the description below.  just raw text is needed, nothing in bold.

So I guess I'm just unsure how to change the .txt extension to .bat ???

Secondly, I TOTALLY forget how to change an extension. Is it as simple as right-clicking and putting .bat on the end of the filename ???

yeah, its that simple.  it helps to go to "Tools > Folder Options > View > and make sure the "Hide extensions for known file types" is unchecked.

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40690
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Homegrown WAVE header repair utility
« Reply #31 on: January 19, 2008, 10:30:50 AM »
ok, I made all of the text plain like so. This is EXACTLY how I have it written in Notepad:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fixwav T230.wav

pause
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and I changed the filename by right-click>rename and put '.bat' at the end of the filename and it didnt do a thing. I am on FF and didnt see the options you mentioned under 'Tools'
Schoeps MK 4V & MK 41V ->
Schoeps 250|0 KCY's (x2) ->
Naiant +60v|Low Noise PFA's (x2) ->
DarkTrain Right Angle Stubby XLR's (x3) ->
Sound Devices MixPre-6 & MixPre-3

http://www.archive.org/bookmarks/diskobean
http://www.archive.org/bookmarks/Bean420
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline JasonSobel

  • Trade Count: (8)
  • Needs to get out more...
  • *****
  • Posts: 3327
  • Gender: Male
    • My show list
Re: Homegrown WAVE header repair utility
« Reply #32 on: January 19, 2008, 10:35:27 AM »
the Tools > Folder Options > View > and make sure the "Hide extensions for known file types" is unchecked
is an option you should see in any windows explorer window.  not FF.
once you change the extension to .BAT, make sure the .bat, .exe, and .wav file are all in the same folder, and then double-clcik the .bat

Offline pjdavep

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 424
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #33 on: January 19, 2008, 12:39:33 PM »
+T pigiron!

I had some SD card errors at a show the other night and after the set I looked down and it appeared that the R-09 had stopped recording.  I figured that I lost the opener, but when I got home the file was almost 700KB in size.  When I opened with Audition, it was just 10 seconds of nothing.  I used your fixwav utility and once the header was fixed it opened up fine!

BTW, I was using a 4GB Transcend card and recently started seeing an occasional SD card error.  I think I have one of the SD cards that doesn't work so well with the latest R-09 firmware, so I ordered that 8GB Transcend card for $35 from newegg.

Later,
   pjdavep
Recording: DPA 4061s > DPA MMA-6000 > R-09

Playback office: Denon 2200 > Grace 901 > Sennheiser 650's (all Cardas cabling)
            home: Onkyo SP-800 > Denon 887 > Odyssey HT-3 SE > Von Schweikert VR-2  (Kimber Select IC's and Bifocal XL spkr cables)

Offline wbrisette

  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 2855
  • Gender: Male
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #34 on: February 03, 2008, 12:31:20 PM »
I have just recompiled this for Mac OS X (I didn't do anything else to this. This is all Pigiron's work!). This now seems to work again under 10.5.


Also, I'm wondering if there isn't a better place to put these tools.

Wayne
Mics: Earthworks SR-77 (MP), QTC-1 (MP)

Editing: QSC RMX2450, MOTU 2408 MK3, Earthworks Sigma 6.2

Offline optimisticpessimist

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #35 on: February 05, 2008, 11:57:37 AM »
Thanks for all the walkthrough, handholding explanations guys.  I'm finally going to go back and try to use this again tonight.

But what prompted my visit to this thread today is yet another question.  I pulled a great tape last night at a small bar here in Baton Rouge.  I was letting a friend listen back to the recording on headphones afterward, and they accidentally deleted the file.  Now, I'm HOPING that by deleting the file on the SD card in the R-09, that the data isn't actually lost, but simply deleting the headers and the files are still on there until I record over them, or actually format the entire card itself.  Is that true?  Or am I just hoping beyond hope?
« Last Edit: February 05, 2008, 04:58:06 PM by optimisticpessimist »

Offline F.O.Bean

  • Team Schoeps Tapir that
  • Trade Count: (126)
  • Needs to get out more...
  • *****
  • Posts: 40690
  • Gender: Male
  • Taperus Maximus
    • MediaFire Recordings
Re: Homegrown WAVE header repair utility
« Reply #36 on: February 05, 2008, 04:16:07 PM »
could I possibly sende my bad file to someone to see if they have better luck than I am. I am probably just doing somethingw rong. the file reads 0bytes, so maybe there really is nothing there. I can give a mediafire.com link if anyone is willing to help me out :)

TIA,
Bean

EDIT: my T230 WAV File couldnt be uploaded to mediafire.com because it has 0bytes and no data :( So I guess I'm just hosed. Oh well, thats whay my MBHO Source reigned supreme!
« Last Edit: February 05, 2008, 04:19:41 PM by Bean »
Schoeps MK 4V & MK 41V ->
Schoeps 250|0 KCY's (x2) ->
Naiant +60v|Low Noise PFA's (x2) ->
DarkTrain Right Angle Stubby XLR's (x3) ->
Sound Devices MixPre-6 & MixPre-3

http://www.archive.org/bookmarks/diskobean
http://www.archive.org/bookmarks/Bean420
http://bt.etree.org/mytorrents.php
http://www.mediafire.com/folder/j9eu80jpuaubz/Recordings

Offline Brian Skalinder

  • Complaint Dept.
  • Trade Count: (28)
  • Needs to get out more...
  • *****
  • Posts: 18868
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #37 on: February 05, 2008, 10:38:16 PM »
the file reads 0bytes, so maybe there really is nothing there.

The 0 byte reading may just be a header issue.  Don't do anything to the media - record, copy files onto it, etc.  Try one of the file recovery tools mentioned fairly frequently in the Computer Recording forum.
Milab VM-44 Links > Fostex FR-2LE or
Naiant IPA (tinybox format) >
Roland R-05

Offline hawghunter

  • Trade Count: (4)
  • Taperssection Member
  • ***
  • Posts: 384
  • Gender: Male
  • Planet of Sound
Re: Homegrown WAVE header repair utility
« Reply #38 on: May 08, 2008, 10:24:54 PM »
Ok, I've followed the instructions and when I click the .bat file I'm getting an error.

ERROR: Failed to read header from input file.

Anyone have an idea if the file can be saved, or can someone help me out? Would appreciate it.
Thanks
ISO: NIRVANA :), 8/15/91 - The Roxy

930's > MMe

Offline libfab

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 72
  • Gender: Male
New version of Homegrown WAVE header repair utility -- ISO pigiron
« Reply #39 on: June 04, 2008, 05:47:10 PM »
Hi,
I've been trying to get in touch with pigiron about his original fixwav header repair utility.
I'd like to include a modded version of fixwav as a utility for the next version of the DVD-Audio command line tool dvda-author (used by DVD-Audiofile among others).

fixwav-0.1.2 can automatically repair a header with user input limited to the vital minimum. This should help out users who have lost even the descriptive sound characteristics of the file (bit rate and sample rate). To do this trick, the new version uses data redundancies in the WAVE header.

Those conversant with compiling C source files, or who have a Linux OS, can test this modded version by downloading the tarball here:
http://dvd-audio.sourceforge.net/fixwav-0.1.2.tar.bz2

A Linux executable binary is in CB project\bin (compiled with Code::Blocks). It can alternatively be recompiled from source (see README and INSTALL files) with GNU Autotools.

As pigiron's original TS release came without a license, I hope the author will agree to a GPLv3 wrapper license for the whole package, with due mention to the original author's contribution.
Thanks in advance for any feedback on this new version.

Fab Nicol

Offline Charlie Miller

  • Trade Count: (1)
  • Needs to get out more...
  • *****
  • Posts: 2169
  • Gender: Male
  • Come On, Get Happy
Re: Homegrown WAVE header repair utility
« Reply #40 on: June 26, 2008, 10:32:14 PM »
where do I install the exe? I put it in windows, system and system32 and can't get it to run in cmd prompt.
« Last Edit: June 26, 2008, 10:42:54 PM by Charlie Miller »
Audio Engineer & Archivist for Steve Kimock Productions

Schoeps CMC6/MK4, AKG 460/CK61, AKG C34
Sound Devices 744T
Dante Multitrack Rig

Offline flipp

  • resident curmudgeon
  • Trade Count: (17)
  • Needs to get out more...
  • *****
  • Posts: 4285
Re: Homegrown WAVE header repair utility
« Reply #41 on: June 26, 2008, 11:30:51 PM »
Charlie, see Jason's instructions in reply 29 (also quoted in 30 at the top of this page). That's the way I've fixed a couple of bad headers.

Offline Charlie Miller

  • Trade Count: (1)
  • Needs to get out more...
  • *****
  • Posts: 2169
  • Gender: Male
  • Come On, Get Happy
Re: Homegrown WAVE header repair utility
« Reply #42 on: June 26, 2008, 11:55:20 PM »
got the program to work but still can't fix the files.

Audio Engineer & Archivist for Steve Kimock Productions

Schoeps CMC6/MK4, AKG 460/CK61, AKG C34
Sound Devices 744T
Dante Multitrack Rig

Offline bonzo71

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 34
Re: Homegrown WAVE header repair utility
« Reply #43 on: July 13, 2008, 02:42:34 AM »
This program just totally saved my butt and a recording I made tonight.   I can't tell you how greatful I am.  THANKS!!

Offline libfab

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 72
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #44 on: July 18, 2008, 08:51:55 AM »
Hi,

as pigiron seems to have disappeared from TS threads (which I very much regret), and after a couple of unanswered emails, I think that I'll include the modded fixwav in the DVD-Audio tools package in days to come (check out on http://dvd-audio.sourceforge.net)

Both linux and windows 32 executables will be made available.

Fab Nicol

Offline justink

  • Trade Count: (4)
  • Taperssection All-Star
  • ****
  • Posts: 1973
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #45 on: August 17, 2008, 10:21:03 PM »
got a problem w/ my second 24/96 file from DMB last night... how do i use the mac version?

the tape smokes, and i'd hate to lose it.

-j
Mics:
DPA 4023 (Cardioid)
DPA 4028 (Subcardioid)
DPA 4018V (Supercardioid)
Earthworks TC25 (Omni) 

Pres and A/D's:
Grace Design Lunatec V3 (Oade ACM)
Edirol UA-5 (bm2p+ Mod)

Recorders:
Sound Devices MixPre10 II
Edirol R-44 (Oade CM)
Sony PCM‑M10

Offline thirtyfour

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 6
  • Gender: Male
    • spfc.org
Re: Homegrown WAVE header repair utility
« Reply #46 on: August 23, 2008, 03:59:37 AM »
Just found this thread on a search & tried running it on a file I recorded last year w/ an R-09 that somehow powered itself down while taping (I -swear- it was on HOLD -_-;)...  When I copied it to my machine, it "looked" ok ("file" even showed the right settings), but the wav just wouldn't play in ANYthing.

The Mac version came up with REALLY bizarre numbers, and actually ended up setting the header to those values, despite me entering in the correct ones (512 channels at 1152122880 Hz???), but the linux version worked like a charm, recognized the correct settings right away, added TWO BYTES to the total file size, and now it's open in audacity, looking great!

Kudos to you, pigiron.


@justink: to use the Mac version, open a Terminal window, & just type "./fixwav file.wav" (adjusting for path if necessary).  The file must end in .wav (lowercase), so you might have to rename it if it's all caps.

Offline libfab

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 72
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #47 on: August 23, 2008, 06:02:43 AM »
Hi,
Which Linux version did you try? The one I posted in this thread above, or a build from pigiron's original code (as for the Mac version)?
Fab

Offline JD

  • Trade Count: (9)
  • Taperssection All-Star
  • ****
  • Posts: 1643
Re: Homegrown WAVE header repair utility
« Reply #48 on: September 07, 2008, 05:36:39 PM »
This utility just saved another recording....Thank you, Thank you, Thank You! ;D
Mics: DPA 4022, 4060; Nevaton MC51, MCE400; Gefell sms2000, m20, m21, m27
Pres: DPA MMA6000; Grace V2; Portico 5012; Sonosax SX-M2
Recorders: Edirol R09hr, Sound Devices 722

Offline manitouman

  • Trade Count: (36)
  • Needs to get out more...
  • *****
  • Posts: 2018
  • Gender: Female
  • Los Bulls!!!
Re: Homegrown WAVE header repair utility
« Reply #49 on: September 10, 2008, 08:07:46 PM »
Trying to fix a Foo file but this is what I get...


D:\My Recordings\Foo Fighters RR N2\Fixed 0035 file>fixwav file0035.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020:  00 00 00 00 00 00 00 00 00 00 00 00             ............

Exit the program now? [y/n] n
The total file size is 1999952896 bytes
Chunk Size of 0 at offset 4 is incorrect... repairing
Chunk Format at offset 8 is incorrect... repairing
Subchunk1 ID at offset 12 is incorrect... repairing
Subchunk1 Size at offset 16 is incorrect... repairing
Subchunk1 Format at offset 20 is incorrect... repairing
Is the file recorded in 0 channels?  [y/n] n
Enter number of channels... 1=Mono, 2=Stereo, etc: 2
Is the number of samples per second = 0?  [y/n] n
Enter number of samples per second: 96000
Is the number of bits per sample = 0?  [y/n] n
Enter number of bits per sample: 24
Subchunk1 Format at offset 24 is incorrect... repairing
Subchunk1 Bytes Per Sample at offset 32 is incorrect... repairing
Subchunk2 ID at offset 36 is incorrect... repairing
Subchunk2 Size at offset 40 is incorrect... repairing
Found incorrect number of audio samples. This means that either
   the new WAVE header data is incorrect, or the audio samples
   in the existing file were clobbered. Do you wish to add silent
   audio samples to the end of the file?
   WARNING: this will modify the existing file. [y/n]

Then I press to continue it says the header needs repair, I click yes and the window disappears. I go to play the selection and it's nothing but static. Am I doing something wrong? I've done just like suggested: create text file, change to .bat file, make sure fixwave + corrupt file + .bat file in same folder and double click bat file. I've ran through a few times and the same result. Recording is in 24/96.

Thanks!
Mics: AKG CK31, CK32>LM 3> MPA III


Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #50 on: September 10, 2008, 08:27:44 PM »
Run it again so we can see what the RIFF header looks like now.

If you are getting static, then the framing is off. You might have to import is as a raw file into an audio editor.

Gordon




« Last Edit: September 10, 2008, 08:34:42 PM by live2496 »
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline manitouman

  • Trade Count: (36)
  • Needs to get out more...
  • *****
  • Posts: 2018
  • Gender: Female
  • Los Bulls!!!
Re: Homegrown WAVE header repair utility
« Reply #51 on: September 10, 2008, 09:06:40 PM »
Here's what I got...


D:\My Recordings\Foo Fighters RR N2\Fixed 0035 file>fixwav file0035.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  52 49 46 46 FC DB 34 77 57 41 56 45 66 6D 74 20 RIFF..4wWAVEfmt
00000010:  10 00 00 00 01 00 02 00 00 77 01 00 00 CA 08 00 .........w......
00000020:  06 00 18 00 64 61 74 61 D8 DB 34 77             ....data..4w

Exit the program now? [y/n]
Mics: AKG CK31, CK32>LM 3> MPA III


Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #52 on: September 10, 2008, 09:38:54 PM »
Yes, it looks like the utility fixed the header.

Do you have access to Samplitude? If so, the file can be imported with different starting byte offsets to the data.
If that is out of the question PM me.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline manitouman

  • Trade Count: (36)
  • Needs to get out more...
  • *****
  • Posts: 2018
  • Gender: Female
  • Los Bulls!!!
Re: Homegrown WAVE header repair utility
« Reply #53 on: September 10, 2008, 09:47:38 PM »
PM sent...
Mics: AKG CK31, CK32>LM 3> MPA III


Offline Javier Cinakowski

  • !! Downhill From Here !!
  • Trade Count: (11)
  • Needs to get out more...
  • *****
  • Posts: 4325
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #54 on: September 19, 2008, 05:12:33 PM »
Hell yeah!  This program saved set two my TLG from wed....  CEP was saving my file and my computer overheated and shutdown. 
Neumann KM185mp OR DPA ST2015-> Grace Design Lunatec V2-> Tascam DR-100mkIII

Offline flipzoso

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 258
    • The Marble Shrine
Re: Homegrown WAVE header repair utility
« Reply #55 on: October 09, 2008, 09:18:26 PM »
This program saved my file! Thank you very much.

Offline hawghunter

  • Trade Count: (4)
  • Taperssection Member
  • ***
  • Posts: 384
  • Gender: Male
  • Planet of Sound
Re: Homegrown WAVE header repair utility
« Reply #56 on: November 03, 2008, 09:11:39 PM »
Here's what I got...


D:\My Recordings\Foo Fighters RR N2\Fixed 0035 file>fixwav file0035.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  52 49 46 46 FC DB 34 77 57 41 56 45 66 6D 74 20 RIFF..4wWAVEfmt
00000010:  10 00 00 00 01 00 02 00 00 77 01 00 00 CA 08 00 .........w......
00000020:  06 00 18 00 64 61 74 61 D8 DB 34 77             ....data..4w

Exit the program now? [y/n]

Ok I got it do something similar to this. I exit program, the file only changed to 2.70 KB.
I even opened as a raw file in audition. Nothing there, so anything else to try? I think I'm screwed.
ISO: NIRVANA :), 8/15/91 - The Roxy

930's > MMe

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #57 on: November 03, 2008, 10:06:39 PM »
Need more info...

So was this recorded on a microtracker? If so do you have the original file on the media?
Can you copy the file from the media to windows? If so what size is it after you copy it?

What we need to determine is whether or not all of the data was copied from the microtracker successfully. If not you might need to run some data recovery software.

Sometimes it's not just a matter of fixing up the tags in the header. Sometimes the data needs recovering.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline hawghunter

  • Trade Count: (4)
  • Taperssection Member
  • ***
  • Posts: 384
  • Gender: Male
  • Planet of Sound
Re: Homegrown WAVE header repair utility
« Reply #58 on: November 03, 2008, 10:29:58 PM »
yes, MT was used.
no, but may be able to recover.
yes transferred to windows, 0 b, but now it's 2.7KB.

I was thinking a recovery from the CF card would be nessary. It was file 82, and I still 83 on the card so maybe able to recover. just need to find a program maybe.

Thanks for the reply !
ISO: NIRVANA :), 8/15/91 - The Roxy

930's > MMe

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #59 on: November 04, 2008, 07:11:41 PM »
Since you can only read 2.7kb it seems that there are lost clusters on the media. In other words, the data is likely there, but there is no information in the file allocation table telling which clusters are in use by that file or files.

To correct the file allocation table, you might try the chkdsk utility.

Start->Run. In the window enter "cmd" and press enter.

type "chkdsk /f d:"

...where d: is the drive letter of the mounted CF card.

The /f switch tells chkdsk to fix errors.

Once the data is relinked, you should be able to copy the file (in it's entirety) to your hard disk.
After that, you may need to run the wave header repair utility to correct the header.

More info on chkdsk is here: http://en.wikipedia.org/wiki/Disk_checker
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline scottE

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 25
Re: Homegrown WAVE header repair utility
« Reply #60 on: July 30, 2009, 05:13:07 PM »
Many thanks for this tool !

It fixed the file that was unplayable after the batteries on the R-09 ran empty halfway a  concert!
SP-BMC-12
SP-SPSB-6

PCM-A10
Edirol R-09HR

Iphone + SC6-L+OKM

Offline fmaderjr

  • Trade Count: (16)
  • Taperssection All-Star
  • ****
  • Posts: 1966
Re: Homegrown WAVE header repair utility
« Reply #61 on: August 27, 2009, 05:32:30 PM »
Many thanks for this tool !
It fixed the file that was unplayable after the batteries on the R-09 ran empty halfway a  concert!

For the R-09 you should be able to fix this kind of problem much easier than this. Just use the repair tool on p. 70 of the manual. The R-09HR has this function also. Just a couple of clicks and you'r done. Worked for me when I dropped my R-09 at the end of a set.
AT853's (all caps)/CM-300 Franken Naks (CP-1,2,3)/JBMod Nak 700's (CP-701,702) > Tascam DR-680
Or Sonic Studios DSM-6 > M10

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #62 on: August 28, 2009, 03:17:39 PM »
Many thanks for this tool !
It fixed the file that was unplayable after the batteries on the R-09 ran empty halfway a  concert!

For the R-09 you should be able to fix this kind of problem much easier than this. Just use the repair tool on p. 70 of the manual. The R-09HR has this function also. Just a couple of clicks and you'r done. Worked for me when I dropped my R-09 at the end of a set.

Rule #0 of successful data recovery is to preserve the original media before attempting any repair.

Offline optimisticpessimist

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 27
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #63 on: September 07, 2009, 02:31:27 PM »
I've used this tool successfully several times, but what are my options when I have a file that won't play or open in any software that I've tried (WMP, Musicmatch Jukebox, Foobar, Wavelab, CD Wave Editor) and this tool returns back an error message reading "Failed to read header from input file."

EDIT:  Resolved after looking at a couple of other threads related to corrupt files.  Changed the file extension to .raw and opened it with Wavelab.  I'm just not sure why the file had no header at all.  It was recorded with an R-09, just like the other files I've had to recover.
« Last Edit: September 07, 2009, 06:42:46 PM by optimisticpessimist »

Offline Brian Skalinder

  • Complaint Dept.
  • Trade Count: (28)
  • Needs to get out more...
  • *****
  • Posts: 18868
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #64 on: September 07, 2009, 02:35:12 PM »
what are my options

There might be some other suggestions in the sticky at the top of the Computer-Related Help forum under the Data Recovery and/or Corrupt or 0 byte File sections.
Milab VM-44 Links > Fostex FR-2LE or
Naiant IPA (tinybox format) >
Roland R-05

Offline scarletfire1

  • Trade Count: (4)
  • Taperssection Regular
  • **
  • Posts: 84
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #65 on: March 17, 2010, 11:37:15 PM »
I just wanted to say thanks for this. It saved a second set for me.
-Mike
Neumann KM 184s / AKG SE 300 B ck91, ck93 / ADK A51/ SP C4  > R-4 Busman Mod -or- UA-5 (Oade T+, BM2p+) > H120
CA-11 cards, omnis > CA Ugly > H-120

Offline scb

  • Eli Manning should die of gonorrhea and rot in hell. Would you like a cookie, son?
  • Trade Count: (11)
  • Needs to get out more...
  • *****
  • Posts: 8676
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #66 on: March 18, 2010, 07:28:36 AM »
doesn't shntool also fix headers?


Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #67 on: March 18, 2010, 01:29:36 PM »
doesn't shntool also fix headers?

Please feel free to start a new thread about other tools that can repair headers ;)


Offline Massive Dynamic

  • Trade Count: (21)
  • Taperssection All-Star
  • ****
  • Posts: 1421
  • Gender: Male
  • 20 years of the best in apocalyptic gothic metal
Re: Homegrown WAVE header repair utility
« Reply #68 on: March 27, 2010, 04:06:48 AM »
doesn't shntool also fix headers?

Please feel free to start a new thread about other tools that can repair headers ;)

Using shntool, I get this info on a 1.31GB file from a 661 that didn't shut down properly.

file name:                    /Users/xxxxx/Desktop/wd004.wav
handled by:                   wav format module
length:                       0:00.000
WAVE format:                  0x0001 (Microsoft PCM)
channels:                     2
bits/sample:                  24
samples/sec:                  44100
average bytes/sec:            264600
rate (calculated):            264600
block align:                  6
header size:                  910 bytes
data size:                    0 bytes
chunk size:                   1401743216 bytes
total size (chunk size + 8 ):  1401743224 bytes
actual file size:             1401743224
file is compressed:           no
compression ratio:            1.0000
CD-quality properties:
  CD quality:                 no
  cut on sector boundary:     n/a
  sector misalignment:        n/a
  long enough to be burned:   n/a
WAVE properties:
  non-canonical header:       yes
  extra RIFF chunks:          yes (1401742314 bytes)
Possible problems:
  file contains ID3v2 tag:    no
  data chunk block-aligned:   yes
  inconsistent header:        no
  file probably truncated:    no
  junk appended to file:      no
  odd data size has pad byte: n/a

Is pigiron's utility going to be of any use on this file? Haven't had any luck trying all the various posted solutions on my G5 Mac. TIA

EDIT: I was able to open as raw in Audacity, and there is music under a thick layer of hiss. Is there a way to know how much offset to use?
« Last Edit: March 27, 2010, 11:25:16 AM by CliveStaples »
Naiant X-X > SP-SPSB-1 > M10
Superlux S502 > Denecke PS-2 > Hosa MIT-435 > M10

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #69 on: March 27, 2010, 01:43:59 PM »
PI's utility does simple header repair that is basically the same as reading the file as raw..

There is no trivial way to know how much offset to use.  When you get it right, your music should appear with normal waveforms and everything should sound fine.

Your description of music behind thick hiss is unexpected.  If you're stuck, you could start a new thread and post a sample from the start of the file.

Offline tarunsingh81

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 1
Re: Homegrown WAVE header repair utility
« Reply #70 on: May 19, 2010, 11:53:36 AM »
WOW MAN ... WOW ... this utility saved a critical wave for me ... can never thank you enough ... keep up the good work ...

AWESOME ...

Offline martygene

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 19
Re: Homegrown WAVE header repair utility
« Reply #71 on: May 19, 2010, 04:25:13 PM »
i've had luck with using CDWave to open problem wav files and then saving them from that program and then they open fine in soundforge or audacity or media player.

Offline Chilly Brioschi

  • The fool doth think he is wise, but the wise man knows himself to be a fool.
  • Trade Count: (0)
  • Needs to get out more...
  • *****
  • Posts: 15432
  • Gender: Male
  • Waiting for the next cladogenetic event, or Godot
    • Oceana North America
Re: Homegrown WAVE header repair utility
« Reply #72 on: May 20, 2010, 06:07:34 AM »
Don't forget PhotoRec for lost file recovery.
It's easy, it works, and it's free.
http://www.cgsecurity.org/wiki/PhotoRec
http://www.cgsecurity.org/wiki/PhotoRec_Data_Carving
"Peace is for everyone"
        - Norah Jones

"Music is the drug that won't kill you"
         - Fran Lebowitz

Offline MAGZine

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 1
Re: Homegrown WAVE header repair utility
« Reply #73 on: July 18, 2010, 11:48:46 PM »
I saw that a few folks are getting corrupted headers in their wave files and having a struggle with the existing utilities trying to fix the problem. So I cobbled together a wave header repair utility this last weekend that may help... 'cause I hate to see good music go to waste ;D

But it's a butt ugly command line program... if you want pretty, try next door.

Since it's mostly "universal" C coding, I was able to get it to compile on both Linux and Winders... don't own a Mac, sorry.

Beat the hell out of it and it seems to be working, but I'd be surprised if there wasn't some bugs still down in the cracks... so for sure, only use it on a backup copy.

Here's a sample output where it successfully repaired a wave file that had nothing but zeroes in the entire header and a partially truncated audio data sample (about as bad as it get's)...

# ./fixwav junk.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020:  00 00 00 00 00 00 00 00 00 00 00 00             ............

Exit the program now? [y/n] n
The total file size is 32617577 bytes
Chunk Size of 0 at offset 4 is incorrect... repairing
Chunk Format at offset 8 is incorrect... repairing
Subchunk1 ID at offset 12 is incorrect... repairing
Subchunk1 Size at offset 16 is incorrect... repairing
Subchunk1 Format at offset 20 is incorrect... repairing
Is the file recorded in 0 channels?  [y/n] n
Enter number of channels... 1=Mono, 2=Stereo, etc: 2
Is the number of samples per second = 0?  [y/n] n
Enter number of samples per second: 44100
Is the number of bits per sample = 0?  [y/n] n
Enter number of bits per sample: 16
Subchunk1 Format at offset 24 is incorrect... repairing
Subchunk1 Bytes Per Sample at offset 32 is incorrect... repairing
Subchunk2 ID at offset 36 is incorrect... repairing
Subchunk2 Size at offset 40 is incorrect... repairing
Found incorrect number of audio samples. This means that either
   the new WAVE header data is incorrect, or the audio samples
   in the existing file were clobbered. Do you wish to add silent
   audio samples to the end of the file?
   WARNING: this will modify the existing file. [y/n] y

Header repair is required!
   Overwrite the existing file? [y/n] y

File repair successful

As you see, you need to know a little about the file... the number of bits, the samples per second, and the number of mics... while that might stump a n00b, I don't think you'll have any problem.

One caveat... it assumes you're feeding it a "normal" wave file... i.e. only a single data "Subchunk"... if it ain't such an animal... or if it simply has junk data appended to it (there's some dumb ass programs that add ID3 tags like that), it's gonna hose up.

anyway, they're attached below... enjoy... and remember... you got it free  ;D

God I love you.

Thanks. I definitely owe you a beer.

Offline SmokinJoe

  • Trade Count: (63)
  • Needs to get out more...
  • *****
  • Posts: 4210
  • Gender: Male
  • "75 and sunny"... life is so much simpler.
    • uploads to archive.org
Re: Homegrown WAVE header repair utility
« Reply #74 on: July 20, 2010, 07:49:15 PM »
I wish I'd seen this a while ago.   I just did this the hard way.  Wheeler's MT locked up and I basically wrote custom code to do the same.  I remember that there was 256 bytes of nothing, then the data started.  I created a valid 24/48 wave file of an appropriate size, copied the 44 byte header from that, and they copied the rest of Wheeler's data, starting after discarding the first 256 bytes.

I gotta bookmark this thread!
Mics: Schoeps MK4 & CMC5's / Gefell M200's & M210's / ADK-TL / DPA4061's
Pres: V3 / ST9100
Decks: Oade Concert Mod R4Pro / R09 / R05
Photo: Nikon D700's, 2.8 Zooms, and Zeiss primes
Playback: Raspberry Pi > Modi2 Uber > Magni2 > HD650

dorrcoq

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #75 on: August 10, 2010, 12:24:38 AM »
Well...I followed Jason's directions from page 2, and got as far as "ERROR:  Failed to read header from input file"

Now what? 

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #76 on: September 02, 2010, 11:57:56 AM »
Do you still need help with this?
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline laptaper

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 61
Re: Homegrown WAVE header repair utility
« Reply #77 on: October 20, 2010, 05:50:45 PM »
I haven't read through the entire thread to see if anyone's mentioned this, but since I've been struggling with this for a while with my 24 bit recordings I thought I'd say something (shy and retiring as I am  ::) ).  Also, I should preface this by saying that I tried fixwav.exe, but when I used it (modeling my answers to the prompts based on the first post) my rewritten file played back static.  Anyhow, this may prove simpler for some people.

1. Open the file with the corrupted header in Audacity. 
2. Trim off the first few samples (probably the first two will do, but I deleted the first seven or so to be safe).
3. Zoom back out to full range and use CTRL+A to select all of the remaining .wav - THIS IS KEY.
4. In the main menu select File > Export Selection... (NOT File > Export...).
5. In the dialogue box choose the format you want to save the file in.  If you're saving to 24 bit you'll have to select "Other uncompressed files" from the "Save as type:" dropdown box, click the "Options" button and select the format we want in the box that pops up.  For Windows users saving to 24 bit, e.g., you'd want to choose "Header: WAV (Microsoft)" and "Encoding: Signed 24 bit PCM".
6. Click out of the Options box if you're in there, then click Save in the Export File box.


The resulting file will load into CD Wave and split with no problems.  It will also compress to FLAC in FLAC Frontend, likewise with no error messages.

The key here is to export the WAV as a selection (even if you're selecting the entire file, minus the deleted samples at the beginning), rather than just to export the WAV without selecting anything.  My theory is that when exporting as a selection Audacity writes a brand new, canonical header, while when exporting without selecting Audacity simply uses the old, corrupted header you're trying to correct in the first place.  Also, deleting those first samples in the beginning IS necessary - when I tried selecting all and exporting without deleting the first samples, I got error messages both in CD Wave and Flac Frontend.  In any case, all I know is it works.  ;D
« Last Edit: October 20, 2010, 06:00:25 PM by laptaper »

Offline anonymous_user

  • Trade Count: (5)
  • Taperssection Regular
  • **
  • Posts: 58
Re: Homegrown WAVE header repair utility
« Reply #78 on: October 23, 2010, 12:26:35 PM »
This wav repair utility does work with 24-bit files. I don't think that's what you were saying, but I thought I'd clarify that anyway. Good that you've found another solution that works for you though. Unless there's a chance you were inputting one of the options/answers incorrectly, then it probably just wasn't working right with your file. One or two people with full-sized files mentioned a similar problem, and someone said that it always still repairs the header anyway, just that if the offset is off then you might still get only static. I think this tool still works on the vast majority of corrupt files and I'd recommend it to anyone in need. Good work for posting another method for people to try when the utility won't fix it by itself.


dorrcoq

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #79 on: October 28, 2010, 01:37:49 AM »
Do you still need help with this?

Actually I had given up on it ;D  Maybe I'll give lapaper's method a try.

Offline Barry Shoop

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 15
Re: Homegrown WAVE header repair utility
« Reply #80 on: February 13, 2011, 04:28:52 AM »
THANK YOU PIGIRON!!!! YOU SAVED MY BACON!!!!! Your utilty is awesomely easy to use and worked like a charm!  Saved my butt when the batteries died mid-concert on my Zoom H4 leaving me with no time codes and no easy fix. THANKS MAN!

Offline 612

  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 8183
  • Minneapolis, MN
Re: Homegrown WAVE header repair utility
« Reply #81 on: February 22, 2011, 10:00:43 PM »
anyone have any luck running this with Vista?  Maybe I am just a complete moron?

The dos window flashes and then disappears.  :-[
Empty's Tapes & My recordings on the LMA

"Keep active, stay positive..." - a wise man

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #82 on: February 23, 2011, 09:42:10 AM »
anyone have any luck running this with Vista?  Maybe I am just a complete moron?

The dos window flashes and then disappears.  :-[

Maybe you can use it to recover XP and dump vista :P

I recently booted to dos from a flash drive in order to apply some bios updates to a SATA controller card.  Big fun.

You should be able to run this utility in a virtual environment, or in an emulator.  It should run under WINE.

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #83 on: March 16, 2011, 09:47:12 PM »
anyone have any luck running this with Vista?  Maybe I am just a complete moron?

The dos window flashes and then disappears.  :-[

doesn't sound like you are running this utility the proper way. You need to run this from a Command prompt.

Start Button / Run  (or in Vista/7, there actually isn't a Run option, it's just that white box you can type in)
and type in "CMD" which will get you to a command prompt.

From there you will have to navigate to the folder that contains this utility AND your wav file needing to be repaired.
Now brush up on your DOS skills and report back

 ;D


edit to include a screenshot
« Last Edit: March 16, 2011, 10:07:59 PM by EarlyMorningRain »

Offline 612

  • Trade Count: (3)
  • Needs to get out more...
  • *****
  • Posts: 8183
  • Minneapolis, MN
Re: Homegrown WAVE header repair utility
« Reply #84 on: March 27, 2011, 04:28:17 PM »
EarlyMorningRain just saved the day. Again.
Empty's Tapes & My recordings on the LMA

"Keep active, stay positive..." - a wise man

Offline zebweber

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 3
Re: Homegrown WAVE header repair utility
« Reply #85 on: June 01, 2011, 01:45:39 AM »
I haven't read through the entire thread to see if anyone's mentioned this, but since I've been struggling with this for a while with my 24 bit recordings I thought I'd say something (shy and retiring as I am  ::) ).  Also, I should preface this by saying that I tried fixwav.exe, but when I used it (modeling my answers to the prompts based on the first post) my rewritten file played back static.  Anyhow, this may prove simpler for some people.

1. Open the file with the corrupted header in Audacity. 
2. Trim off the first few samples (probably the first two will do, but I deleted the first seven or so to be safe).
3. Zoom back out to full range and use CTRL+A to select all of the remaining .wav - THIS IS KEY.
4. In the main menu select File > Export Selection... (NOT File > Export...).
5. In the dialogue box choose the format you want to save the file in.  If you're saving to 24 bit you'll have to select "Other uncompressed files" from the "Save as type:" dropdown box, click the "Options" button and select the format we want in the box that pops up.  For Windows users saving to 24 bit, e.g., you'd want to choose "Header: WAV (Microsoft)" and "Encoding: Signed 24 bit PCM".
6. Click out of the Options box if you're in there, then click Save in the Export File box.


The resulting file will load into CD Wave and split with no problems.  It will also compress to FLAC in FLAC Frontend, likewise with no error messages.

The key here is to export the WAV as a selection (even if you're selecting the entire file, minus the deleted samples at the beginning), rather than just to export the WAV without selecting anything.  My theory is that when exporting as a selection Audacity writes a brand new, canonical header, while when exporting without selecting Audacity simply uses the old, corrupted header you're trying to correct in the first place.  Also, deleting those first samples in the beginning IS necessary - when I tried selecting all and exporting without deleting the first samples, I got error messages both in CD Wave and Flac Frontend.  In any case, all I know is it works.  ;D

I tried both the fixwav utility and the laptaper method, and have had no luck so far recovering the actual music from my file - I can manage to get 93 minutes of thick static, but music would be better ;)

I started with a recording I made (with a MicroTrack II) that had files 0255 and 0257, but no file 0256...after using the SanDisk RescuePro software, I was able to recover what I think is the missing file 0256 from my CF card - oddly enough, the file was 1.5GB but only 25 seconds long! After running it through fixwave, it somewhat corrected the file, so it's now 93 minutes, but it's static...

As for the laptaper Audacity method, I can't get that to work as he described - I can export the selection, but where does it go? Do I need to import it somewhere, like maybe CD Wave Editor?

I'm thinking I only need to correct the offset to expose the music, but I have no idea how to do that - I'm amazed I could manage to get the file this close to being usable again :) It's kind of important for me to salvage this file, since it was the second set of my stage debut as a drummer/percussionist - I wanna be able to hear what I sounded like in the room!

I know I'm close, hopefully 'real' close - any help would be greatly appreciated! :)

Thanks - Zeb

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #86 on: June 01, 2011, 11:57:25 AM »
Somewhere Brian posted a sticky regarding the offset. He used Audacity which is a free program.

I started doing this with samplitude. Perhaps you could try the 30 day demo of that. I believe that i posted details of that some time ago.

PM me if you want some help with this.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline Brian Skalinder

  • Complaint Dept.
  • Trade Count: (28)
  • Needs to get out more...
  • *****
  • Posts: 18868
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #87 on: June 01, 2011, 12:29:07 PM »
As for the laptaper Audacity method, I can't get that to work as he described - I can export the selection, but where does it go?

The selection exported by Audacity should reside in whatever directory/file you specify.  I can't recall if you specify the location at the time of export, or if you specify the location in the preferences.  I would guess the latter, since if it were the former you'd likely know where it went!

I know Adobe Audition supports opening files as raw data and specifying offsets.  Not sure about other editors.
Milab VM-44 Links > Fostex FR-2LE or
Naiant IPA (tinybox format) >
Roland R-05

Offline zebweber

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 3
Re: Homegrown WAVE header repair utility
« Reply #88 on: June 01, 2011, 01:40:19 PM »
Somewhere Brian posted a sticky regarding the offset. He used Audacity which is a free program.

I started doing this with samplitude. Perhaps you could try the 30 day demo of that. I believe that i posted details of that some time ago.

PM me if you want some help with this.

I'll look for the offset 'sticky' post, and I have Audacity, just not that familiar with it (but I'm learning) - thanks for pointing me in the right direction (if I get really lost, I'll PM you ;)

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #89 on: June 01, 2011, 01:54:22 PM »
Somewhere Brian posted a sticky regarding the offset. He used Audacity which is a free program.

I started doing this with samplitude. Perhaps you could try the 30 day demo of that. I believe that i posted details of that some time ago.

PM me if you want some help with this.

I'll look for the offset 'sticky' post, and I have Audacity, just not that familiar with it (but I'm learning) - thanks for pointing me in the right direction (if I get really lost, I'll PM you ;)

The critical thing is that you don't let anything write to the media.  ESPECIALLY windows.  Windows is very bad about that...  at least in linux you can mount things read-only, etc.  And with SD, you can flip the write-protect switch.

So as long as you preserve the media, you haven't lost anything.

Offline zebweber

  • Trade Count: (0)
  • Taperssection Newbie
  • *
  • Posts: 3
Re: Homegrown WAVE header repair utility
« Reply #90 on: June 01, 2011, 07:52:12 PM »
I have the 4GB CF card sitting here with the original corrupted files on it, wishing it could be rid of this troublesome file and be recorded on again...

"So as long as you preserve the media, you haven't lost anything."

Yes, but, if all I can get is 93 minutes of annoying static, I haven't gained anything either...

This has been a crash course for me on wave files and their quirks - I really think I'm close to being able to completely salvage this file...can I be, please??

Offline Emile

  • Trade Count: (1)
  • Taperssection Regular
  • **
  • Posts: 116
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #91 on: June 10, 2011, 06:03:19 AM »
Recorded a show on my Zoom H2 the other day and I dropped the zoom while it was saving the recording. The result was a wav file that wouldn't play, but definitely had data in it.

Wanted to share that this fixed the problem and that I was able to recover the file. Thank you so much

Emileh
« Last Edit: June 13, 2011, 09:05:20 AM by Emile »
SP-CMC-2 (AT831s) > SP-SPSB-1 > SP-XLRM-MINI-2 > Edirol UA-5 bm2p+ (Toslink out) > (Optical in) iRiver iHP-120 (CF Mod 16 GB / Rockbox 3.13)
Recordings on LMA: http://archive.org/bookmarks/emileh

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #92 on: June 21, 2011, 06:53:00 AM »
I'm revisiting this thread again, in the hopes that someone might be able to help me resurrect a 0 byte file. I spent a good deal of time with it last year, but things got busy, and haven't settled down much since.

This was a killer set by Portland's own Jackie-O Motherf*cker, from the 2010 PDX Pop Now! Festival; maybe it still is, I don't know.
I had an Edirol R-04 running for this set, and we hadn't got the cables together yet for a SBD feed, so only two channels were used, for two mics at center stage lip.
I was stage manager for the event, and was handling the changeover after their set, instead of running back to the oar to shut off the Edirol - I figured I would get to that while the next band was running through a quick soundcheck.
Unfortunately, when the band that went on next plugged in, they immediately blew out a power bank that included the strip the Edirol - still recording -  was plugged into.
That left me with a "0 byte file".

I pored through these threads, and any place on the internet that related to this issue, but this looks like the most solid thread anywhere to be found on the subject - the only problem is, I can't get my head around what is being described here.


If anyone wants to have a look at this mess, I've uploaded a .zip file to my iDisk server:
https://public.me.com/j.free.pdx
(There is a bunch of other stuff there, mostly a bunch of Feelies shows - feel free to download whatever looks good, but let me know if you do, so I can keep track of the mileage on that server, okay?)

The file name I'm trying to repair is in this:
jomf_ppn.zip

Inside are two copies of the file that was damaged (the original file is still on the Edirol drive) - they both suggest that there might be 44MB of data, which I would assume is the header.
The trouble is, I can't actually look at the contents of the file itself, either on a Mac (using Audacity) or a PC (using CD Wav or SoundForge).

Trying my best to follow pigiron's instructions for the PC (running XP), I never even got to the part where the program would ask questions, so i could plug in answers - the window just blinked and disappeared, every time, just as Nick Graham had mentioned earlier. I did follow pigiron's instructions after that, as best as I can understand them, but I don't seem to be getting it.
[THIS: click "Start" then click "Run" and then enter "cmd.exe", it will open up a DOS box... then "cd" to the directory that contains "fixwav" and enter "fixwav your_file_path"... where "your_file_path" is the BACKUP copy of the audio file.  Example:  fixwav C:\foo\bad.wav]

I also tried Jason Sobel's advice (creating the .bat file, etc), but then I get an error/prompt that tells me "fixwave is not a valid command".

I tried Wayne's Mac version (On a G5/OSX), but that opens up a Flash decompiler.

I don't usually feel too stupid with computers, but this is tough for me to understand, for some reason.

Any helpful advice is welcome, and if anyone wants to look at the file, feel free.

Thanks in advance to anyone who can help me see the light here.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #93 on: June 21, 2011, 10:11:29 AM »
The file on see on the server is only 1K in length.

It sounds like you have not yet run pigiron's utility.  It runs under dos, in a command window.  So clicking on it, etc, will not work.

Approximately how many minutes long is the audio you hope to recover?  What was the original sample rate and bit depth?  How large is the file on disk?

The header portion of a wave file is only 44 bytes in length.

Pigiron's utility works in cases where the file itself is complete but the header is not correct.  It will not work in cases where the file on disk is smaller than it should be.  That will require a different approach.

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #94 on: June 21, 2011, 12:55:43 PM »
It sounds then like you have two problems. The first of which is to run a file recovery tool to get back all of the sectors associated with your recording. Does not Edirol have a utility for that? Or am I thinking of something else.

Once the data is recovered you can look into fixing up the header which Pigiron's utility deals with.

In windows I would use chkdsk with the /f option, but you will need to find something equivalent. Hopefully the media is not overwritten yet?
« Last Edit: June 21, 2011, 12:58:05 PM by live2496 »
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #95 on: June 21, 2011, 01:36:04 PM »
In windows I would use chkdsk with the /f option, but you will need to find something equivalent. Hopefully the media is not overwritten yet?

Rule 1 of data recovery is that you don't alter the original.  You work on a copy.  What you suggest alters the original.

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #96 on: June 21, 2011, 02:22:02 PM »
It corrects the file allocation table. He can't get his data without that. Once that table is reconstructed I would copy the file to the hard drive and work on that.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #97 on: June 21, 2011, 03:20:51 PM »
It corrects the file allocation table. He can't get his data without that. Once that table is reconstructed I would copy the file to the hard drive and work on that.

Absolutely false.  You do not need to modify the file allocation table to recover the file.

The windows tools are far too clumsy and prone to failure to risk using them on the original source.  But, really, the industry standard is that no tool should be trusted to modify the compromised original when you don't have a backup.

He may get lucky and chkdsk may work.  But he really wants to recover the show, so I don't see that it is worth the risk.  I am conservative in these situations, and never, ever want to explain to someone how their data was lost when a bit more care could have prevented the loss.

Also, situations like this are why you really want to never delete files from your recorder.  It is much better to let it fill and then format it.  The benefit is the blocks of the WAV files will be sequential.  That makes brute force recovery methods fairly easy.

Photorec is probably the best way to recover this right now.  It does not write to the disk, so it is far safer.  Since your disk isn't experiencing a hardware failure, it is okay to use it directly with the disk.  If your disk's hardware was compromised, I'd suggest making a copy of it and working on that.  There are threads here on using photorec.  I'd suggest de-selecting all of the file types except the type you are recovering.  That will prevent false recoveries.  The downside is you will lose your filenames and recover old audio.

The other alternative is to image copy the drive under linux and repair the copy.

Once you have the file, you will still need to repair the header (or even add a header).

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #98 on: June 21, 2011, 03:22:44 PM »
Thanks to those of you who have already taken some time to look at this, and offer your suggestions.

The original "file", whatever it consists of, is still on the Edirol drive. It was/is a 24-bit, 48kHz 2-channel recording. I copied it to a PC, and also to a Mac, to try a few options I had seen discussed in this thread.

It's correct that I can't run pigiron's utility - I was attempting to run it from a command window, but that did not work, in this case - that's why I also tried the alterante method which involved creating the .bat file, and clicking on that, which also was unsuccessful in this case.

It was on the Mac that the fixwave program kept opening up a flash decompiler, and for the life of me, I don't get that at all.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #99 on: June 21, 2011, 03:31:03 PM »
Again, how large is the file and how long did you expect the recording to be?

Did you check the download zip size - it only reported 1K?

It is critical that you *not* write or record anything to the edirol.


Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #100 on: June 21, 2011, 04:43:29 PM »
If you've got tools on the mac that can scan the disc that is preferred.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #101 on: June 21, 2011, 06:29:29 PM »
The set should have been approximately 30 minutes - 24-bit, 48kHz sample rate.
I don't know that I can not record anything else to the Edirol, we've got another 2-day Festival coming up this weekend.

Yes, the file appears to 0 bytes - 1K is probably the folder.

Again, how large is the file and how long did you expect the recording to be?

Did you check the download zip size - it only reported 1K?

It is critical that you *not* write or record anything to the edirol.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #102 on: June 22, 2011, 10:46:51 AM »
The set should have been approximately 30 minutes - 24-bit, 48kHz sample rate.
[quote/]

So at two channels, you need to recover about 518MB in order to have 30 mins.

Quote
I don't know that I can not record anything else to the Edirol, we've got another 2-day Festival coming up this weekend.

Well then... you must resolve this before you write to the drive!

You could try photorec, use chkdsk, or try one of the many linux tutorials on recovery.    The tutorials will be somewhat complicated.  You might just want to try the chkdsk and see if that recovers the 500MB file (and then we can worry about fixing the header).  If not, then it is on to photorec.  Just don't write anything to the drive.

Quote
Yes, the file appears to 0 bytes - 1K is probably the folder.

Checked it again, and your zip file only shows as 1K.  The other files in the directory show as hundreds of MB, or GB.  Though this does not matter unless you have the full 500MB in the zip.



Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #103 on: June 22, 2011, 12:47:37 PM »

The set should have been approximately 30 minutes - 24-bit, 48kHz sample rate.

Checked it again, and your zip file only shows as 1K.  The other files in the directory show as hundreds of MB, or GB.  Though this does not matter unless you have the full 500MB in the zip.

I was kinda thinking the same thing, that the file size to start with should be what he is expecting it to be. However a chkdsk /f and/or a chkdsk /r couldn't hurt any.
« Last Edit: June 22, 2011, 12:49:13 PM by EarlyMorningRain »

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #104 on: August 18, 2011, 09:50:04 PM »
I gave up on the last file rescue attempt; I appreciate the efforts some folks made to try and help out with that, but after a year and the fact that it sounded like a lost cause, I needed the machine for other projects. It just wasn't practical to tie up a machine all that time for a file that didn't seem to have much of a chance anyway, but it was a festival set, and I did have a video of the set, so that's better than nothing, I think.


Back into the present, I had an even weirder experience just last night, and this one has got me freaking out a bit. I've been recording a performer in a weekly Wednesday residency at a local venue, in the hopes of culling enough varied material that we might be able to construct a nice compilation or something along those lines. Weeks 1 & 2 went off without a hitch, and yesterday the 1st set seems to have ended up being nothing but white noise, despite the fact that I was monitoring the entire set at the time, and it seemed to be recording just fine, and reporting a correct time length, etc.

The unit being used for this series of performances is a Zoom R24, due to the fact that the line-up changes each week, and we never really know who is in the band each week until right before show time. One week had a 4-piece band, the next week no drums; last night it ended up being a stripped-down duo. I ended up only using 3 channels - 2 miked guitar amps, and a vocal line from the house PA. At the very start of my recording, there is about a minute of soundcheck for a banjo - then I paused the unit until they started playing, a few minutes later. The red record lights were on. The timer ticked away the seconds and minutes. I made minor level adjustments throughout the set, just as always, and listened through a headset; again - everything seemed normal.

This morning, I transferred a copy of the file from the 8GB SDHC card that I used for last night's sets. The second set sounds great - pretty much the kind of quality I expected, based on the previous weeks for the same series of shows. The first set, however, had a weird anamoly - the first minute of soundcheck is clear as a bell, and then the set itself is all white noise - type static, and the .wav file appears to be what a lot of digital tapers call "brickwalled". I can't think of a single reason this could have happened - the sole difference between how I recorded the 1st and 2nd sets is just the fact that I paused the unit after soundcheck, then re-engaged it for the set itself. I've done this many times in the past, and there is no reason that should have caused nearly an hour of music to turn into static, but that does seem to be the result. The "save" process at the end of set 1 appeared normal as well.

Since the media itself is independent, I can refrain from using that card - however, based on some of the discussion regarding my last situation, I'm concerned that since I wrote the 2nd set to the same card, there may be nothing I can do to try and save it; although I would certainly like to be proven wrong in this situation. I had a devil of a time trying to get my head around the rescue processes previously discussed, and now it looks like I will need to wrestle with it all again, and I could definitely use a bit of hand-holding here, if anyone feels up for it. The major difference with my last incident and this one, is that in the previous situation, the file had never been saved before the power was cut - in this case, however, the file saved normally (or so it seemed anyway). It would be a huge understatement to say that any helpful advice would be more than just a bit appreciated.

Here is a link to one of the three .wav files, copied from the SD card:
https://files.me.com/j.free.pdx/7665pi
This is the guitar track for the entire 1st set.

Here is what information I do have:

PC sees this:
3 files -
478MB each (1152kbps)
total folder size: 1.40GB

CDWave reports this:
"File is truncated"

Traders Little Helper analysis:
Length: 58:05.790
"Wave header is not canonical"
also
"Wave header is inconsistent about data size and/or file size"

The Zoom R24 reports this:
1436.6MB
58:05
24bit/48kHz
« Last Edit: August 19, 2011, 04:37:41 PM by GroundHog420 »
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #105 on: September 03, 2011, 09:29:29 PM »
Weeks 1 & 2 went off without a hitch, and yesterday the 1st set seems to have ended up being nothing but white noise, despite the fact that I was monitoring the entire set at the time, and it seemed to be recording just fine, and reporting a correct time length, etc.

I looked into your situation, and it was as I suspected.  What you are experiencing is the result of your recorder dropping data.  The question is why...   It could be due to a software bug, it could be a hardware problem.

The loss of data tends to cause data misalignment.  When you lose part of a sample, the audio becomes jumbled and subsequent audio can appear as white noise.  Sometimes you'll lose another byte or two and it will jump back into alignment.  The audio is still there, but the alignment needs to be fixed at each point where data was lost.

Any discussion of this should probably be in a new thread, since this is the wave repair utility thread ;)

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #106 on: September 12, 2011, 11:17:11 AM »
You're welcome.

Offline gratefulphish

  • Trade Count: (0)
  • Taperssection All-Star
  • ****
  • Posts: 1568
  • Gender: Male
  • Gone Tapin'
Re: Homegrown WAVE header repair utility
« Reply #107 on: September 12, 2011, 12:13:52 PM »
I have been struggling with a corrupted file for months now, but I have never given up.  I tried pigiron's utility, including trying Jason's .bat file method, but nothing worked.  I would get through the DOS commands, but it would still come back as corrupt or unreadable.  I was never able open it in Audacity, as either a regular or .raw file.  I could not even copy it off my deck, although I was able to move it into the "Recovered" folder on my 722.

So, I was re-reading this thread, and looked at the posts regarding chkdsk.  I followed the instructions, having it just run in the Recovered folder, and what do you know, it worked.  All of a sudden I could hear the file, which sounds perfect, and could now copy it off the deck.

If you are having problems with another file like this, you may want to look into trying the chkdsk /f method.  It was what finally worked for me.  Thanks to one and all.
4 channel: Neumann TLM-170R>Segue Dogstar>SD 722   2 channel: Neumann TLM-170R>Segue Dogstar>Lunatec V3>SD 722
               Linked to Lunatec V3>MT 24/96                                     (Hi-Ho Silver Interconnects)     

Other gear: AKG C451Es, Tascam DA-P1, Sony D-8

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #108 on: September 15, 2011, 04:52:54 AM »
Hmmmm..... was this intended for me? That would be odd, if not more than a wee bit snarky, so I'm hoping that I'm reading this wrong. It's not like I can just sit around and watch this thread for responses all the time.... in fact, reading your last post, it seems that you thought the discussion of my issue should end, at any rate, because you deemed it irrelevant to this thread, and no one else was commenting at all. The fact that we're on the road most of this month and the next, notwithstanding, making it less likely that I would be glued to Taperssection 24/7.....

For the record, I'm ALWAYS thankful for anyone who might take an interest in trying to help me solve a problem, if you're concerned about that - although interestingly, I've never actually received answers to the specific questions I've asked here, such as HOW to use the header repair utility; as I explained a few times, I could not get my head around that, and no one has replied with info that would help me understand it. I appreciate the fact that you took a look at my problem file, but can you at least wait until I have time to sort through these things, before I give you a response?

Ironically, by sheer dumb luck, my wife actually resurrected this file just recently, using a trick she learned from some of the developers she works with: using a binary reader, she went past the presumed header, into the data area, and randomly plucked out two pairs of zeros. That reversed the flaw in the file, turning the first two minutes of the .wav file into an overloaded signal which could almost be mistaken for white noise, and all of the audio from the set appeared, and after careful eximination, is stable. God bless taper's wives; good thing I married a fellow geek!

Of course, I STILL have no idea how to work with the wave header repair utility, although now I DO have a better understanding of what a .wav file actually looks like in a binary reader.

You're welcome.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline newplanet7

  • Hasn't heard a muddy 460/480 tape. EVER. Mike Hawk
  • Trade Count: (5)
  • Needs to get out more...
  • *****
  • Posts: 3530
  • Gender: Male
  • The Place To Be...... Akustische u. Kino-Geräte
Re: Dreaded 0 byte files
« Reply #109 on: October 09, 2011, 05:33:46 PM »
Ok fellas and ladies.
I taped Saturday and to my dismay I came home with a set that reads/transfers/plays fine
and two of the dreaded 0 byte files, FML.
I tried the tool and it says ERROR: Failed to read header from input file.
The two files show up on the card and copy over from my card reader to the pc.
COULD IT BE IT DOESNT HAVE A HEADER AT ALL?

Any help is appreciated mi amigos.

I also tried the chkdsk option.

« Last Edit: October 09, 2011, 05:49:21 PM by newplanet7 »
MILAB VM-44 Classic~> Silver T's~> Busman PMD660
News From Phish: Will tour as opening act for Widespread Panic for Summer
hahaha never happen, PHiSH is waaaaayyyy better the WSP

They both ain't got nothing on MMW... Money spent wisely if you ask me...


FYI, it is a kick ass recording of a bunch of pretend-a-hippies talking.

Offline newplanet7

  • Hasn't heard a muddy 460/480 tape. EVER. Mike Hawk
  • Trade Count: (5)
  • Needs to get out more...
  • *****
  • Posts: 3530
  • Gender: Male
  • The Place To Be...... Akustische u. Kino-Geräte
Re: Homegrown WAVE header repair utility
« Reply #110 on: October 10, 2011, 12:25:21 PM »
Tried other suggestions that I read about here, such as importing as raw in wavelab and it won't read it.
So I guess a recovery tool is in order.
I saw it recording the second set as I check it regularly when I'm taping, always.
MILAB VM-44 Classic~> Silver T's~> Busman PMD660
News From Phish: Will tour as opening act for Widespread Panic for Summer
hahaha never happen, PHiSH is waaaaayyyy better the WSP

They both ain't got nothing on MMW... Money spent wisely if you ask me...


FYI, it is a kick ass recording of a bunch of pretend-a-hippies talking.

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #111 on: November 05, 2011, 02:54:22 PM »
kicking it up to the top.  Need help recovering files on a Tascam DR-680.  Properties on the SDHC card after a chkdsk dos run show over 12GB of space used.  But Only 7GB of files are visible at all.  How do I get to the other files?  Tanks in advance, Kirk

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #112 on: November 05, 2011, 03:11:32 PM »
Kirk - This may or may not help in your situation, but I had the same issue with a recent Michael Hurley set from his recent residency at The Laurelthirst, and the missus actually solved this one, as mentioned just a couple of posts prior to this one. Since that time, I've approached a couple of other old problem files in much the same way, and had complete success, as long as the files show more than 0 bytes, anyway.


Ironically, by sheer dumb luck, my wife actually resurrected this file just recently, using a trick she learned from some of the developers she works with: using a binary reader, she went past the presumed header, into the data area, and randomly plucked out two pairs of zeros. That reversed the flaw in the file, turning the first two minutes of the .wav file into an overloaded signal which could almost be mistaken for white noise, and all of the audio from the set appeared, and after careful eximination, is stable. God bless taper's wives; good thing I married a fellow geek!

Of course, I STILL have no idea how to work with the wave header repair utility, although now I DO have a better understanding of what a .wav file actually looks like in a binary reader.


kicking it up to the top.  Need help recovering files on a Tascam DR-680.  Properties on the SDHC card after a chkdsk dos run show over 12GB of space used.  But Only 7GB of files are visible at all.  How do I get to the other files?  Tanks in advance, Kirk
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #113 on: November 05, 2011, 03:15:00 PM »
Thanks, but I don't even see a file at all....that's what got me stumped.  Be one thing if it was a file with 0 bytes.  plus I have no idea what a binary reader is.  The data is taking up space on the card but I don't have any visible sign like a file name that shows it is on there????

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #114 on: November 05, 2011, 03:27:44 PM »
That was the thing about this approach - it won't work for a 0-byte file (or at least I should say I have not personally had any success with it in those situations).

What I'm referring to as a binary reader is basically just a type of utility that allows you to see all the ones and zeros that make up the file. In those situations, if you can establish where the header is in all the digits, you can tweak a few numbers and refresh your missing data. There are different types of utilities available, depending on what platform you're working with (Mac or PC).

I's a long shot, but maybe a utility like that might see the data that appears to be missing on your card? I'm thinking if you can open the file through the utility itself, rather than opening the card and trying to loacte the file directly.

The one thing I have learned from this thread, though - is DO NOT attempt to write anything to the card itself at this point, or it's likely that will affect your ability to go in and try to work on the problem files. It might be a good idea to copy whatever you can see to a drive, so nothing you try can affeect those files, at least.

Thanks, but I don't even see a file at all....that's what got me stumped.  Be one thing if it was a file with 0 bytes.  plus I have no idea what a binary reader is.  The data is taking up space on the card but I don't have any visible sign like a file name that shows it is on there????
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #115 on: November 05, 2011, 03:43:44 PM »
That was the thing about this approach - it won't work for a 0-byte file (or at least I should say I have not personally had any success with it in those situations).

What I'm referring to as a binary reader is basically just a type of utility that allows you to see all the ones and zeros that make up the file. In those situations, if you can establish where the header is in all the digits, you can tweak a few numbers and refresh your missing data. There are different types of utilities available, depending on what platform you're working with (Mac or PC).

I's a long shot, but maybe a utility like that might see the data that appears to be missing on your card? I'm thinking if you can open the file through the utility itself, rather than opening the card and trying to loacte the file directly.

The one thing I have learned from this thread, though - is DO NOT attempt to write anything to the card itself at this point, or it's likely that will affect your ability to go in and try to work on the problem files. It might be a good idea to copy whatever you can see to a drive, so nothing you try can affeect those files, at least.

Thanks, but I don't even see a file at all....that's what got me stumped.  Be one thing if it was a file with 0 bytes.  plus I have no idea what a binary reader is.  The data is taking up space on the card but I don't have any visible sign like a file name that shows it is on there????
I'm on a PC.  I did already copy the files that I can see so they are safe.  I'm open to suggestions or was thinking about trying a few other programs mentioned in the thread previously.  Since I don't really know how to use a binary reader I'm not positive I should muck around in a program that can change things but if you got a suggestion I might try it

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #116 on: November 05, 2011, 04:38:54 PM »
Hopefully, a few of the other members will jump in with some advice about the header repair utility; I found that a bit of a learning curve, but it sounds like some folks here have had some success with it. I tried every approach mentioned in this thread for an old JOMF file I lost, and nothing seemed to work, or it could be that I just couldn't get my head around some of them. I work quite a bit with program code, but system code still trips me up, occasionally.

The PC utility we used is Visual Studio; if you don't have it, it can be a little pricy, but there is a free trial version available for download. All I was thinking is that if you used a tool like that, you could open the program first and then open the file through the program - instead of opening the card directory and looking to see what's there. It doesn't happen as much as it did some years ago, but once in a while that sometimes will show files that aren't visible on the media itself.

I'm tapped here, but hopefully someone will jump in, who has some experience with those other tools. Good luck!

I'm on a PC.  I did already copy the files that I can see so they are safe.  I'm open to suggestions or was thinking about trying a few other programs mentioned in the thread previously.  Since I don't really know how to use a binary reader I'm not positive I should muck around in a program that can change things but if you got a suggestion I might try it
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #117 on: November 05, 2011, 05:51:26 PM »
UPDATE....photorec found a files listed as 44mb way too small???  I'm open to suggestions if you got any..............

cool thanks. I'm trying this photorec app right now and it looks like it found the missing files, I'll know shortly.  I'm not gonna spend any money to recover the files they just are not that important.  Hopefully the photorec app will do it
« Last Edit: November 05, 2011, 06:09:35 PM by kirkd »

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #118 on: November 05, 2011, 06:16:11 PM »
Hi Kirk,
I would suggest importing (photorec recovered files) as raw into an application.

If you don't want to fool with it put the files on a CD, or DVD and I will recover them for you.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #119 on: November 05, 2011, 06:36:39 PM »
tried that it's just hiss even though one set of files I know is good.  I'd like to know what I'm doing wrong so if you can help that's great!
« Last Edit: November 05, 2011, 06:53:42 PM by kirkd »

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #120 on: November 05, 2011, 08:02:25 PM »
If it sounds like white noise the bytes are not aligned correctly into frames. 24-bit stereo audio has 6 bytes per frame. (2 channels in each frame times 3 bytes each). If the alignment is incorrect then you can hear total white noise, or white noise and some very low level audio.

The solution to this is to import as a raw file into a DAW, but you need something that will start reading the data at a certain offset instead of at the first byte. (ie. of the data chunk)

I use Samplitude for this but some have done this repair with Audacity and also I believe that Adobe Audition can do this.
« Last Edit: November 05, 2011, 08:44:40 PM by live2496 »
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #121 on: November 05, 2011, 08:25:12 PM »
try opening that file in CDWAV, then without altering the file any, do a "File / Save As" , thus saving a new file, then take a look at that new file in your usual editing software.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #122 on: November 06, 2011, 10:12:07 AM »
What I might try:
* lock the card, so no writing can occur
* install recouva (free from filehippo.com) and restore any/all files to the local hard drive
* run a "CHKDSK /v" from a DOS prompt and see what it sees... if it does see files, you may have to take a chance and do a "chkdsk /f/v" and let it fix the files......  NOTE: this will write to the SD and could not work and/or write over other files.

its kind of a crap shoot, and when this happens to me, I try everything possible and then go with my instinct in the end

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #123 on: November 06, 2011, 11:12:29 AM »
try opening that file in CDWAV, then without altering the file any, do a "File / Save As" , thus saving a new file, then take a look at that new file in your usual editing software.

OK no luck with this method

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #124 on: November 06, 2011, 12:59:35 PM »
This is very similar to the situation I ran into with the file that we fixed with Visual Studio, which is why I was suggesting the hex reader as a possible solution. I had a file that was about three minutes of soundcheck before I paused my unit, then about an hour of a live set. Something glitched, and the first three minutes played back fine, then the set was all white noise. After we ran the file through Visual Studio and plucked out a couple of zero-sets, the first result was to turn the first three minutes into white noise, and the last hour became music again. It was a pretty easy process to put everything together properly at that point.

On a Mac, you can look at the data in a file by right-clicking on the file, and then choosing the "Open With" option, and using a clean text editor, like BBE Edit or Text Wrangler, for example - basically, the idea is to open the audio file as though it were text instead of audio. I'm afraid the only hex reader I know for the PC platform is Visual Studio, but there may be others. As soon as the file opens, then it will become pretty clear what I'm talking about. I know that there are some files which you can't see yet, but I was thinking that if you could open one of the files that you CAN see - from within the program itself - that you could then try directing the program to the directory where all the files are supposed to be, and at least see if the other files are visible. If they are, and they're not grayed out, you could have a chance at opening them, and tweaking a couple of zero-sets as we did.

If it sounds like white noise the bytes are not aligned correctly into frames. 24-bit stereo audio has 6 bytes per frame. (2 channels in each frame times 3 bytes each). If the alignment is incorrect then you can hear total white noise, or white noise and some very low level audio.

The solution to this is to import as a raw file into a DAW, but you need something that will start reading the data at a certain offset instead of at the first byte. (ie. of the data chunk)

I use Samplitude for this but some have done this repair with Audacity and also I believe that Adobe Audition can do this.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #125 on: November 06, 2011, 01:18:08 PM »
Cool really appreciate you trying to lend a helping hand.   I have figured that maybe this is a project to tackle when I'm not doing other stuff and can dedicate my attention to it. 

Obviously there is something on the card.  I'm also hitting Tascam tech for help and asking why a firmware can't be done so it saves like an HD-P2 does constantly.  This is the second card I now have with the same problem.  A friend borrowed the deck and battery died with a whole show on it.  SO I ave two cards to retrieve.  I've done ok with the 0 byte stuff but this problem of no file info at all has me stumped.

I did run a chkdsk /f on it and it did not solve any problems.   I have not tried the above program mentioned yet.  I would still love to hear from someone who can walk me through the step by step process.  I think Groundhog and I have a PC/Mac disconnect.  PL\lus it sounds like he is more knowledgeable about code than I am.  Removing stuff and replacing it, make me nervous.  nad while I understand how hex looks I don't know how it works.  But I guess there is no time like the present to learn something new

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #126 on: November 07, 2011, 11:31:59 AM »
You could try to use Norton Ghost, which will make a bit-by-bit copy to another card, and then play around on it... and if that fails, just re-ghost it back and try again.... its tough with out putting my hands on it to know what I would do with it

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #127 on: November 08, 2011, 11:40:15 AM »
OK thanks for the input.  Not sure what I'll be doing at this point.  I guess just set the cards aside till I can figure it out

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #128 on: November 08, 2011, 11:59:45 AM »
I thought we were getting close on this as you said one of the files was just hiss. And you had used photorec to get some data off of the card?

I have BadCopyPro and it can sometimes get data off of cards that is otherwise unretrievable. But I think photorec does a similar type of scan. Since you don't want to spend any money on this I could offer to run that on the media here if you want to send them.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

kirk97132

  • Guest
  • Trade Count: (0)
Re: Homegrown WAVE header repair utility
« Reply #129 on: November 08, 2011, 12:53:09 PM »
well I did get hiss but the file length showed up as less then 10 sec.  Should be about an hour.  AND even the good file it "recovered" was only hiss?    I guess I could send the cards that is sure easy enough.  I've got other cards to use.  I've never run into the no file shown problem before.  Files with 0 bytes yes. So gimmie an addy Kirk

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #130 on: November 27, 2011, 06:31:10 PM »
ok, I'm next I guess as my battery ran out during the show last night.

The recorder (R4) has a file there (2 of them actually as I was running a matrix), but says it has zero bytes in size.

Tried all of the utilities/ideas mentioned here and the most progress is I can get a file that now appears to be of the correct size (45min/~700MB's), however it is all noise with a just a bit of audio underneath.

Farther up on this page Gordon has a post that seems to fit where I am at now, however opening the file up now as a raw file doesn't seem to be doing anything for me.

FWIW -  I had used photorec to recover anything from the R4, and was working on files from that recovery attempt. The R4 hasn't been written to, with the exception of doing a chkdsk/f on that drive.

Anyone?

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #131 on: December 06, 2011, 08:36:32 PM »
The data is probably recoverable but you need to reframe the data by importing it as raw and starting at a certain offset.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline Brian E.

  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 4095
  • Gender: Male
  • is chicago.... is not chicago....
Re: Homegrown WAVE header repair utility
« Reply #132 on: December 14, 2011, 05:16:20 PM »
you saved my file!  Thank you!! :)
my tapes:  The Archive | Dime | Etree

Recorder - Sony PCM A-10 | Cans - Shure SE535 | Mics - CA-14 Cards | Canon EOS 5D Mark II 17-40L f4 50 f1.4 70-200L f2.8 IS II 430EX II

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #133 on: December 15, 2011, 05:52:38 PM »
Great! This has been an all round helpful thread for a lot since it was started.

I guess I should say that problems could be classified as follows:

1) Problems accessing the data. Whether this was from battery failing or media being ejected. Dropping your recorder or some such.
Solution: you need to run something that scans the media and finds all of the sectors associated with a file. CHKDSK can repair the file allocation table. Photorec was another utility mentioned. I use BadCopyPro to scan media also.

2) Problems with the file header.
Solution: This can be sometimes fixed with Pigiron's handy utility. If you are familiar with hex number format you can try to edit the front of the file with a hex editor by comparing a good file to the bad one. I use Ultraedit for this. Handy also for just viewing what's there. If you can get the first part of the file corrected, my audiohack.exe utility can scan the data and create a new good file for you.

3) Problems with the framing. You can get white noise or a mixture of low level audio and noise if the framing is incorrect.
Solution: Import as raw with a utility that can import starting at a certain offset. I import 24-bit files with up to 3 offsets that are one byte different each time. Then I look at the waveforms and listen to each to tell which file is correctly framed. (You can usually tell by the waveform though). If there are missing bytes here and there and the audio is really messed up framing-wise you may have to put the imported files on separate tracks and only use the good sections and bounce the a good file that way.

All three of these issues have to be dealt with in the correct way. If you have two or more of these issues you have to deal with each one. But importantly, if you have the data accessable you should be able to recover it somehow.

AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #134 on: January 04, 2012, 04:40:30 PM »
I modified Audiohack to start reading at a certain offset.

So if you have a file that is not framed correctly, say a 24-bit file you could import with 3 different offsets. Then import each one into your DAW of choice. Pick the audio segments that aren't white noise and you have your recording back.

To run the program use the same instructions as before. But run it with the /P switch. And it will prompt you for the starting offset.
eg. "audiohack.exe /P"

Other than that the instructions are the same as found here: http://live2496.com/phpBB/viewtopic.php?t=14

Use the link provided on that page to download the app. Sorry it's a command line application... but hey it's free!

AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline marksk

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 120
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #135 on: May 08, 2012, 11:03:53 AM »
wanted to say thank you!!!! this saved my recording from saturday night!

Offline rigpimp

  • Trade Count: (14)
  • Needs to get out more...
  • *****
  • Posts: 3177
  • Gender: Male
  • Jarts don't kill people!
Re: Homegrown WAVE header repair utility
« Reply #136 on: April 06, 2013, 02:35:16 AM »
Here I am again, searching for Gordon's wav repair tool...again.  This has saved my ass a bunch of times and tonight was no exception. 

A bump for Gordon's genius.
Mics: Schoeps MK 5 MP, Schoeps MK 8 MP, Schoeps MK 41 MP, KCY 250/5 > PFA
Pre/A>D/P48: Sonosax SX/M2, Sonosax SX/M2-LS, E.A.A. PSP-2, Baby Nbox, Neumann BS48i-2 (for sale)
Recorders: Sound Devices Mixpre-6ii, Sony PCM-A10
Playback: Jolida 1501 Hybrid > McIntosh MX 130 > Von Schweikert VR-4 JR, or Little Dot MK III > Sennheiser HD700
http://archive.org/bookmarks/kskreider
https://www.concertarchives.org/kskreider
https://archive.org/details/thespps

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #137 on: April 06, 2013, 11:12:38 PM »
Thank you for the kind words. Glad you are finding the program useful.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #138 on: April 07, 2013, 10:07:15 AM »
Here I am again, searching for Gordon's wav repair tool...again.  This has saved my ass a bunch of times and tonight was no exception. 

A bump for Gordon's genius.

Or pigiron, who started this thread and wrote the original utility.

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #139 on: April 07, 2013, 01:43:10 PM »
I don't know that "original" is quite correct in that you can find references to audiohack.exe and audiohck.zip (in 2003) three years before Pigiron's utility was written. I was helping out with wave files here back when I was testing and developing some pocket pc software and digging into file structures and the like. Of course Pigiron's utility is original in it's own right.

I suspect that Pigiron was not aware of my utility, but they use two very different approaches and one might work where another won't depending upon the source of the problem.

Pigiron's utility fixes up the header of a wave file according to your own specifications. It scans the data and writes correct counts into the header.

My utility creates a new output file. It scans for existing header information and duplicates it if found. It scans to the data marker and writes counts into the header which match the amount of data. If the file exceeds 2gb it opens a second file and writes correct information into the header for that.

Most recently I added a feature to specify a byte offset where to begin reading the data chunk. This can help if framing within the file is messed up somehow. Maybe due to missed samples for whatever reason.

Sorry for the kludgy command line stuff. But it is the easiest way to implement code that is cross-platform. It should be compilable on windows, OSX, and linux.

Gordon


AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline it-goes-to-eleven

  • Trade Count: (58)
  • Needs to get out more...
  • *****
  • Posts: 6696
Re: Homegrown WAVE header repair utility
« Reply #140 on: April 07, 2013, 02:35:35 PM »
Thanks for the clarification, Gordon.  It was just a little muddy with the two utilities in this thread but most mentions were not specific regarding which was in use.

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #141 on: December 01, 2014, 12:14:46 AM »
I saw that a few folks are getting corrupted headers in their wave files and having a struggle with the existing utilities trying to fix the problem. So I cobbled together a wave header repair utility this last weekend that may help... 'cause I hate to see good music go to waste ;D

But it's a butt ugly command line program... if you want pretty, try next door.

Since it's mostly "universal" C coding, I was able to get it to compile on both Linux and Winders... don't own a Mac, sorry.

Beat the hell out of it and it seems to be working, but I'd be surprised if there wasn't some bugs still down in the cracks... so for sure, only use it on a backup copy.

Here's a sample output where it successfully repaired a wave file that had nothing but zeroes in the entire header and a partially truncated audio data sample (about as bad as it get's)...

# ./fixwav junk.wav

Existing header data. Look for the words 'RIFF', 'WAVE', 'fmt',
or 'data' to see if this is even a somewhat valid WAVE header:

00000000:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000010:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00000020:  00 00 00 00 00 00 00 00 00 00 00 00             ............

Exit the program now? [y/n] n
The total file size is 32617577 bytes
Chunk Size of 0 at offset 4 is incorrect... repairing
Chunk Format at offset 8 is incorrect... repairing
Subchunk1 ID at offset 12 is incorrect... repairing
Subchunk1 Size at offset 16 is incorrect... repairing
Subchunk1 Format at offset 20 is incorrect... repairing
Is the file recorded in 0 channels?  [y/n] n
Enter number of channels... 1=Mono, 2=Stereo, etc: 2
Is the number of samples per second = 0?  [y/n] n
Enter number of samples per second: 44100
Is the number of bits per sample = 0?  [y/n] n
Enter number of bits per sample: 16
Subchunk1 Format at offset 24 is incorrect... repairing
Subchunk1 Bytes Per Sample at offset 32 is incorrect... repairing
Subchunk2 ID at offset 36 is incorrect... repairing
Subchunk2 Size at offset 40 is incorrect... repairing
Found incorrect number of audio samples. This means that either
   the new WAVE header data is incorrect, or the audio samples
   in the existing file were clobbered. Do you wish to add silent
   audio samples to the end of the file?
   WARNING: this will modify the existing file. [y/n] y

Header repair is required!
   Overwrite the existing file? [y/n] y

File repair successful

As you see, you need to know a little about the file... the number of bits, the samples per second, and the number of mics... while that might stump a n00b, I don't think you'll have any problem.

One caveat... it assumes you're feeding it a "normal" wave file... i.e. only a single data "Subchunk"... if it ain't such an animal... or if it simply has junk data appended to it (there's some dumb ass programs that add ID3 tags like that), it's gonna hose up.

anyway, they're attached below... enjoy... and remember... you got it free  ;D


tried this, and it says that all 4 files are too "large" for notepad, and to open with another editor. any ideas?

for the record, one file is 30 min, 1 60, 1 2 hours and one 2.5 hours.
« Last Edit: December 01, 2014, 12:45:24 AM by furburger »
-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #142 on: December 01, 2014, 02:23:33 PM »
Try http://www.textpad.com/, and you need a machine with tons of memory to get the file to even open

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #143 on: December 01, 2014, 02:35:45 PM »
Hmm it's been a while since I've had to run this utility, but what is the connection to/with Notepad when running this? You are working in a Command Prompt window where it is (hopefully) trying to alter a wav file that you have defined ??

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #144 on: December 02, 2014, 02:17:01 PM »
sorry, I'm a dipnoodle when it comes to the "tech" side of this, but I believe my comprehension skills to be "beginner/intermediate"...figured out that NotePad was the 'default' program, and got it to open up in WordPad, then learned a bit about the cmd window, etc.

I paid the $40 (and it goes by a LOT of names, or it's not just Wondershare/Recuva) and extracted all the files in every manner possible (.wav, raw, partition fix, blah blah)

and they're still, as is, just a 10m loop of the 1st 10m of the soundcheck...over all 4 files...nearly 6 hours

how do you you look at the raws (or what do you open them in?), and how do you attempt to fix headers (which is what I guess happened)

never added any info to the card, or wrote over anything, it locks up the Edirol when you put it in there, but the card reader on the cpu can look at the files, they're the right size, etc...and that was before any recovery, etc...

my apologies for the idiocy on my end, it'd be nice if I'd tried this kind of thing before.

-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #145 on: December 02, 2014, 02:58:04 PM »
1st thing, make an image of the card as a DVD ISO image, keep it safe and off line

2nd, try a check disk and if it has errors, try a repair... sometimes media fails and effs up our recordings.

I lost 2 concerts that way from the camcorder (allowed video) and it still pisses me off to this day

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #146 on: December 02, 2014, 04:49:03 PM »
1st thing, make an image of the card as a DVD ISO image, keep it safe and off line

2nd, try a check disk and if it has errors, try a repair... sometimes media fails and effs up our recordings.

I lost 2 concerts that way from the camcorder (allowed video) and it still pisses me off to this day

how would one go about doing the 1st thing? (standard, or do I need software?)...or would the recovered files through Wondershare qualify as such?  I did 3 different recoveries, and they're all saved.

pretty sure the media 'failed' because I dropped the deck during playback...but again, during playback, meaning the files were finalized.  I'm just wondering what to reconstruct at the 10-11min mark of the soundcheck, as it either seems to be making the 1st part of it loop thru all the files, OR it overwrote that loop on all the files.

-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #147 on: December 03, 2014, 12:11:42 AM »
also, when I imported it as a 'raw', it broke the card into 30 128MB segments...to me...'raw' would be one big large file.

this makes my head hurt.

-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #148 on: December 03, 2014, 11:07:47 AM »
1st thing, make an image of the card as a DVD ISO image, keep it safe and off line
2nd, try a check disk and if it has errors, try a repair... sometimes media fails and effs up our recordings.
how would one go about doing the 1st thing? (standard, or do I need software?)

All I did was go into Nero and have it create an ISO to a file... and directed the source to my drive letter for my SD card... then took the completed ISO file and moved it to my backup PC for safe keeping

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #149 on: December 03, 2014, 11:12:40 AM »
I use (when I need to) ImgBurn to create image (ISO) files, it's free and works like a charm

http://www.imgburn.com/

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #150 on: December 03, 2014, 03:14:48 PM »
don't have Nero, and the 1st 4 download links i tried on that imgburn page didn't take me to a download...but they sure took me to pop ups and advertisements.
-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #151 on: December 03, 2014, 03:24:10 PM »

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #152 on: December 03, 2014, 03:25:35 PM »
installed imgburn, and no items match my search, whether recovered on flash drive, OG card, or C drive

not really sure what to do...the iso thing takes me to two choices that don't work either ('change volume level' and 'display IFO Layer blah blah')


-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #153 on: December 03, 2014, 04:17:55 PM »
1st thing, make an image of the card as a DVD ISO image, keep it safe and off line

2nd, try a check disk and if it has errors, try a repair... sometimes media fails and effs up our recordings.

I lost 2 concerts that way from the camcorder (allowed video) and it still pisses me off to this day


ok, the only reason why I mentioned ImageBurn was to make an ISO backup of the contents of your memory card you are trying to salvage. Which may in itself be an overkill step to do but this utility is not going to recover any files for you if that is how you are trying to use it. Basically whatever files you tell it to compress into an ISO it will do that as it does not have any limitations on that end to my knowledge.




Offline rigpimp

  • Trade Count: (14)
  • Needs to get out more...
  • *****
  • Posts: 3177
  • Gender: Male
  • Jarts don't kill people!
Re: Homegrown WAVE header repair utility
« Reply #154 on: December 03, 2014, 04:24:22 PM »
It sounds like furburger may lack the needed technological savvy required to make a valid attempt at restoring the card's files. 

Furburger, are you completely opposed to getting some help? 

You do not necessarily need to make an ISO image of the card but you definitely should begin by copying whatever you can OFF OF THE CARD prior to making any attempts to alter data just in case something hits the fan.  Backup, backup, backup.

I am willing to help.  If you want it then shoot me a private message and I can try for you.
Mics: Schoeps MK 5 MP, Schoeps MK 8 MP, Schoeps MK 41 MP, KCY 250/5 > PFA
Pre/A>D/P48: Sonosax SX/M2, Sonosax SX/M2-LS, E.A.A. PSP-2, Baby Nbox, Neumann BS48i-2 (for sale)
Recorders: Sound Devices Mixpre-6ii, Sony PCM-A10
Playback: Jolida 1501 Hybrid > McIntosh MX 130 > Von Schweikert VR-4 JR, or Little Dot MK III > Sennheiser HD700
http://archive.org/bookmarks/kskreider
https://www.concertarchives.org/kskreider
https://archive.org/details/thespps

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #155 on: December 03, 2014, 10:18:52 PM »
i can help too, but i would need the card :(

Offline furburger

  • Trade Count: (1)
  • Taperssection All-Star
  • ****
  • Posts: 1393
  • Gender: Male
  • UH-LASS-KUH
Re: Homegrown WAVE header repair utility
« Reply #156 on: December 08, 2014, 03:32:02 PM »
you guys hit the nail on the head (but I did learn quite a bit...I need to learn how to make movies next....I've over 3TB of footage shot just since '11...lots of multi-cam tripod too)

the 2496 guy offered to try for me via PM, if that doesn't work, I'd be happy to pass it your way.

I'm just hoping that the path of the soundcheck somehow got flawed, but that the show is still there, as the files were finalized months before I dropped the deck.

thanks so much, you folks are awesome!!!

(p.s. if anyone wants to make films, I've got a lot of stuff by a LOT of artists (Black Keys, Soundgarden, Black Angels, PUSA, ZZ Top), external audio and the whole 9 yards...I just don't know how to put the cake together!)
-------------
people who are fans of the music, they LOVE what I document and capture...people who are fans of themselves....not so much.

Offline phil_er_up

  • Trade Count: (9)
  • Taperssection All-Star
  • ****
  • Posts: 1256
Re: Homegrown WAVE header repair utility
« Reply #157 on: March 08, 2016, 08:19:02 AM »
Thank you. This saved me the last time the recorder did not write a header file and would not open in audio software.
Everyday is a gift. Enjoy each one!
Forward motion bring positive results.

Offline vwmule

  • Trade Count: (16)
  • Needs to get out more...
  • *****
  • Posts: 2051
Re: Homegrown WAVE header repair utility
« Reply #158 on: March 19, 2016, 03:38:22 PM »
I can't get this to work. Can anyone give me a hand? I've got a Drive-By Truckers file that I assume has a bad header. I can provide a download link.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #159 on: July 31, 2016, 09:44:19 PM »
Sorry to reopen an old thread, but a buddy of mine has 13 corrupted files from a Sony M10.  I have tried the Audacity raw importing, FLACIng the file, sound forge, cdwav, the tool in this thread, the Sound Devices tool and nothing will open/import/correct these files into WAV files.

Anyone have any more current ideas/tool/tricks?  Trying to get at least one of these to open, and absolutely zero luck... kind of assuming a bad card, but the files are proper size and lengths, but just wont open in anything with any tool.

Offline beatkilla

  • Trade Count: (70)
  • Needs to get out more...
  • *****
  • Posts: 2104
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #160 on: July 31, 2016, 10:27:38 PM »
If only using micro sd card perhaps card not seated properly?Or bogus card?

Also if deck is powered down while access light is active you can corrupt files.

Upload the files to wetransfer and ill try all available tricks i know.

Offline if_then_else

  • Trade Count: (0)
  • Taperssection Member
  • ***
  • Posts: 428
Re: Homegrown WAVE header repair utility
« Reply #161 on: August 01, 2016, 01:17:06 AM »
Anyone have any more current ideas/tool/tricks?  Trying to get at least one of these to open, and absolutely zero luck... kind of assuming a bad card, but the files are proper size and lengths, but just wont open in anything with any tool.

Maybe testdisc / photorec?
http://www.cgsecurity.org/wiki/PhotoRec

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #162 on: August 01, 2016, 06:09:08 AM »
Maybe testdisc / photorec?
http://www.cgsecurity.org/wiki/PhotoRec

The files are there. They have no music in them and even the header tool isn't allowing them to open. It is like the deck was on mute

Offline beatkilla

  • Trade Count: (70)
  • Needs to get out more...
  • *****
  • Posts: 2104
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #163 on: August 01, 2016, 07:02:23 AM »
What error code does your M10 display about those files?

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #164 on: August 01, 2016, 07:29:20 AM »
What error code does your M10 display about those files?
I dont have it right in front of me, but corrupted file or bad file... something along those lines.

Offline buckster

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 183
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #165 on: August 01, 2016, 01:37:43 PM »
No guarantees on this, but download VLC media player.  IF VLC can play the file, then use VLC to convert/save the file as a 44.1/16 WAV file. 

http://www.videolan.org/vlc/download-windows.html

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #166 on: August 01, 2016, 02:18:01 PM »
I don't know if this will make sense / or help, but a while back in this thread, I mentioned a different approach which rescued a set that had somehow been "dropped" by my recorder:

http://taperssection.com/index.php?topic=72936.msg1902304#msg1902304
 - Specifically, this part:
my wife actually resurrected this file just recently, using a trick she learned from some of the developers she works with: using a binary reader, she went past the presumed header, into the data area, and randomly plucked out two pairs of zeros. That reversed the flaw in the file, turning the first two minutes of the .wav file into an overloaded signal which could almost be mistaken for white noise, and all of the audio from the set appeared, and after careful examination, is stable.

Sorry to reopen an old thread, but a buddy of mine has 13 corrupted files from a Sony M10.  I have tried the Audacity raw importing, FLACIng the file, sound forge, cdwav, the tool in this thread, the Sound Devices tool and nothing will open/import/correct these files into WAV files.

Anyone have any more current ideas/tool/tricks?  Trying to get at least one of these to open, and absolutely zero luck... kind of assuming a bad card, but the files are proper size and lengths, but just wont open in anything with any tool.
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage
Re: Homegrown WAVE header repair utility
« Reply #167 on: August 01, 2016, 04:04:05 PM »
No guarantees on this, but download VLC media player.  IF VLC can play the file, then use VLC to convert/save the file as a 44.1/16 WAV file. 
http://www.videolan.org/vlc/download-windows.html

I tried that from another message board, no luck, but thanks

I don't know if this will make sense / or help, but a while back in this thread, I mentioned a different approach which rescued a set that had somehow been "dropped" by my recorder:
http://taperssection.com/index.php?topic=72936.msg1902304#msg1902304
 - Specifically, this part:
my wife actually resurrected this file just recently, using a trick she learned from some of the developers she works with: using a binary reader, she went past the presumed header, into the data area, and randomly plucked out two pairs of zeros. That reversed the flaw in the file, turning the first two minutes of the .wav file into an overloaded signal which could almost be mistaken for white noise, and all of the audio from the set appeared, and after careful examination, is stable.

I can try that, thought I did use the "Header repair" tool in this thread, and I kind of assume the steps above would do the same, but I will give it a try tonight and report back

Offline GroundHog420

  • Trade Count: (12)
  • Taperssection All-Star
  • ****
  • Posts: 1416
    • Sonic Archives
Re: Homegrown WAVE header repair utility
« Reply #168 on: August 01, 2016, 04:17:39 PM »
Well, as I had mentioned back in that earlier post, I was never able to get my head around the header repair tool, and to date, no one ever really came forward to help me with that, so it *may* turn out to be the same (or at least a similar) process, but I really am unable to speak to that, I guess.

I can try that, thought I did use the "Header repair" tool in this thread, and I kind of assume the steps above would do the same, but I will give it a try tonight and report back
Hey man, that common sense shit won't fly around here, we're from Portland, we're edgy & different or something  ???
she kept playing with the balls for around 2 years after i thought i had seen it all from them.

Offline morst

  • I think I found an error on the internet; #UnionStrong
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5950
Re: Homegrown WAVE header repair utility
« Reply #169 on: February 15, 2017, 12:27:16 AM »
bumping an old thread, so if anyone searches for "WAV header file repair feature" then they can find this!

 8)
https://toad.social/@morst spoutible.com/morst post.news/@acffhmorst

Offline gmm6797

  • Trade Count: (10)
  • Needs to get out more...
  • *****
  • Posts: 3591
  • Gender: Male
  • Schoeps MK4 > nBoxPlat > Sony A10/SDMixPre6/SD 722
    • Homepage

Offline Hypnocracy

  • Site Supporter
  • Trade Count: (46)
  • Needs to get out more...
  • *
  • Posts: 2011
  • Hypnocratic Missionary
    • Hypno on teh LMA
Re: Homegrown WAVE header repair utility
« Reply #171 on: May 03, 2017, 06:16:57 PM »
When I click the Bat file in Windoze 10 it said "This app can't run on your PC" ?
_____________
hypno on teh Archive

This must be heaven -- 'cause here's where the rainbow ends
If this ain't the real thing, then it's close enough to pretend

Offline rigpimp

  • Trade Count: (14)
  • Needs to get out more...
  • *****
  • Posts: 3177
  • Gender: Male
  • Jarts don't kill people!
Re: Homegrown WAVE header repair utility
« Reply #172 on: May 03, 2017, 07:24:06 PM »
When I click the Bat file in Windoze 10 it said "This app can't run on your PC" ?

Try to right click and run as admin
Mics: Schoeps MK 5 MP, Schoeps MK 8 MP, Schoeps MK 41 MP, KCY 250/5 > PFA
Pre/A>D/P48: Sonosax SX/M2, Sonosax SX/M2-LS, E.A.A. PSP-2, Baby Nbox, Neumann BS48i-2 (for sale)
Recorders: Sound Devices Mixpre-6ii, Sony PCM-A10
Playback: Jolida 1501 Hybrid > McIntosh MX 130 > Von Schweikert VR-4 JR, or Little Dot MK III > Sennheiser HD700
http://archive.org/bookmarks/kskreider
https://www.concertarchives.org/kskreider
https://archive.org/details/thespps

Offline EarlyMorningRain

  • Trade Count: (7)
  • Needs to get out more...
  • *****
  • Posts: 2779
Re: Homegrown WAVE header repair utility
« Reply #173 on: May 04, 2017, 09:12:11 AM »
^ FYI

this can only be run in a CMD prompt Window (as you cannot just click/double click on the file to run)

Offline lmgbtapes

  • Trade Count: (3)
  • Taperssection Regular
  • **
  • Posts: 132
Re: Homegrown WAVE header repair utility
« Reply #174 on: July 19, 2022, 01:35:46 AM »
Had heartbreaking experience of SD card failure mid-show. PCM A10 showed levels recording successfully, yet when I go to play file, dead silence after a certain point.

Appreciate this thread deeply for teaching me a lot and giving me potential troubleshooting avenues.

Unfortunately, couldn't save my files - I analyzed them with a hex editor (as GroundHog420 suggested) and after failure point it's nothing but 00's as far as the eye can see.

Just wanted to throw a cautionary tale into the wind, remind people to only use trusted cards, and show some love for all the knowledge shared and preserved here.

e: Just for future reference, I feel like an idiot- this is definitely the issue https://recoverhdd.com/blog/recovering-data-from-fake-sd-cards.html and I lost at least one other show on the card as a result.
« Last Edit: July 19, 2022, 02:41:10 AM by lmgbtapes »

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #175 on: September 13, 2022, 09:14:51 PM »
Hello all.
Got the dreaded zero byte issue on three files from the last act one night of a recent festival I archived. Total rookie mistake on my part as I left the gear running at the main stage while heading over to the late night stage to start things up. When I finally got back to the main stage about 20 mins later most of the power to the stage area had been turned off including my power feed from monitor world.
Yes, I should have been running on battery power, at least at that point of the night.  :-\

The SD card shows about 12gb of 59gb full, and the three other acts on the card came out just fine and total a little less than 8gb. So I'm pretty sure the missing 4gb is the set and those three files in question.

Anyhow, I followed the instructions early on in this thread for fixwave.exe and got the attached message, which I assume means I'm at a dead end at least with this type of recovery.
Just looking for some concurrence based on the screenshot message.
Thanks!
« Last Edit: September 14, 2022, 02:57:42 PM by billydee »

Offline morst

  • I think I found an error on the internet; #UnionStrong
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5950
Re: Homegrown WAVE header repair utility
« Reply #176 on: September 14, 2022, 01:38:50 AM »
if they are not REALLY zeroes: use ZAR on a PC then import the result into Audacity as RAW data! (you might have to try different "endian-ness" to get it to work, just experiment on a short sample {30 sec?} to see if it sounds like audio or trash/hash.)


The free version should work. wish they made it for mac.
https://www.z-a-recovery.com/
https://toad.social/@morst spoutible.com/morst post.news/@acffhmorst

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #177 on: September 14, 2022, 11:12:50 AM »
If the data is there it should be recoverable. This sounds like a wave header issue instead of some corruption of the file system.

Importing the data as raw will probably work. The audiohack utility that I posted here can do this also. It creates a new output file from the existing one, reading the file header and scanning for the data chunk. Then it reads and writes the data to the new file and corrects the counters in the wave header.

Let us know if you get stuck.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline morst

  • I think I found an error on the internet; #UnionStrong
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5950
Re: Homegrown WAVE header repair utility
« Reply #178 on: September 14, 2022, 11:40:51 AM »

Thanks for the reminder!


ZAR is something that scans the media, as you indicate!

Great! This has been an all round helpful thread for a lot since it was started.

I guess I should say that problems could be classified as follows:

1) Problems accessing the data. Whether this was from battery failing or media being ejected. Dropping your recorder or some such.
Solution: you need to run something that scans the media and finds all of the sectors associated with a file. CHKDSK can repair the file allocation table. Photorec was another utility mentioned. I use BadCopyPro to scan media also.

2) Problems with the file header.
Solution: This can be sometimes fixed with Pigiron's handy utility. If you are familiar with hex number format you can try to edit the front of the file with a hex editor by comparing a good file to the bad one. I use Ultraedit for this. Handy also for just viewing what's there. If you can get the first part of the file corrected, my audiohack.exe utility can scan the data and create a new good file for you.

3) Problems with the framing. You can get white noise or a mixture of low level audio and noise if the framing is incorrect.
Solution: Import as raw with a utility that can import starting at a certain offset. I import 24-bit files with up to 3 offsets that are one byte different each time. Then I look at the waveforms and listen to each to tell which file is correctly framed. (You can usually tell by the waveform though). If there are missing bytes here and there and the audio is really messed up framing-wise you may have to put the imported files on separate tracks and only use the good sections and bounce the a good file that way.

All three of these issues have to be dealt with in the correct way. If you have two or more of these issues you have to deal with each one. But importantly, if you have the data accessable you should be able to recover it somehow.
https://toad.social/@morst spoutible.com/morst post.news/@acffhmorst

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #179 on: September 14, 2022, 12:20:36 PM »
Thanks for the tips guys, I'm determined to get this done!

The right amount of data is on the card, and I tried following this procedure (https://youtu.be/ZU9pj0-hbiM) last week and pulled into Audacity via Raw Import what I'd consider something that matched this description-
"3) Problems with the framing. You can get white noise or a mixture of low level audio and noise if the framing is incorrect."

And in Audacity I could hear some of the Dirtwire music but it was in and out and mixed with white noise. I should note that this was all done with a clone/disc image of the SD card in question.

So I think it's a matter of following thru. And I assume the audiohack.exe utility is linked to somewhere in this thread so I'll try and find that.
« Last Edit: September 14, 2022, 12:28:12 PM by billydee »

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #180 on: September 14, 2022, 12:39:42 PM »
Audiohack won't fix the framing. What I used to do was import as raw into Samplitude multiple times with a different starting offset each time.

So with a 24-bit file three bytes make up each sample. (2x for stereo for a total of 6 bytes.) I would import with a different starting offset (1 byte more) each time. One of those has to be the correct framing. You can easily tell by listening to each audio segment in the DAW. Delete the badly framed audio and only keep the good one. Then export it to a new file.

I am not sure what software is out there that can do this or something similar. Samplitude has a dialog that can do this. It's not a common problem with good hardware and drivers.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #181 on: September 14, 2022, 03:04:12 PM »
One other complication with this 64gb SD card, the three previous sets recorded that night were done at 16/48, whereas the Dirtwire zero byte file set was recorded at 24/48.

So I'm wondering if I should pull the 16/48 files (nine of them in total) off of the SD card and then create a new clone/disc image of the card to work with. Any thoughts on that?

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #182 on: September 14, 2022, 03:50:32 PM »
Audiohack will not require all of the files in the folder to have the same attributes. You will deal with each one individually and the number of bits, channels, sampling rate are retained. 
Whatever you do though having a backup copy is always a good idea. In the case of the pigiron utility if I remember correctly it attempts to fix up the original file.

Gordon

EDIT: I need to publish a new link for this as I am no longer paying for web hosting of my domain. Probably need to post some helpful instructions too or a video.

This is a link to my dropbox. I hope you can get the executable from here:
https://www.dropbox.com/s/z7s506nh0c32dqz/audiohck.zip?dl=0

One thing I forgot. The program was written back when I was using Borland C++ and it only supported filenames with 8 characters and a three character extension.
So... this presents a problem. What I would recommend is to copy your file into the same folder as the audiohack.exe program and then rename the file to the 8.3 format so that the program can open it.

Also the program always creates two output files. This was to handle cases when files greater than 2GB were recorded. So in every case the first 2gb are written to file number 1.
The remainder is written to file number 2.




« Last Edit: September 14, 2022, 10:48:32 PM by live2496 »
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #183 on: September 29, 2022, 08:54:56 PM »
Tried several things and still no recovery. Followed all the instructions and tried the fixwav fix and the Audiohack fix. Tried chkdsk /f and chkdsk /r. Tried the free versions of RescuePro Deluxe, Recuva, Klennet Recovery (which has replaced ZAR), and Data Rescue.

The AudioHack fix creates 2 files from one of the zero byte files, both are only 1k in size. Fixwav message attached below.

Importing the zero byte files into Audacity as raw data does nothing.

I did find that there's a 1.38GB file named FILE0000.CHK on the card. I made a copy and renamed it to .WAV and pulled it into Audacity as Raw Data and it's a combination of white noise and music. As advised I imported it with a different starting offset, 1 byte at a time up to 6 bytes. Still white noise and music, but at some of the starting offsets it loaded into Audacity much faster.

The fact there's a 1.38GB .CHK file seems promising, but is it? The message I got from trying fixwav on that looked promising (see attached).

One thing I have not yet done is remove the 7.78GB worth of good WAV files from the SD card. They're backed up elsewhere but I have hesitated to make any changes on the card itself.

Like I mentioned earlier, the right amount of space to accommodate the three zero byte files (if they were each about 1.3GB or so as I'd expect) is there on the card. So I'm not giving up but am at a loss as to what to try next.
I've also attached some screenshots of messages from trying some of this.
« Last Edit: September 29, 2022, 09:14:56 PM by billydee »

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #184 on: September 29, 2022, 11:50:41 PM »
It would seem that there was some corruption of the file system.
There may be other utilities you could try. BadCopyPro was something that I have used. Also utilities like TestDisk and PhotoRec might turn up something useful.

AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #185 on: September 30, 2022, 10:59:54 AM »
It would seem that there was some corruption of the file system.
There may be other utilities you could try. BadCopyPro was something that I have used. Also utilities like TestDisk and PhotoRec might turn up something useful.
Thank you for all the suggestions, much appreciated.

Offline morst

  • I think I found an error on the internet; #UnionStrong
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5950
Re: Homegrown WAVE header repair utility
« Reply #186 on: October 02, 2022, 01:34:23 AM »
I did find that there's a 1.38GB file named FILE0000.CHK on the card. I made a copy and renamed it to .WAV and pulled it into Audacity as Raw Data and it's a combination of white noise and music. As advised I imported it with a different starting offset, 1 byte at a time up to 6 bytes. Still white noise and music, but at some of the starting offsets it loaded into Audacity much faster.


If the music sounds like it's at the proper sample rate and channel count, but is interrupted by noise, then I would figure you have imported the raw data at the correctly matching bit depth, sample rate, and "endianness."
If this feed is intermittent, then that's likely to be file corruption from the card or recovery process. At least you have snippets of evidence!?!
https://toad.social/@morst spoutible.com/morst post.news/@acffhmorst

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #187 on: October 13, 2022, 03:08:26 PM »
I did find that there's a 1.38GB file named FILE0000.CHK on the card. I made a copy and renamed it to .WAV and pulled it into Audacity as Raw Data and it's a combination of white noise and music. As advised I imported it with a different starting offset, 1 byte at a time up to 6 bytes. Still white noise and music, but at some of the starting offsets it loaded into Audacity much faster.


If the music sounds like it's at the proper sample rate and channel count, but is interrupted by noise, then I would figure you have imported the raw data at the correctly matching bit depth, sample rate, and "endianness."
If this feed is intermittent, then that's likely to be file corruption from the card or recovery process. At least you have snippets of evidence!?!
Yes, I guess "snippets" covers what's been recovered so far. I've sort of given up for now and won't use that SD card anymore until another solution surfaces.

Offline morst

  • I think I found an error on the internet; #UnionStrong
  • Trade Count: (2)
  • Needs to get out more...
  • *****
  • Posts: 5950
Re: Homegrown WAVE header repair utility
« Reply #188 on: November 19, 2022, 03:59:14 PM »
I found a good video that clarifies how to really get pc command chkdsk to function.


I didn't realize that you'll need to tell windows to show invisible files, show non-system files, and show all extensions...


https://youtu.be/lw5zBkoWAg8?t=152
This video covers how to do that, around 2.5 minutes in.


I did a recovery on the PC and when I put the thumbdrive in my mac, the files were hidden from the Finder (mac version of windows explorer) but visible when I listed their contents using the terminal app (command line for mac).
I could have copied them off from the PC but used rsync from the terminal to move the files to my main drive.
https://toad.social/@morst spoutible.com/morst post.news/@acffhmorst

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #189 on: December 29, 2022, 03:20:48 PM »
I got in touch with the author of BadCopyPro and got my licensing key.

I would try that if you feel ok about sending it.

Gordon
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

Offline billydee

  • Trade Count: (19)
  • Taperssection All-Star
  • ****
  • Posts: 1579
  • Gender: Male
Re: Homegrown WAVE header repair utility
« Reply #190 on: December 30, 2022, 09:59:18 AM »
I got in touch with the author of BadCopyPro and got my licensing key.

I would try that if you feel ok about sending it.

Gordon
Gordon, are you referring to my 64gb SD card zero byte file issue documented a couple months back?
Bill

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 692
  • Gender: Male
    • Gidluck Mastering
Re: Homegrown WAVE header repair utility
« Reply #191 on: December 30, 2022, 12:54:52 PM »
yes. PM me if you wish to discuss possibilities.
AEA R88MKII > SPL Crimson 3 > Tascam DA-3000

 

RSS | Mobile
Page created in 0.72 seconds with 220 queries.
© 2002-2024 Taperssection.com
Powered by SMF