Pepe Manshon

Splitting joint FLAC according to CUE file in Kubuntu

16 October 2011 101 views 0 comments 0 recommendations tags: linux, kubuntu

Splitting single Flac to multiple smaller files by its *.cue sheet can be done in many different ways in Linux systems.

I prefer using both cuebreaks and shnsplit tools, since they are easy to use and remember :)

Before that you need to install the full tools, which is done by:

sudo apt-get install shntool
sudo apt-get install cuetools

Once you've got those tools installed open your terminal and navigate to the folder, containing both the *.flac and *.cue files, OR go for the lazy way and open it via Dolphin:

Dolphin directory open in terminal

Apply the following command and you should be able to see the split tracks:

cuebreakpoints sheet-file.cue | shnsplit -o flac audio-file.flac

This would basically split the .flac into several smaller audio files, each having a default name, which is quite meaningless. If you'd rather have full names of the files, or even create your own prefix, use the -t '%...' option after shnsplit. Let's use some real files to make it more clearer:

cuebreakpoints k622.cue | shnsplit -o flac -t '%n. %p - %t' k622.flac
Cuebreakpoints and shnsplit of flac and cue

The above means "go find all break-points from k622.cue sheet and pass them to shnsplit, which will create files with output format flac and name, that contains the number, the performer and the title of each track".

Hit Enter et voila - you'll have nice and clean playlist with the beautiful Clarinet Concerto k622 by Wolfgang Amadeus Mozart. Or something like this :)

*Almost all my music collection is legal and awesome. I just always seem to lack free space on my machine, so packing stuff into large FLACs and moving them to removable media is sometimes a good solution.

Comments

Yes... under construction :(