Help - Search - Members - Calendar
Full Version: batch command to embed CueSheet in FLAC image
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
Wally Walters
I have several dozen single-file FLAC images where the accompanying CueSheet is not embedded, and I wish to write a batch file that will embed the CueSheets unattended. According to multiple posts in the forums, the way to accomplish this is with the command

tag.exe -f "CUESHEET=cue sheet.cue" "flac file.flac"

But all that results is the error message, "Invalid Parameter: f." What am I doing wrong?
trout
the same command :: Tag -f "cuesheet=cue sheet.cue" "flac file.flac" :: worked for me

"Invalid Parameter: f." makes me wonder if you have the correct version of tag.exe
Are you using version 2.0.52 from http://www.synthetic-soul.co.uk/tag/ ?
(or at least version 2.0.40b2 or newer?)
Synthetic Soul
As trout says, you will need my updated version.

If your cue sheets have the same name as your FLAC files, but with a ".cue" exension (e.g.: "myflac.flac" and "myflac.cue") you could easily achieve this by opening a console, navigating to the root folder of all your FLACs, and executing:

CODE
FOR /R %G IN (*.flac) DO TAG.EXE -f "Cuesheet=%~dpnG.cue" "%G"

NB: The above assumes that Tag has been placed in a folder in your PATH, like your Windows folder. If it hasn't, you will need to specify the full path to Tag:

CODE
FOR /R %G IN (*.flac) DO "C:\Program Files\TAG.EXE" -f "Cuesheet=%~dpnG.cue" "%G"

jcoalson
I don't know how tag.exe works but if you use "metaflac --import-cuesheet-from=..." it will also add seekpoints for each index point.
Synthetic Soul
Tag will just add a Vorbis comment.

I'm not sure if it will confuse anything, but it may be nice to use both, although hopefully Josh's suggestion may be adequate on its own.
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.