Become a Site Supporter and Never see Ads again!

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

0 Members and 1 Guest are viewing this topic.

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 695
  • 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: 1584
  • 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: 695
  • 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: 1584
  • 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: 695
  • 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: 1584
  • 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: 5967
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: 1584
  • 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: 5967
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: 695
  • 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: 1584
  • 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: 695
  • 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.161 seconds with 37 queries.
© 2002-2024 Taperssection.com
Powered by SMF