Let the files be processed in Debian GNU/Linux environment (sample commands tested in Debian 7.0 "Wheezy", and should also work for all Debian-based distros, e. g. Ubuntu, Mint etc.; Bash shell is assumed to be installed & used by default).
First of all, you should install all the necessary tools: FLAC (for decoding FLAC to WAV), LAME (to convert WAV to MP3), cuetools (to parse the CUE sheet) and shntool (to cut the big WAV file into smaller tracks according to the CUE sheet breakpoints).
# apt-get install flac lame cuetools shntool
$ flac -d MyMusic.flac
$ cuebreakpoints MyMusic.cue | shnsplit MyMusic.wav
$ rm MyMusic.wav
$ for file in split-track*.wav; do lame -V0 $file; done
$ rm split-track*.wav
After conversion, you can process
split-track*.mp3
files with your favourite media tagger application.Enjoy.
Thank you. I found that you can skip a couple of steps by using shnsplit with these modifiers:
ReplyDelete$ shnsplit -f MyMusic.cue -t "%n %t" -o "cust ext=mp3 lame -V0 - %f" MyMusic.flac
$ cuetag MyMusic.cue *.mp3