Help - Search - Members - Calendar
Full Version: Calculating raw PCM audio CRC checkum with CLI application
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
odyssey
I'm scripting a few tools to help me with a few things, and I'd like a CLI tool that calculates the audio checksum of a file, preferably ending up with the same checksum that EAC provides for a ripped track.

Does anyone know of such tool? Also there might be some trickyness in that EAC does not include zero-bytes in it's calculation IIRC (or was it dBPA?)
Sebastian Mares
I think EAC uses plain CRC32 calculation with a different initialization vector which I currently forgot.
Synthetic Soul
http://www.hydrogenaudio.org/forums/index....showtopic=57306

These may be of interest also:

http://www.hydrogenaudio.org/forums/index....showtopic=52767

http://www.hydrogenaudio.org/forums/index....showtopic=14998

Edit: FYI, some results from one test using wavcrc32 on the command line:

CODE
EAC extraction logfile from 2. July 2007, 11:01 for CD
The Go! Team / Grip Like A Vice

Used drive  : HL-DT-STDVDRAM GSA-4167B   Adapter: 1  ID: 0
Read mode   : Secure with C2, accurate stream, NO disable cache
Read offset correction : 667
Overread into Lead-In and Lead-Out : No

Used output format : C:\Program Files\REACT2\REACT.exe   (User Defined Encoder)
                     128 kBit/s
                     Additional command line options : REACT %o %s %d "%a" "%g" "%t" "%n" "%x" "%y" "%m" "%e" "%f" "%b" %r

Other options      :
    Fill up missing offset samples with silence : Yes
    Delete leading and trailing silent blocks : No
    Installed external ASPI interface


Range status and errors
Selected range
     Filename C:\Documents and Settings\Neil\My Documents\Audio\The Go! Team - Grip Like A Vice.wav

     Peak level 98.0 %
     Range quality 100.0 %
     CRC 1566C338
     Copy OK

No errors occured

End of status report

CODE
EAC wavcrc32 v0.22 (c) ]DichlofoS[ Systems, 2007
thanx to: BakLAN, siro and other beta-testers/contributors!
file opened ok
RIFF header checked ok
please wait while couning checksums...
processing 17356584 samples...
file closed ok
--- used in EAC:
generic: grabbing, "no use..." off [all bytes]            : 1566C338.
generic: grabbing, "no use..." on [word nulsamples l/r]   : 05A0D3F8.
waveditor [word nulsamples l]                             : 81AB1F56.
--- no used in EAC, only for reference:
byte ignore zeros                                         : FA5F2C07.
dword nulsamples                                          : 052A446A.
---
time elapsed: 1312 ms
odyssey
Awesome cool.gif Thanks for the link(s). Also thanks for the handy tag.exe wink.gif
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.