Converting APE with CUE to individual FLAC files
aidanjm has written a great post on dealing with ape & cue in his site. If you don't come from there, do check it out!
I made this quick and dirty script for my use:
#!/bin/bash
# Convert APE & CUE to individual flac files, preserving tags.
# assumes each ape & cue are in their own directory.
cuebreakpoints *.cue | shnsplit -o flac *.ape
converted_files=$(echo *.flac | sort)
cuetag *.cue $converted_files
It requires only 1 ape & cue file in each directory; I did this because being a poor scripter it's easier for me to manually move the files when necessary than to write a better script.
I used ExFalso to rename the files after convesion. You can get it from the Ubuntu repos.
Making cuetag work in Ubuntu Gutsy 7.10
This is from the comment by Dmitry in aidanjm's site, but with the " and -- properly written, because wordpress messed them up there (I've lost quite a lot of time because of this stupid error)
You must edit /usr/bin/cuetag and replace (or comment out) the line
METAFLAC="metaflac --remove-vc-all --import-vc-from=-"
with this one:
METAFLAC="metaflac --remove-all-tags --import-tags-from=-"
changed January 9