Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

5 Answers 5

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
add comment

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
add comment

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

http://www.medieval.it/cuesplitter-pc/menu-id-71.html

share|improve this answer
add comment

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

#!/bin/bash
# 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"
#
# TODO:
# convert tags to utf-8 - if they are not


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


# parsing 2nd arg:
frmt="$2"
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
done


# 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
add comment

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: http://www.softrm.com/ape-ripper.htm

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
add comment

Your Answer

 
discard

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.