Help - Search - Members - Calendar
Full Version: wvgain.exe -- Will it complete on a corrupt WavPack file?
Hydrogenaudio Forums > Lossless Audio Compression > WavPack
sidewalking
I currently run all three WavPack binaries during encoding and am wondering if maybe the third one isn't needed, perhaps? Here is what I process for my encodes (in this order):
  1. wavpack.exe (encode)
  2. wvgain.exe (calculate and insert Replay Gain values in the tags)
  3. wvunpack.exe -v (to verify integrity)

I guess this is probably the most complete and thorough way to ensure my Wavpack file(s) are in good shape, but I wonder if wvgain.exe will not complete successfully on a file that is (for some reason) corrupt. If so, technically, it is validating that the file can be read/decoded properly. If that is the case, I can save a few moments of encoding each time by eliminating the third step and my files should be fine as long as the wvgain.exe process finished without error.

Does anyone have any experience here?

Thanks,
Scott
bryant
Hi Scott! smile.gif

I checked the code for wvgain and it will definitely return an error code if it encounters any error in decoding (including crc errors). In album mode it will terminate after the file with an error (and not write any ReplayGain info); otherwise it will process the rest of the files, but still return an error at the end of the batch.

In case you'd like to experiment with this, I am attaching a WavPack file that contains 4 errors that I use for my testing.

David
sidewalking
QUOTE (bryant @ May 2 2009, 00:34) *
I checked the code for wvgain and it will definitely return an error code if it encounters any error in decoding (including crc errors). In album mode it will terminate after the file with an error (and not write any ReplayGain info); otherwise it will process the rest of the files, but still return an error at the end of the batch.

Excellent - I figured this may be the case. Thanks for checking and getting back to me so quickly! smile.gif

QUOTE (bryant @ May 2 2009, 00:34) *
In case you'd like to experiment with this, I am attaching a WavPack file that contains 4 errors that I use for my testing.

This will be useful - I will try it out and save it for future testing as well.

Thanks for the help, David. You are always great to work with!

Scott
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.