Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to extract Cue Sheet from a FLAC file? (Read 7866 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to extract Cue Sheet from a FLAC file?

On the flac web site it says (in relation to the latest release): 
Quote
New CUESHEET metadata block for storing CD TOC and index point information. Now a CD can be completely backed up to a single FLAC file for archival.


Which sounds great, but how can I extract the cue sheet back to a text file so that I can burn the archived CD image?

TIA
Foobar 9.6.9, FLAC 1.2.1b, EAC 0.99 pb 5
Windows 7 Pro 64-bit

How to extract Cue Sheet from a FLAC file?

Reply #1
metaflac --export-cuesheet-to=nameofnew.cue  albumwithcueinit.flac
--
Eric

How to extract Cue Sheet from a FLAC file?

Reply #2
Quote
metaflac --export-cuesheet-to=nameofnew.cue  albumwithcueinit.flac[a href="index.php?act=findpost&pid=235310"][{POST_SNAPBACK}][/a]

One "gotcha" in this process is that metaflac doesn't deal with spaces in paths, so if the path or the file name includes any spaces, you'll have to surround the path with quotes, like this:

metaflac -- export-cueshee-to="My Music\Cue files\New Cue File.cue" "Album with cue.flac"

(All on one line, of course)
------- Rick -------
--------------------

How to extract Cue Sheet from a FLAC file?

Reply #3
SPACES?!!! Where is my stick?!?

Ha!
--
Eric

How to extract Cue Sheet from a FLAC file?

Reply #4
spaces have to be dealt with in the shell, it's not really a problem with metaflac.

Josh

How to extract Cue Sheet from a FLAC file?

Reply #5
Quote
spaces have to be dealt with in the shell, it's not really a problem with metaflac.[a href="index.php?act=findpost&pid=235623"][{POST_SNAPBACK}][/a]
You'll note that I never said it was a problem at all, I simply said that metaflac doesn't deal with spaces, which it seems to me is what you're saying, too. :0

Is the problem that the shell splits argv on space boundaries?
------- Rick -------
--------------------

How to extract Cue Sheet from a FLAC file?

Reply #6
Quote
SPACES?!!! Where is my stick?!?[a href="index.php?act=findpost&pid=235619"][{POST_SNAPBACK}][/a]
I'm not sure I understand you, but is your point that one shouldn't create filenames with spaces?  Personally I'm with you on that, but if your files happen to live down a path that includes "Program Files" or "My Music" you're pretty much stuck, to say nothing of filenames created by ripping programs, like Carlos Santana, Mahavishnu John McLaughlin - 1973 - Love Devotion Surrender\04 - Let Us Go Into The House Of The Lord.flac.

Try typing that one a few times while you're trying to get the metaflac syntax down correctly.
------- Rick -------
--------------------

How to extract Cue Sheet from a FLAC file?

Reply #7
Quote
Try typing that one a few times while you're trying to get the metaflac syntax down correctly.


Ha! No thanks. I was just kidding. I don't use spaces, but that's just my preference. To each his own.
--
Eric

How to extract Cue Sheet from a FLAC file?

Reply #8
Quote
Quote
spaces have to be dealt with in the shell, it's not really a problem with metaflac.[a href="index.php?act=findpost&pid=235623"][{POST_SNAPBACK}][/a]
You'll note that I never said it was a problem at all, I simply said that metaflac doesn't deal with spaces, which it seems to me is what you're saying, too. :0

Is the problem that the shell splits argv on space boundaries?

metaflac can deal with spaces it knows about.  most shells use space as a "word" separator ("word" has a formal meaning in shells; arguments are "words"), so it must be escaped or quoted to be kept in an argument.

Josh

How to extract Cue Sheet from a FLAC file?

Reply #9
Quote
metaflac can deal with spaces it knows about.  most shells use space as a "word" separator ("word" has a formal meaning in shells; arguments are "words"), so it must be escaped or quoted to be kept in an argument.[a href="index.php?act=findpost&pid=235876"][{POST_SNAPBACK}][/a]

I see.  It would be impossible to regenerate "words" in the general case, but I wonder if it would be possible, if you knew pretty much what you were expecting, to make a little routine that would paste things back together after the shell mangled them.  Hmm....
------- Rick -------
--------------------

How to extract Cue Sheet from a FLAC file?

Reply #10
I mean, you'd think that a shell that dealt with a filesystem that allowed spaces in filenames would parse command line arguments correctly.  Dammit.
------- Rick -------
--------------------