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.
Bonus
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
Category: Linux | Tags: ape, cue, id3 tags, music, ogg 6 comments »

August 30th, 2010 at 12:14
Thanks for the recipe! works great on my laptop.
On my desktop it fails because mac (which shnsplit depends on for .ape files) wont’ compile.
October 8th, 2010 at 21:50
Aw, this was a really top quality post. In theory I’d like to write like this too – taking time and true work to build a beneficial article… but what can I say… I procrastinate alot and by no means seem to have a thing done.
November 18th, 2010 at 16:18
Good day! This was a really great post! I come from Milan. I will visit again.
January 8th, 2011 at 14:36
I do not even know how I ended up here, but I thought this post was good. You are going to a famous blogger if you aren’t already
Cheers!
February 11th, 2011 at 11:27
I think your post was very interesting!!! I am going to check this page often!! Put up more posts.
February 28th, 2011 at 13:53
Excellent blog post, I look forward to reading more.