Split APE images into ogg files and add tags from CUE

Turning your APE whole disc into single ogg files with ID3 tags is easy and takes only a few steps. You'll need the following programs to complete this tutorial: cuetools, shntool, vorbis-tools.

aptitude install cuetools shntool vorbis-tools

First, move into the folder with the APE disc. Second, split the disc into tracks.

cuebreakpoints *.cue | shnsplit -o wav *.ape

You'll find split-track.wav files in the folder. Note: you can you change the "split-track" with the "-a" option. Next you'll encode the wav files as ogg files with a 256 bitrate.

oggenc -b 256 *.wav

Then you can remove the wav files.

rm split-track*.wav

Last you'll add the ID3 tags to the ogg files. (use code if you haven't named the ogg files something else)

cuetag *.cue split-track*.ogg

Note: don't forget to remove the unneeded ape and cue files.


If you want to complete this task in one line of code, use the following:

cuebreakpoints *.cue | shnsplit -o wav *.ape ; oggenc -b 256 *.wav ; rm split-track*.wav ; cuetag *.cue split-track*.ogg