Help - Search - Members - Calendar
Full Version: Error when creating FLAC "fingerprint" file?
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
M
All right... here's the scenario:

Certain (legitimate) audio trading circles expect a FLAC "fingerprint" file when one is seeding a concert in FLAC format. A "fingerprint" file should be generated via the following line: metaflac --show-md5sum *.flac > fingerprint.txt

Now, if I try that line with metaflac 1.1.0, I get the following message:
CODE
ERROR: reading metadata, status = "FLAC__METADATA_CHAIN_STATUS_ERROR_OPENING_FILE"


But if I try for a single FLAC (metaflac --show-md5sum one-file-at-a-time.flac > fingerprint.txt) it works just fine. Why?

- M.
Amadablam
I believe some people have had problems using wildcards (*) with FLAC under Windows. Perhaps this is related?
M
QUOTE(Amadablam @ Jun 26 2003 - 11:11 AM)
I believe some people have had problems using wildcards (*) with FLAC under Windows.  Perhaps this is related?

I would suspect so, save that I've never had any other problems using wildcards with FLAC under Windows. Apparently there's an altered version of Speek's frontend with this capability, but it's only available as part of an installer from Mike Wren, and includes functionality I don't need (since I've already got everything else scripted with my own batch files). Speek, is there any chance you could make the "custom" version of your frontend available to the rest of the world, and not just those who choose to install a complete third-party package?

- M.
Amadablam
You could also make some sort of for loop that should do the trick, similar to that in the discussion at:

http://www.hydrogenaudio.org/forums/index....ST&f=19&t=10757
M
Heh... I feel foolish. Shoulda thunk of that myself, since it's how I used to structure my batch files. (Too many programs function well without it, now!)

After a few more trials-and-errors, here is the line which produces the expected - and properly formatted - results:
CODE
FOR %%f IN (*.flac) DO metaflac --show-md5sum --with-filename "%%f" >> fingerprint.txt


Sorry I had to show so much ignorance... but perhaps someone else will be able to learn from mine. rolleyes.gif

- M.
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-2008 Invision Power Services, Inc.