Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I've got a full album flac, and a cue file for it. How can I split this into a flac per track. I'm a KDE user, so I would prefer a KDE/QT way, I would like to see command line and other gui answer's as well, but they are not my preferred method.

share|improve this question

6 Answers 6

Shnsplit can read a cue file directly, which also means it can access the other data from the cue file (not just the breakpoints) and generate nicer filenames than 'split-*.flac':

shnsplit -f file.cue -t %n-%t -o flac file.flac

Granted, this makes it more difficult to use if the original flac file is in the same directory.

share|improve this answer
The most simple solution. – Paulo Fidalgo Jul 24 '13 at 9:32
Fellow debian users: sudo apt-get install cuetools shntool – jwbensley May 3 '14 at 12:47
You probably also want to tag the files with cuetag file.cue [0-9]*.flac – August Karlstrom Aug 28 '14 at 14:41

I only know a CLI way. You will need cuetools and shntool.

cuebreakpoints file.cue | shnsplit -o flac file.flac file.cue "split-*".flac
share|improve this answer
Thanks for this Kambus. I've been using cuebreakpoints file.cue | shnsplit -o flac file.flac for a long time. The 2nd bit is going to help a lot! – boehj Apr 12 '11 at 6:44
cuetag seems to break on filenames containing spaces but after removing them it worked. – scai Nov 20 '13 at 17:40

Flacon is an intuitive open-source GUI that does exactly that: split a FLAC with a CUE.

Flacon extracts individual tracks from one big audio file containing the entire album of music and saves them as separate audio files. To do this, it uses information from the appropriate CUE file.

It supports among other things:

Supported input formats: WAV, FLAC, APE, WavPack, True Audio (TTA).

Supported out formats: FLAC, WAV, WavPack, AAC, OGG or MP3.

Automatic character set detection for CUE files.

To use it you only need to open the *.cue file with flacon, it should then automatically detect the big FLAC file (if not, you can specify this manually), and then you should select FLAC output format (and optionally configure the encoder), and start the conversion process.

enter image description here

share|improve this answer
Welcome to Unix & Linux Stack Exchange! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – slm Nov 3 '13 at 15:55
up vote 2 down vote accepted

If you have cue set to use k3b in in the filetype settings, k3b will automatically split the file if you open the cue file, and allow you to re-rip.

share|improve this answer

if high-quality files are being used, shnsplit is happily erroring out with

shnsplit: error: m:ss.ff format can only be used with CD-quality files

fortunately the flac binary supports and so a script can use cuebreakpoints like this:

for ts in $(cuebreakpoints "${cue_file}"); do
for ((i=0;i<$((${#time[@]}-1));i++)); do
    TRACKNUMBER="$(printf %02d ${trackno})"
    title="$(cueprint --track-number ${trackno} -t '%t' "${cue_file}")"
    flac --silent --exhaustive-model-search --skip=${time[$i]} --until=${time[$(($i+1))]} --tag=ARTIST="${ARTIST}" --tag=ALBUM="${ALBUM}" --tag=DATE="${DATE}" --tag=TITLE="${title}" --tag=TRACKNUMBER="${TRACKNUMBER}" "${aud_file}" --output-name="${TRACKNUMBER}-${title}.flac"
share|improve this answer
Thanks for this! – imiric Mar 7 '14 at 14:16

There is a project that works for several input files: split2flac

From the project description:

split2flac splits one big APE/FLAC/TTA/WV/WAV audio image (or a collection of such files, recursively) with CUE sheet into FLAC/M4A/MP3/OGG_VORBIS/WAV tracks with tagging, renaming, charset conversion of cue sheet, album cover images. It also uses configuration file, so no need to pass a lot of arguments every time, only an input file. Should work in any POSIX-compliant shell.

share|improve this answer

protected by Community Dec 22 '14 at 9:16

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.