Difference between revisions of "CUE Splitting"

From ArchWiki
Jump to: navigation, search
m (add in my usecase for flacon (everything else didn't work))
(recategorize to avoid redirect after the old category has been renamed (https://github.com/lahwaacz/wiki-scripts/blob/master/recategorize-over-redirect.py))
Line 1: Line 1:
{{Poor writing|[[Help:Style|Style]] problems}}
{{Poor writing|[[Help:Style|Style]] problems}}
This article describes how to split audio files using CUE metadata.
This article describes how to split audio files using CUE metadata.

Revision as of 09:30, 3 August 2015

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements. See Help:Style for reference.Tango-edit-clear.png

Reason: Style problems (Discuss in Talk:CUE Splitting#)

This article describes how to split audio files using CUE metadata.


Merge-arrows-2.pngThis article or section is a candidate for merging with List of applications.Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:CUE Splitting#)

To split audio files you need shntool.

To split iso or bin files you need bchunk.

To read some audio files you may need an appropriate decoder. For example: flac, mac, or wavpack.

To encode files to any format other than wav you need to install encoders. For example: flac, lame, or vorbis-tools.

To tag audio files you need extra tools such as: cuetools, mp3info, or vorbis-tools.


To split a disc audio file accompanied by a cue sheet use the shnsplit command:

 shnsplit -f file.cue file.ape

To split bin files with cue sheets use:

 bchunk -v -w file.bin file.cue out

All these commands produce .wav files. You probably want to compress the audio files with formats like flac or mp3.

shnsplits gives the possibility to convert on the fly to most lossless formats, like flac. It can be used like so:

 shnsplit -f file.cue -o flac file.ape

If you need more control over the conversion you may change the converter parameters inline:

 shnsplit -f file.cue -o "flac flac -s -8 -o %f -" file.ape

Even better, automatically name split files with track number and title:

 shnsplit -f file.cue -t "%n %t" -o "flac flac -s -8 -o %f -" file.ape

The formats shnsplit supports can be view using the command

 shntool -a

It doesn't really matter, though, if shnsplit doesn't support a format you want to use. Just specify any format you want, then override the correct file extension and command it would normally use with your own. For example, at the time this was written, shnsplit doesn't support vorbis, but this command works just fine:

 shnsplit -f file.cue -t "%n %t" -o "flac ext=ogg oggenc -b 192 -o %f -" file.ape


You'll need cuetools to use cuetag.sh.

To copy the metadata from a cue sheet to the splitted files you can use:

 cuetag.sh file.cue *.mp3

or if you need to select only certain files:

 cuetag.sh file.cue track01.mp3 track02.mp3 track03.mp3 track04.mp3

cuetag.sh supports id3 tags for .mp3 files and vorbis tags for .ogg and .flac files.


  • This is a script that splits and converts files to tagged FLAC: https://bbs.archlinux.org/viewtopic.php?id=75774.
  • You can also try the split2flac or split2flac-git script from the AUR.
  • You may also use flacon or flacon-git , a graphical Qt program that splits, converts and tags album audio files into song audio files. It also features automatic character set detection for CUE files.
  • To avoid quality loss from transcoding mp3 files, mp3splt-gtk or mp3splt may be used to directly split mp3 files either manually or automatically with a provided cuesheet. Batch mode processing is also available.