How To Split an Audio .flac file using Ubuntu Linux


This entry was written more than 1 year ago. Please read the article keeping in mind its age.

If you have big .flac audio file which include several CD tracks, sure you are interested to know how to split them and of course we are going to do it in Ubuntu Linux.

This method it use .cue files, which usually comes with the .flac ones.

First of all we need to install the following packages cuetools shntool flac. You can use Synaptic or this command in a terminal:

 $ sudo apt-get install cuetools shntool flac

Now you can split the .flac audio file as follows:

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

That's all.

Now a little bit of theory,
... shnsplit is the program used to split tracks, while cuebreakpoints it reads the break-points from file.cue and pipe them to shnsplit.