06Aug Fixing corrupted audio files with VLC
If you work with a lot of audio files, especially longer recordings, sometimes you run into an error like this one from Adobe Audition. The error is usually caused when a field recorder fails to close an audio file properly or when a field recorder looses power during a long recording.
Without going too deep into the way WAV files are recorded, basically the WAV data is recorded into the file. At the end of the file the recording the file is marked with header information that’s appended to the file. This tells your media player or in this case Adobe Audition how long the file is, what format it was recorded in, and other info about the WAV file (checksum and so on) that is usually needed for playback. If this info is missing or incorrect most media players will throw up errors. You can usually fix this broken audio using VLC.
Grab a copy of VLC from there site and install. Make sure you read the install notes to avoid adding any search bars or other random apps to your computer. I don’t use VLC for file playback so I usually choose custom install and un-check all of the support file formats. Once you have VLC player installed, right click on the WAV file that’s causing you problems and open with VLC media player.
Usually if VLC is able to fix your file, you’ll be able to play it back from the main screen, this is a good way to make sure this method will repair your audio. Once you’ve checked playback click on the “Media” menu and select “Convert / Save…”.
From there you’ll see this menu. In the file table click the add button and select your broken audio file. Once you’ve done that click on the “Convert / Save” button at the bottom of the screen.
That brings you to the convert screen. Click the “Browse” button and find the folder you want your corrected audio to be saved to. In the same browse screen you’ll need to type in the file name and extension. In this case I typed in “Converted file.wav”. In the settings section select “Audio-CD” from the drop down menu, then click start.
Once you hit start, you should see a progress bar moving in VLC media player. Once it completes the audio will show up under the selected name, in the file folder you selected earlier. When VLC converts the audio it reconstructs all of the header information, and makes the file playable in other programs.
Now the file shows up in Adobe Audition and all of the recording information is corrected. This solution will not solve every corrupted WAV file problem out there, but it’s usually the first thing I try when I run into a WAV file that won’t play in Audition or Premiere timelines. Special thanks to Jess for asking for this tutorial. I end up using this method maybe two or three times a year and always forget to post a tutorial.
On a side note, if you use the Zoom h4n and you’ve recorded a long file (in this case 64 min), after the recording has been stopped be sure to give your field recorder a minute or so before you power the unit down. This can also be a problem if you’re using a memory card over 4GB in size. For whatever reason, it takes the h4n longer to close files when using a large memory card. This corrupted file was part of a live podcast I was recording for a festival last month. If you decide to listen, just remember I drank a few too many beers.
August 7th, 2013 at 1:07 pm
Hi,
I’ve gotta say, great job on this. I never thought about using VLC to rebuild my file-index. That was smart. Thanks for the tip.
August 7th, 2013 at 1:46 pm
No problem, in the old days I’d get the hex editor out and fix the file manually, but that method is a pain and easy to mess up. VLC has to do a raw audio check on the file before converting it to some other format anyway (in this case the same format), so it’s much easier to let VLC figure out the length, bit rate, and checksum bits. Plus it only takes a minute or two to run through an hour long file.
August 8th, 2013 at 6:51 am
Excellent tip! Thanks, Deejay!
March 21st, 2014 at 2:34 am
Oh man, I love VLC and have had .wav files get cut short by loss of ower a few times. This method just saved a precious file for me that was stopped prematurely when my phone died (was using RecForge II on Android)
Thanks!!
C
March 21st, 2014 at 8:49 am
Glad it worked out for you! This method has saved me a few times as well.
March 26th, 2014 at 5:21 pm
Hi!
I’m a bit desperate so I decided to ask directly.
I have an audio file (wav) I recorded with my dvr. It’s the first time this has happened so I’m not sure how to fix it, I recorded it as I always do but the results were not the same.
The audio file came out fine, or at least it looked fine. 22 minutes long and when I open it when Audacity I can see the sound waves so I guess the data is there, but when I play it with any player, and althought the first 10 seconds are fine, it turns out to be just noise and distorted voices (it is an interview). The recorded didn’t shut down or anything like that, I guess it was a problem related to conversion? I don’t know anything about it, I’m completely lost, and I need the file for my job. This dvr has always converted wav files just fine and I used to copy the files to my pc without any problems. I’ve tried your method with VLC but no luck. Could you point me in the right direction, please? I could give you my email if you needed it so I don’t flood the comments section.
Thank you.
March 26th, 2014 at 6:06 pm
Have you tried downloading the file again? This method only corrects wav files with head info that is mismatched due to power loss or something like that.
March 26th, 2014 at 6:11 pm
The file is on my digital voice recorder. I can’t download it, just copy/paste it to my computer (trough USB connection). I’ve tried doing it several times, yes, but that part of the process seems ok. The file on my pc looks exactly as the one on my recorder. I’ve done it a thousand times so I guess the problem is not there. I tried this because I really don’t know anything about this so I’m trying every solution that can possibly relate to my problem. I know the data is there (the first 10 seconds are ok and the file lasts for the time I recorded, 20 something minutes, as well as it has a reliable MB weight) so I guess it is corrupted or the compression failed at some point. I really don’t know, but anyway thanks for your help. I’ll keep trying.
March 26th, 2014 at 6:57 pm
Is the problem happening after you convert the file?
March 26th, 2014 at 7:05 pm
I did not convert anything. Once I save the file after the recording, it’s already a .wav file inside the recorder. Also, the speaker has been broken for months so I can’t reproduced it without copying to my computer first (if that wasn’t the case I’d just reproduce it on the recorder itself and problem solved)
Recording>saving>copy/paste to my computer through the usb connection. This is the process. I never had problemas until this time, I never needed to do anything else and I’ve recorded longer files and everything. I don’t know where the problem is. I guess the recorded failed at some point, but the whole file seems to have been saved.
March 26th, 2014 at 7:57 pm
Sorry Marina, doesn’t sound like something I could fix.
March 27th, 2014 at 2:51 am
It’s ok, I’ll keep trying with other solutions. Thank you for your time.
April 24th, 2014 at 12:33 pm
Hi Deejay –
Just wanted to quickly ask if you have any suggestions for recovering mp3 files corrupted in this way. My H2 was cut off from power before I could save the file, and it’s showing as a Okb mp3 file. Am I out of luck since it’s a compressed format?
Thanks much –
Micah
April 24th, 2014 at 2:01 pm
I don’t record in MP3 format in my field recorders, but if it says 0kb file size you might be out of luck depending on the mp3 recording format.
November 28th, 2014 at 4:10 am
Hi! Thanks for the tip – it worked and I recovered my audio files.
I have just one problem that is driving me crazy: I filmed a conference and I recorded the audio both on camera (for reference) and on an external audio recorder. I had to recover the sound from the external recorder, and now I have it – great. Only problem is that when I lay the tracks on the video (each sound track is about 1h long) the recovered sound slowly goes out of sync. I tried to listen to the whole tracks too spot brief moments of missing audio – but still I couldn’t help noticing that it goes out of sync little by little. I tried to adjust the speed but clearly that’s not the way to go- I can’t find the right speed and anyway it doesn’t sound right. It may be worth mentioning that the tracks I did not have to recover (because the file was successfully saved by the external recorder) do not go out of sync.
Any idea of how I can fix this?
Thanks!
December 16th, 2014 at 9:00 am
Hello, I wanna ask if the wav file (featuring a conversation) that I had recorded can be recovered, as I stupidly converted it to become an mp3 file? When I played it, all I could hear were noisy whizzes. Hope this is not a hopeless case.Thank you.
February 8th, 2015 at 10:37 pm
Thanks for the wonderful tip. VLC continues to impress me. Your tip avoided the loss of a 1.2GB file that someone else recorded; he forgot to press the STOP button on our church’s audio recorder before powering it off. You saved the day!
May 8th, 2015 at 9:53 am
Greetings,
The older I get the more I appreciate knowledgeable people – especially those who share their knowledge. The information you provided allowed me to recover 3 hours of irreplaceable research field recordings. Thanks. Really. Thanks!
November 24th, 2015 at 7:57 am
Hello,
I have a bunch of .sd2 files that says header info missing.
They are about 40mb.
would it be possible to use soundhack and copy the header info from another good file and paste into the the bad?
If so I have hex editors,,, but what does the header info look like?
Another question… have files that I have no idea what format they are and no header info… Would VLC convert these to what ever I needed?
I have four songs that had gotten corrupt after a drive failure..
Thank you for your time!
Bob
December 5th, 2015 at 10:38 pm
Hello,
Any info if VLC could repair corrupted audio files from a HDD crashing? These are audio files from an album recorded using Sonar Platinum sampled at 44.1 16 bit rate. Noticed the audio file names info changed from having comas(,) into underscores(_) causing my DAW to loading errors. Any suggestion on how to fix this issue would be greatly appreciated.
April 12th, 2016 at 5:15 pm
thanks so much – worked like a charm
June 6th, 2017 at 2:15 pm
You saved my evening! 🙂
I just recorded an hour long conversation with my aging mother about our family’s past, and the field recorder shut down abruptly as the batteries depleted. The file wouldn’t play, but following your guide I was able to repair the file with VLC. I’m so grateful for this, as the content of the recording is irreplaceable and has great sentimental value. Thank you so much for this guide!
June 23rd, 2017 at 7:27 am
Thank you so much – you saved my day! <3