Monthly Archives: August 2015

Convert .ape files to multiple .mp3 (or .ogg, or .flac, or…)

If you want to convert an .ape file to multiple files in other formats, in Linux you can do:
ffmpeg -i input.ape output.wav
(the above command will convert the track to .wav, a lossless conversion)
bchunk -w output.wav input.cue track
(the above command will split the tracks, one in each file)

Now you can convert the resulting files using the encoder you like (lame, oggenc, flac…):
oggenc track*.wav
for i in track*.wav ; do lame "$i" "$i".mp3 ; done
for i in track*.wav ; do flac "$i" "$i".flac ; done