Split Full-Disk FLAC file

From Nearline Storage
Jump to: navigation, search

Split the album flac file into separate tracks:

 $ cuebreakpoints sample.cue | shnsplit -o flac sample.flac

Copy the flac tags (if present):

 $ cuetag.sh sample.cue split-track*.flac

If the cue file is not a separate file, but included in the flac file itself, then extract it:

 $ metaflac –export-cuesheet-to=sample.cue sample.flac
 $ metaflac --show-tag=CUESHEET sample.flac | grep -v ^CUESHEET > sample.cue
 $ metaflac --show-tag=COMMENT sample.flac | sed -e ‘s/CUESHEET=’//g’ > sample.cue