Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a whole audio CD ripped to single audio file in MonkeyAudio (.ape) format, together with .cue and .log files (using Exact Audio Copy, from comment in .cue file).

How would one split this one large audio file into MP3 files of individual tracks, best if with correct ID3 information from .cue file?

share|improve this question
up vote 2 down vote accepted

I use cue splitter, works like a charm, Windows only

share|improve this answer
That was the program I used, though cuesplitter would also work. – Jakub Narębski Nov 12 '14 at 10:57

you can use cuetools to do it - load up the cue file or ape file with the other one in the same directory, select tracks for cue style and mp3 output and it'll automate the whole process.

share|improve this answer
Thanks Journeyman, this answer should be accepted. – anstosa Dec 15 '12 at 3:01

On Linux, you could use mac to dump the .ape into .wav, then bchunk to split the big .wav file into tracks using information from the .cue file.

.wav to .mp3 can be done with lame/ffmpeg.

I'm pretty sure there must be shellscripts that automate the whole process (including the population of ID3 tags), but finding them is a trivial google task, since now you know a lot of keywords.

As you could see, I assumed Linux, if you want to do it using another operating systems, consider to add the os name as tag, to get more precise answers.

share|improve this answer

Here's the script I use (its dependences are in the comments):

# ll-cue2mp3-320.bash
# cue and audio file basename must be the same. Usage:
# ll-cue2mp3-320.bash `basename *cue .cue`
# It makes mp3 folder in the dir containing rip, put splits
# there in the format 'trackNumber - trackTitle', and convert splits
# to mp3s. Tags are not transfered to the newly born mp3s.
# You can specify the this format with a second arg. Default value
# is '%n - %t'. Other options (them are lltag options):
# %a means ARTIST 
# %t means TITLE 
# %A means ALBUM 
# %n means NUMBER 
# %g means GENRE 
# %d means DATE 
# %c means COMMENT 
# %i means that the text has to be ignored 
# %F means the original basename of the file 
# %E means the original extension of the file 
# %P means the original path of the file 
# Dependences: lltag, lame, cuetools, shntool, flac, wavpack,
# parallel, ape support (if you're going to split ape files)

# Don't forget to put input args in quotes, e.g:
# ll-cue2mp3-320 "name of the cue file" "%a - %t"
# convert tags to utf-8 - if they are not

# parsing 1st arg:
if [ -e "$fl".flac ]; then
elif [ -e "$fl".ape ]; then
else [ -e "$fl".wv ]

# parsing 2nd arg:
frmt=${2:-"%n - %t"}

# splitting the dump:
mkdir mp3

cuebreakpoints "$fl".cue | shnsplit -o flac -d mp3 -a split "$fl".$ex && \
    cuetag "$fl".cue mp3/split*\.flac 

cd mp3

# renaming splits basing on tags:
for i in `ls`; do
    lltag --yes --no-tagging --rename "$frmt" $i

# converting splits to mp3:
parallel -j+0 flac -d {} ::: *\.flac
parallel -j+0 lame --cbr -b 320 -q 0 {} ::: *\.wav

find . -name "*.flac" | parallel -j+0 rm
find . -name "*.wav" | parallel -j+0 rm

rename 's/\.wav//' *

# done!
share|improve this answer

On Ubuntu 14.04 I was getting the error:

shnsplit: warning: failed to read data from input file using format: [ape]
shnsplit:          + you may not have permission to read file: [example.ape]
shnsplit:          + arguments may be incorrect for decoder: [mac]
shnsplit:          + verify that the decoder is installed and in your PATH
shnsplit:          + this file may be unsupported, truncated or corrupt
shnsplit: error: cannot continue due to error(s) shown above

I solved the problem with:

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

And then the following command works:

shntool split -f *.cue -o flac -t '%n - %p - %t' *.ape

flacon is a GUI for shntool, but it comes with all the codecs it needs...

In particular, the flacon PPA furnishes the mac package (Monkey's Audio Console), on which flacon depends, which has the mac CLI tool, which seems to be the main missing ingredient.

share|improve this answer

You can use Ape Ripper to extract audio tracks from Ape image with cue file, Ape Ripper can also convert audio tracks to MP3 files with ID3 tags.

Product URL:

Ape Ripper is a shareware, you can process 3 Ape images with trial version.

share|improve this answer
The OP is asking about splitting the .CUE file – Canadian Luke Jul 30 '13 at 3:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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