wavfix icon indicating copy to clipboard operation
wavfix copied to clipboard

Wavfix doesn't fix the whole file

Open ryeethere opened this issue 2 years ago • 5 comments

When running the program, wavfix only fixes a percentage of the file. For example, a 55 minute wav file (951.1 MB) only fixes 2:29 of it (also 951.1 MB) with the rest still lost.

ryeethere avatar Dec 06 '22 16:12 ryeethere

Thank you for reporting back. Can you share wavfix output ?

agfline avatar Dec 06 '22 17:12 agfline

Here is what I see:

| [w] Wrong RIFF size: 0000000000 B + 8 [file size: 0951140352 B;] | Current file structure : | ====================== | chunk [offset: 0000000012; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000036; size: 0000000858 + 4 + 4;] | <DMC > chunk [offset: 0000000902; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000926; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0000000934; size: 0042854488 + 0 + 0;] | <21P4> chunk [offset: 0042855430; size: 0732840487 + 4 + 4;] odd w/ pad | [NULL] chunk [offset: 0775695925; size: 0175444435 + 0 + 0;] odd w/ pad | | [i] Checking chunk.. | | Chunk size is 0 byte. That is very unlikely.. | | A block of 42854488 unknown bytes comes after chunk. | | Assume those are audio data. Merging them with chunk.. | | done. | | Recovered file structure : | ======================== | chunk [offset: 0000000012; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000036; size: 0000000858 + 4 + 4;] | <DMC > chunk [offset: 0000000902; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000926; size: 0042854488 + 4 + 4;] | <21P4> chunk [offset: 0042855422; size: 0732840487 + 4 + 4;] odd w/ pad | [NULL] chunk [offset: 0775695917; size: 0175444435 + 0 + 0;] odd w/ pad | [w] 1 unknwon bytes block remains. | Some programs like Pro Tools use wrong formated files | like this ( <DIGI> chunk size missing 1 byte in PT ), | so we wont correct it. Yet it should play fine anyway. | | [i] Saving repaired file to '/Volumes/Fall 2022/2022_11_21_REPAIRED.wav' ADDING PADDING BYTE ADDING PADDING BYTE | File successfully recovered.

ryeethere avatar Dec 06 '22 17:12 ryeethere

Your file structure seems quite weird, maybe that's a bug or maybe it is a new recording error I haven't implemented yet. Can you send me your file so I can work on it ? I know it's quite big, but I wont be able to help otherwise.

agfline avatar Dec 06 '22 17:12 agfline

@agfline output below for a failure - WAV file is able to open and has time, but inside hex editor shows massive chunks of 00s in data making me believe the audio is unrecoverable. any thoughts?

Processing 'host_011.wav' | Current file structure : | ====================== | chunk [offset: 0000000012; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000036; size: 0065484970 + 4 + 4;] | <LIST> chunk [offset: 0065485014; size: 0000000076 + 4 + 4;] | chunk [offset: 0065485098; size: 0000000602 + 4 + 4;] | <iXML> chunk [offset: 0065485708; size: 0000001443 + 4 + 4;] odd w/ pad | [NULL] chunk [offset: 0065487159; size: 0000000749 + 0 + 0;] odd w/ pad | chunk [offset: 0065487916; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065487924; size: 0000000036 + 0 + 0;] | chunk [offset: 0065487968; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065487976; size: 0000001686 + 0 + 0;] | chunk [offset: 0065489670; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065489678; size: 0000002689 + 0 + 0;] odd w/ pad | | [i] Checking chunk.. failed.

C:\Users\DeFiZooOG\Downloads\wavfix-0.1-win64.exe (process 25756) exited with code 0. To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. Press any key to close this window . . .

DeFiMoney-Printer avatar Mar 02 '23 09:03 DeFiMoney-Printer

Re-ran the process with a different version of same file which I believe was the original (un-edited HEX) - still errors and fails but slightly different outcome

Processing 'host_011.wav' | Current file structure : | ====================== | chunk [offset: 0000000012; size: 0000000016 + 4 + 4;] | chunk [offset: 0000000036; size: 0065484970 + 4 + 4;] | <LIST> chunk [offset: 0065485014; size: 0000000076 + 4 + 4;] | chunk [offset: 0065485098; size: 0000000602 + 4 + 4;] | <iXML> chunk [offset: 0065485708; size: 0000001443 + 4 + 4;] odd w/ pad | [NULL] chunk [offset: 0065487159; size: 0000000749 + 0 + 0;] odd w/ pad | chunk [offset: 0065487916; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065487924; size: 0000000036 + 0 + 0;] | chunk [offset: 0065487968; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065487976; size: 0000001686 + 0 + 0;] | chunk [offset: 0065489670; size: 0000000000 + 4 + 4;] | [NULL] chunk [offset: 0065489678; size: 0000002689 + 0 + 0;] odd w/ pad | | [i] Checking chunk.. failed.

C:\Users\DeFiZooOG\Downloads\wavfix-0.1-win64.exe (process 28380) exited with code 0. To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. Press any key to close this window . . .

DeFiMoney-Printer avatar Mar 02 '23 09:03 DeFiMoney-Printer