Become a Site Supporter and Never see Ads again!

Author Topic: Zero byte .wav file - how to restore?  (Read 37134 times)

0 Members and 1 Guest are viewing this topic.

Offline rigpimp

  • Trade Count: (14)
  • Needs to get out more...
  • *****
  • Posts: 3241
  • Gender: Male
  • Jarts don't kill people!
Re: Zero byte .wav file - how to restore?
« Reply #30 on: April 05, 2025, 03:31:06 PM »
I thought there was a tool here somewhere that Gordon Gidluck posted that repaired 0-byte files, which I thought I shared on FB, but it was a file-splitting command instead. You used to type in how many channels, bit depth and sample rate and it would append -fixed at the end of the repaired file. I will go dig and see what I can come up with.

I think this is what you are referencing - fixwav.

https://spaces.hightail.com/receive/GgFYcheDWp

Yes, I was, and I found it afterward, but I cannot get it to run on my Windows 10 machine. I wanted to see if I could get AI to update the code, but I do not really know I am doing. LOL
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 TheJez

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 230
Re: Zero byte .wav file - how to restore?
« Reply #31 on: April 22, 2025, 08:17:07 AM »
I thought there was a tool here somewhere that Gordon Gidluck posted that repaired 0-byte files, which I thought I shared on FB, but it was a file-splitting command instead. You used to type in how many channels, bit depth and sample rate and it would append -fixed at the end of the repaired file. I will go dig and see what I can come up with.

I think this is what you are referencing - fixwav.

https://spaces.hightail.com/receive/GgFYcheDWp

I think this tool will only repair a corrupt header and not magically recover your lost samples. It means you must have a wav file with proper length to begin with. (E.g 1 hour of 48kHz 24bit stereo audio takes ~1GB.) If your OS (windows, whatever) reports that the file is 0 bytes long, this tool won't help you...

Offline vanark

  • TDS
  • Trade Count: (29)
  • Needs to get out more...
  • *****
  • Posts: 8856
  • If you ain't right, you better get right!
    • The Mudboy Grotto - North Mississippi Allstar fan site
Re: Zero byte .wav file - how to restore?
« Reply #32 on: April 22, 2025, 11:16:26 AM »
I thought there was a tool here somewhere that Gordon Gidluck posted that repaired 0-byte files, which I thought I shared on FB, but it was a file-splitting command instead. You used to type in how many channels, bit depth and sample rate and it would append -fixed at the end of the repaired file. I will go dig and see what I can come up with.

I think this is what you are referencing - fixwav.

https://spaces.hightail.com/receive/GgFYcheDWp

Yes, I was, and I found it afterward, but I cannot get it to run on my Windows 10 machine. I wanted to see if I could get AI to update the code, but I do not really know I am doing. LOL

Runs fine from a command prompt on my Win10 machine.
If you have a problem relating to the Live Music Archive (http://www.archive.org/details/etree) please send an e-mail to us admins at LMA(AT)archive(DOT)org or post in the LMA thread here and we'll get on it.

Link to LMA Recordings

Link to Team Dirty South Recordings on the LMA

Mics: Microtech Gefell M21 (with Nbob actives) | Church Audio CA-11 (cards) (with CA UBB)
Pres: babynbox
Recorders: Tascam DR-60D | Tascam DR-40 | Sony PCM-A10 | Edirol R-4

Offline daspyknows

  • Complaint Dept.
  • Trade Count: (1)
  • Needs to get out more...
  • *****
  • Posts: 10159
  • Gender: Male
  • Don't ask, don't tell, don't get get caught
Re: Zero byte .wav file - how to restore?
« Reply #33 on: April 22, 2025, 11:47:52 AM »
I thought there was a tool here somewhere that Gordon Gidluck posted that repaired 0-byte files, which I thought I shared on FB, but it was a file-splitting command instead. You used to type in how many channels, bit depth and sample rate and it would append -fixed at the end of the repaired file. I will go dig and see what I can come up with.

I think this is what you are referencing - fixwav.

https://spaces.hightail.com/receive/GgFYcheDWp

Yes, I was, and I found it afterward, but I cannot get it to run on my Windows 10 machine. I wanted to see if I could get AI to update the code, but I do not really know I am doing. LOL

Runs fine from a command prompt on my Win10 machine.


card still sitting in recorder in case someone else wants to try.  Advantage of having a drawer full of Tascams.

Offline live2496

  • Trade Count: (6)
  • Taperssection Member
  • ***
  • Posts: 706
  • Gender: Male
    • Gidluck Mastering
Re: Zero byte .wav file - how to restore?
« Reply #34 on: May 18, 2025, 04:42:49 PM »
The general rules for this are:
1) if the file is seemingly not there you have to run a utility like CHKDSK to convert the orphaned data into actual files. (as in the Youtube video)
2) at that point if the files cannot be played you will have to correct the WAV header counts. A few solutions to this have been posted including a command line utility by me. As well you might import as raw data into a DAW.
3) if part of the file has a good recording and then it just loops the same segment over and over there isn't anything you can do about that.

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

Offline TheJez

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 230
Re: Zero byte .wav file - how to restore?
« Reply #35 on: May 19, 2025, 02:44:44 AM »
The general rules for this are:
1) if the file is seemingly not there you have to run a utility like CHKDSK to convert the orphaned data into actual files. (as in the Youtube video)
2) at that point if the files cannot be played you will have to correct the WAV header counts. A few solutions to this have been posted including a command line utility by me. As well you might import as raw data into a DAW.
3) if part of the file has a good recording and then it just loops the same segment over and over there isn't anything you can do about that.

Gordon

IMHO, the very very very first step, before doing anything else, is creating a disk image of the card/recorder memory. This way you can always access the original content of the card and try different approaches. Tools like CHKDSK (or anything else that writes to the card) may salvage your data but also might as well destroy your precious samples.
So here's what I'd do:
1) Create a raw disk image (*.bin). Various open source or freeware tools available to do so, depending on your OS (Windows, Linux, Mac)
2) Open the image as raw audio with your DAW. Hopefully you know the sample rate, format (16/24/32 bit) and number of channels (likely stereo, so 2). You may need to play with the byte offset when opening, depending on the format. E.g. for 16 bit, you may need to try 0 and 1. With 24bit, you may need to try 0, 1 and 2. With 32bit, you may need to try 0,1,2 and 3.

After opening the image, there should be regions with audible data, hopefully containing the audio you're looking for. If not, then the samples simply aren't there. No other tool (CHKDISK, whatever) will magically recreate your audio.

Offline TheJez

  • Trade Count: (0)
  • Taperssection Regular
  • **
  • Posts: 230
Re: Zero byte .wav file - how to restore?
« Reply #36 on: May 19, 2025, 02:47:01 AM »
card still sitting in recorder in case someone else wants to try.  Advantage of having a drawer full of Tascams.
I'd be happy to try to help you out. Just PM me if you want to arrange something.

Offline Datfly

  • Trade Count: (10)
  • Taperssection Member
  • ***
  • Posts: 333
Re: Zero byte .wav file - how to restore?
« Reply #37 on: May 25, 2025, 09:37:57 AM »
I get 0 files from the board if the thumb is pulled too early or for whatever reason & this has always recovered it.

On PC open Command Prompt - Type CHKDSK then the letter of your drive with the 0 File then /F (find)

Take found file rename it .WAV
Open VLC Click Media & open Covert / Save - Add File & then Convert & Save!


CHKDSK (DRIVE): (SPACE) /F
Mics: Schoeps MK41's - Ass't Shure & Sennheiser for stage
Pre-Amps: Naiant Tinybox 2.2 o/t 
Cables: Nbob Actives V1
Recorders: Zoom F8nPro - F3 - H6e x 2 + Tascam DR-2d x 2
Panasonic ZS100 4K X 2
Sony NX80 4K | Sony AX700 4K  X 5 Camcorders
Canon 5D MK III
Canon 300 2.8 IS II | Canon 70-200 2.8 IS II | Canon 24-70 2.8 II | Canon 16-35 4.0

 

RSS | Mobile
Page created in 0.048 seconds with 31 queries.
© 2002-2025 Taperssection.com
Powered by SMF