Split FLAC+cue
Sometimes I come across CDs that have been ripped into a single FLAC file. Players like Foobar2000 list the tracks separately from the cue file. However, unfortunately, MPD does not do this and I have to split the file.
In Linux, the process is quite simple:
-
Install the dependencies:
sudo pacman -S cuetools shntool
-
Split the tracks
cuebreakpoints sample.cue | shnsplit -o flac sample.flac
-
Copy the tags, if any:
cuetag sample.cue split-track*.flac
-
If the cue is not in a separate file but included in the flac file itself, run the following command first:
metaflac --show-tag=CUESHEET sample.flac | grep -v ^CUESHEET > sample.cue