Commandline with SoX if you have no cuefile
TRIM AND SPLIT AUDIO
sox filename.flac 1.flac --show-progress trim 0 02:00 && sox filename.flac 2.flac --show-progress trim 02:00 01:13
on a file called filename lasting 3:13
if you wish to split in 2 files one 2 min and one 1:13
================================================== =======================
yes flacon is good too and cokeid split-lossless script too bOth of these require a cuefile. They are for splitting single file lossless albums if that is what you are after shnsplit is clumsier than those 2; anyway i put the info for that too further down ; flacon is really good
=================
if one wants to use shnsplit and you have a cuefile [answer to your original question]
you need
Code:
sudo apt-get install cuetools
Shnsplit requires a list of break-points with which to split an audio file. Conveniently, cuebreakpoints prints the break-points from a cue or toc file in a format that can be used by shnsplit. You can pipe the output of cuebreakpoints to shnsplit as follows:
Code:
cuebreakpoints sample.cue | shnsplit -o flac sample.flac
In this example, a flac file called “sample.flac” is split according to the break-points contained in “sample.cue” and the results are output in the flac format.
The output file format is specified via the “-o” option. If you don’t specify an output format your split files will be in shntool’s default format (i.e., wave files, “wav”).
you can also use -o wv -o shn -o ape
here is all the info you need
Bookmarks