Sat, 26 Sep 2009

Splitting albums with cue files

Keywords: split cue flac mp3 linux ubuntu ape mac

In order to split a flac file of an entire album into its constituent parts:

$ sudo aptitude install cuetools shntool flac
$ shnsplit -o flac -t '%a %n %t' -f *.cue *.flac

You can do something similar with other lossless formats.

To do the same with an mp3 file:

$ sudo aptitude install mp3splt
$ mp3split -c *.cue *.mp3

Obviously you'll need to be a little more specific if you have more than one album in a directory.

To split ape files, you'll need to build the ape decoder:

$ sudo aptitude install nasm
$ wget
$ bzcat mac-3.99-u4-b5.tar.bz2 | tar xvf -
$ cd mac-3.99-u4-b5
$ ./configure --prefix=/usr/local
$ make
$ sudo make install

The copy of the source here is a slightly patched version to explicitly cast in four places where gcc was complaining.

[/unix] permanent link

September 2017
Sun Mon Tue Wed Thu Fri Sat