jump to navigation

Split one flac (+ cue) file into separate tracks (update: including embedded cue files) February 9, 2009

Posted by claudio in Uncategorized.
Tags: , ,


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).


1. kislosh - May 22, 2009

try CueTools, quite easy, w/ AccurateRip support

claudio - May 24, 2009

CueTools seems to be a MS Windows program.

2. OpenSource - June 28, 2009

Exactly what I’ve need:)
thanks for the update (including embedded cue files)

3. fatih - December 10, 2009

thank you ver much for info.

4. Graham Thirkill - January 23, 2010

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.

5. itay - February 8, 2010

CueTools is the solution graham.
just make sure in “mode” you selected “tracks” NOT “Embedded”

6. linuxnoob - October 22, 2010

instead of typing and autocompleting the filenames of the cue and fla, try:

cuebreakpoints *.cue | shnsplit -o flac *.flac

7. Mike - October 26, 2010

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.

8. thomas - November 8, 2010

“cuetag” didn’t work for me (command not found). the correct command was “cuetag.sh”. thanks for the short overview, very helpful

9. idl3mind - December 11, 2010

I use xACT on my Macbook

10. Rick - February 19, 2011

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!

11. Pam - April 17, 2011

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!!!!!!!

12. Jon L. - June 2, 2011

Use Flacon instead, has gui, is in Ubuntu Software Center, works well on FLAC/APE/CUE.

claudio - June 2, 2011

I don’t find in the software center of Ubuntu 11.04. Is the name correct?

13. waltaro - June 10, 2011

be sure to do the following.

sudo add-apt-repository ppa:flacon/ppa
sudo apt-get update
sudo apt-get install flacon

14. Rashid - January 21, 2012

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

claudio - January 21, 2012

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!

15. Kravatsmoke - May 26, 2012

Thanks Rashid! K3B definitely made my life easier! Smart solution!

16. trybik - June 7, 2012

Very helpful! If you’re installing from MacPorts don’t forget to also install “flac” port.

17. May - September 6, 2012

thanks for this! and the flac advice for mac os x!

18. Mario G.H. - November 5, 2012

Aside of the sad comments you got, thanks for a nice and clean indication on how to split flac files the hardcore way.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 197 other followers

%d bloggers like this: