Split one flac (+ cue) file into separate tracks (update: including embedded cue files) February 9, 2009
Posted by claudio in Uncategorized.Tags: flac, GNU/Linux, music
trackback

You may have backupped your music cd’s using a single flac file instead of a file for each track. In case you need to split the cd-flac, do this:
Install the needed software:
$ sudo apt-get install cuetools shntool
Split the album flac file into separate tracks:
$ cuebreakpoints sample.cue | shnsplit -o flac sample.flac
Copy the flac tags (if present):
$ cuetag sample.cue split-track*.flac
The full howto can be found here (aidanjm).
Update (April 18th, 2009):
In case the cue file is not a separate file, but included in the flac file itself do this as the first step:
$ metaflac --show-tag=CUESHEET sample.flac | grep -v ^CUESHEET > sample.cue
(NB: The regular syntax is “metaflac –export-cuesheet-to=sample.cue sample.flac“, however often the cue file in embedded in a tag instead of the cuesheet block).
try CueTools, quite easy, w/ AccurateRip support
http://www.hydrogenaudio.org/forums/index.php?showtopic=66233
CueTools seems to be a MS Windows program.
Exactly what I’ve need
thanks for the update (including embedded cue files)
thank you ver much for info.
I have downloded a CD in flac format but the download is continuous.
No gaps between tracks. Can I split the tracks so I can see and play them individually. This is on a Mac running Snow Leopard. I have already converted the CD to .mp3 format. Pulling my hair out.
CueTools is the solution graham.
just make sure in “mode” you selected “tracks” NOT “Embedded”
instead of typing and autocompleting the filenames of the cue and fla, try:
cuebreakpoints *.cue | shnsplit -o flac *.flac
Very informative. It got me most of the way there – although I noticed it cuts off the first line of the CUE comment, which is unacceptable if you have anything important there.
So instead of using grep I used sed.
metaflac –show-tag=COMMENT | sed -e ‘s/CUESHEET=’//g’ > file.cue
Probably not the most efficient way, but… I’ve already hacked up cuetag to support pregap (hidden) tracks.
“cuetag” didn’t work for me (command not found). the correct command was “cuetag.sh”. thanks for the short overview, very helpful
I use xACT on my Macbook
i have picked up a few albums in flac (eac). i am currently using final media player to play them. i cant figure out how to play the whole album one song after the other with one click. i can only play one song at a time. please help im tearing my hair out! also what do you think about the vlc player? any other players you all like better? free Is best but not Necesary. thank alot!
Hi Rick! I’m having the same problem! SO frustrating!!!!! Just wondering if you’ve found a solution yet? I’d really like to avoid throwing my computer out the window if I can. I’ve already torn most of hair out trying to fix the problem! Hahaha……HELP ME PLEASE!!!!!!!
Use Flacon instead, has gui, is in Ubuntu Software Center, works well on FLAC/APE/CUE.
I don’t find in the software center of Ubuntu 11.04. Is the name correct?
be sure to do the following.
sudo add-apt-repository ppa:flacon/ppa
sudo apt-get update
sudo apt-get install flacon
I found it most simple to use the K3B to separate the track… super fast and all the song info is saved as well.
1. Select .cue for burning
2. Menu bar > Project > Convert Tracks > Choose Settings > Done
While I don’t use KDE nowadays, I switched to K3B because the Ubuntu default gtk DVD burner was rather buggy. I didn’t know about the feature. Thx!
Thanks Rashid! K3B definitely made my life easier! Smart solution!
Very helpful! If you’re installing from MacPorts don’t forget to also install “flac” port.
thanks for this! and the flac advice for mac os x!
Aside of the sad comments you got, thanks for a nice and clean indication on how to split flac files the hardcore way.