MD5, ST5, FFP checksums

Discuss Max, an open source CD audio extractor and audio converter.
Post Reply
Lunchbox16
Posts: 26
Joined: Sat Jun 06, 2009 6:25 pm

MD5, ST5, FFP checksums

Post by Lunchbox16 » Tue Apr 27, 2010 10:26 pm

I've been using Max for a while, but not exclusively because I haven't found a way to generate ST5 and FFP checksums for WAV and FLAC files, respectively. Is this possible, or is this functionality planned for a future version?

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: MD5, ST5, FFP checksums

Post by sbooth » Wed Apr 28, 2010 1:09 am

FLAC files have a built in MD5 checksum that you can view with the command line tool metaflac, and probably other tools as well.

For WAV Max does not generate the sums, but the code to do so is in Rip so it would not be hard to port it over.

What would you like to do with the checksums?

Lunchbox16
Posts: 26
Joined: Sat Jun 06, 2009 6:25 pm

Re: MD5, ST5, FFP checksums

Post by Lunchbox16 » Wed Apr 28, 2010 1:42 pm

I use the ST5 and FFP checksums as part of my archiving process for CDs and live music shows as a safe-guard against errors or any sort of file corruption.

Right my the archival process looks like this:
Rip CD with XLD (as both WAV and FLAC)
Generate ST5 checksum for wav files, and FFP for FLAC files with xACT
Put FLAC, FFP, and ST5 in a folder; delete WAV files
Open Tag and insert any/all appropriate tags.
Open Max, transcode FLAC files to mp3s for iTunes library.

If Max could generate ST5 and FFP files that would cut out having to use xACT. It would be kind of like Trader's Little Helper.

Lunchbox16
Posts: 26
Joined: Sat Jun 06, 2009 6:25 pm

Re: MD5, ST5, FFP checksums

Post by Lunchbox16 » Sun May 30, 2010 6:11 pm

I was experimenting with Rip today and I realized that it does, in fact, generate ST5 check sums (the Audio MD5 Hash). I like the fact that this information is included in the log file. However, if you want to verify the ST5 values, one cannot simply use the log file. Would it be possible to have an option to create a separate ST5 file with the Audio MD5 hash values in it? If that option was available I'd probably switch to Rip as my main audio ripper.

If you want a better idea of how I do things, see this: http://portablediner.blogspot.com/2010/ ... chive.html

Thanks again for all your work!

User avatar
sbooth
Site Admin
Posts: 2445
Joined: Fri Dec 23, 2005 7:45 am
Location: USA
Contact:

Re: MD5, ST5, FFP checksums

Post by sbooth » Mon May 31, 2010 7:29 pm

Interesting blog post! I'm glad you're also taking a look at Rip.

I couldn't find much documentation on the .st5 file format. Is it just a text file with the MD5 sums and the filenames? Like an oversimplified cue sheet?

Lunchbox16
Posts: 26
Joined: Sat Jun 06, 2009 6:25 pm

Re: MD5, ST5, FFP checksums

Post by Lunchbox16 » Tue Jun 01, 2010 6:40 pm

Steven,
The ST5 file is exactly the same thing as a FFP or MD5 file, except the hash mark is the Audio MD5 and not an MD5 for the entire file. So yes, it is simply a text document that lists the file name and checksum.

Compare the two files below.

This is the FFP file:
01 - Miles Davis - So What.flac:cfefec8df2316fedce1c8d4abdf51a90
02 - Miles Davis - Freddie Freeloader.flac:12c717d0ae7f8c16857f27ba56c80544
03 - Miles Davis - Blue In Green.flac:c750f5384bc6152a84877b299e224c7b
04 - Miles Davis - All Blues.flac:c7bf04f0133419b52be0907e57883ca1
05 - Miles Davis - Flamenco Sketches.flac:d73a562d8dcee54d3df19f90db55d18b
06 - Miles Davis - Flamenco Sketches (Alternate Take).flac:cb776b9b30472899bb065f656c39a04e

This is the ST5 file:
cfefec8df2316fedce1c8d4abdf51a90 [shntool] 01 - Miles Davis - So What.wav
12c717d0ae7f8c16857f27ba56c80544 [shntool] 02 - Miles Davis - Freddie Freeloader.wav
c750f5384bc6152a84877b299e224c7b [shntool] 03 - Miles Davis - Blue In Green.wav
c7bf04f0133419b52be0907e57883ca1 [shntool] 04 - Miles Davis - All Blues.wav
d73a562d8dcee54d3df19f90db55d18b [shntool] 05 - Miles Davis - Flamenco Sketches.wav
cb776b9b30472899bb065f656c39a04e [shntool] 06 - Miles Davis - Flamenco Sketches (Alternate Take).wav

Currently I use xACT to generate and, if needed, verify these files. I don't know any thing about programming, so I don't know how difficult it would be to generate something like this as part of a work flow.

When I was testing out Rip this weekend, the shntool md5 (ST5) hashes generated by xACT were the same as the Audio MD5 generated in Rip.

Post Reply