17 March 2009
Updated: 09 September 2015
mp3splt -c file.cue bigfile.mp3
For FLAC|wav you'll need shnsplit from shntool package, and cuebreakpoints from cuetools package.
cuebreakpoints <file.cue> | shnsplit -o flac <bigfile.flac>
Note: for *.ape files you'll need to install an additional package for shnsplit called mac.
Because the resulted files don't have tag information, you can use cuetag to add this info:
cuetag <file.cue> split-track*.flac
Cuetag works with flac, ogg and mp3 files.
To fix this error, several steps are needed:
Remove the current shntool package and install one from these sources . You have to compile it, but it´s not a biggie, and it will treat nice that error (making it a warning, beside some math).
This will get rid of the last file conversion error.
So, open the cue file with a text editor and add a dummy track by the end with the INDEX set to the total time of the flac file (you have to use a player or similar to get this).
.... TITLE "Sad Lover" INDEX 01 30:35:62 TRACK 10 AUDIO TITLE "Rock Out" INDEX 01 34:04:07 TRACK 11 AUDIO TITLE "Dummy" INDEX 01 39:47:00
This time with a little twist:
cuebreakpoints input.cue | sed s/$/0/ | shnsplit -o flac input.flac