In windows command line: I have a wav file and would like to see what the flac fingerprint would be. To do this I run flac to encode the wav file and write the flac file to the hard disk. I then run metaflac to read the flac file and display the fingerprint. Is there an existing way or other utility to do this without generating the flac file on the hard disk. I would think it could be quicker and save time without writing the flac file to the hard disk.
> In windows command line: > > I have a wav file and would like to see what the flac fingerprint would be. > > To do this I run flac to encode the wav file and write the flac file to the > hard disk. I then run metaflac to read the flac file and display the > fingerprint. > > Is there an existing way or other utility to do this without generating the > flac file on the hard disk. I would think it could be quicker and save time > without writing the flac file to the hard disk.Can't you generate the st5 file for the wav file? If I recall correctly st5=ffp for flac files.
Great info. I found some descriptions of st5 (md5 fp) and ffp, where I assume that "fp" is just a Taper abbreviation for "fingerprint" - or signature as it's called in the flac header. However, I could not find these utilities or source code. What I found looked like instructions for a gui-based program. I think it would be easier to support Mac if st5 were available as an open source Unix command-line code, which would include Mac OS X. I did a little research, and I am concerned that md5check computes an md5 signature for the entire wav file, not just the audio. Thus it won't compare with the ffp. Apparently, xACT allows you to create the st5 (shn md5) files. But the original poster and I want a command-line solution to create an st5 for comparison against metaflac's report. I think I have xACT, but I don't want to be grabbing the mouse and clicking dialogs when I want to check a whole directory of file signatures. Any Tapers around? Maybe someone can clarify this for us newcomers to st5. Brian On Feb 8, 2008, at 00:01, rappard@dds.nl wrote:> I have a wav file and would like to see what the flac fingerprint > would be. > > To do this I run flac to encode the wav file and write the flac > file to the > hard disk. I then run metaflac to read the flac file and display the > fingerprint. > > Is there an existing way or other utility to do this without > generating the > flac file on the hard disk. I would think it could be quicker and > save time > without writing the flac file to the hard disk.Can't you generate the st5 file for the wav file? If I recall correctly st5=ffp for flac files.
Jeff, The MD5 signature is computed from the unencoded audio data, so you do not need any FLAC code to generate it from a wav file. But I don't think there is any existing utility to compute this value. Most MD5 utilities look at the entire file, not just the audio data. So you would need some code that can open a wav file, isolate the audio samples, and compute the MD5 signature. I believe that the bit depth and number of channels has no bearing on the signature, because MD5 just looks at a sequence of bytes. This means a very simple program could handle it without complete wav format parsing. Just a chunk reader looking for 'data' and then printing the MD5 result. You are correct that it would be much faster not to do the compression, especially since the uncompressed audio is all that is needed. Perhaps someone could write a small program that would live in the 'examples' directory of the flac source code, and use the MD5 subroutine from libFLAC. Sorry for the [flac-dev] answer on the [flac] list. Brian Willoughby Sound Consulting On Jan 31, 2008, at 18:48, Jeff wrote: In windows command line: I have a wav file and would like to see what the flac fingerprint would be. To do this I run flac to encode the wav file and write the flac file to the hard disk. I then run metaflac to read the flac file and display the fingerprint. Is there an existing way or other utility to do this without generating the flac file on the hard disk. I would think it could be quicker and save time without writing the flac file to the hard disk.
Thanks for all the responses to my question. I think I can use shntool hash option for my project I did not find in the shntool documentation or flac documentation that the hash or st5 always would match the flac fingerprint. But at least in a couple tests I did they matched. And I found some more comments around the internet indicating they were the same. -----Original Message----- From: rappard@dds.nl [mailto:rappard@dds.nl] Sent: Friday, February 08, 2008 12:01 AM To: Jeff Cc: Flac@xiph.org Subject: Re: [Flac] how to get flac fingerprint from a wav?> In windows command line: > > I have a wav file and would like to see what the flac fingerprint wouldbe.> > To do this I run flac to encode the wav file and write the flac file tothe> hard disk. I then run metaflac to read the flac file and display the > fingerprint. > > Is there an existing way or other utility to do this without generatingthe> flac file on the hard disk. I would think it could be quicker and savetime> without writing the flac file to the hard disk.Can't you generate the st5 file for the wav file? If I recall correctly st5=ffp for flac files.