Splitting ape or flac
Splitting
To split an audio file accompanied by a CUE sheet into tracks in .wav format, use the shnsplit command:
$ shnsplit -f file.cue file.ape
To split .bin file with CUE sheet into tracks in .wav format:
$ bchunk -v -w file.bin file.cue out
Format for output file names can be specified with the -t
option (%n
for track number, %t
for title):
$ shnsplit -f file.cue -t "%n %t" file.ape
shnsplit supports on-the-fly encoding to many lossless formats (see shntool(1)
for the full list). For example to encode split tracks in the FLAC format:
$ shnsplit -f file.cue -o flac file.ape
Encoding options, including the encoder itself, can be specified with the -o
parameter (see shntool(1)
for details):
$ shnsplit -f file.cue -o "flac flac -s -8 -o %f -" file.ape
The formats supported by shntool and default encoder options can be view with the shntool -a
command. If the desired format is not supported by shntool, it can be specified manually. For example, to encode split tracks directly into the Ogg Vorbis format:
$ shnsplit -f file.cue -o "cust ext=ogg oggenc -b 192 -o %f -" file.ape
Comments