Difference between revisions of "CUE Splitting"

From ArchWiki
Jump to: navigation, search
(Added a command to give the reader a simpler choice.)
(cuetools is not needed anymore, as shntool handles cue sheets. Reestructured the installation section to indicate what packes are need for what purpose)
Line 3: Line 3:
  
 
==Installation==
 
==Installation==
Probably you need this bundle:
+
To split the audio files you'll need to install shntool:
   pacman -S cuetools shntool flac wavpack mac mp3info vorbis-tools
+
   pacman -S shntool
  
 
If you want to split iso/bin files, you will also need bchunk:
 
If you want to split iso/bin files, you will also need bchunk:
 
   pacman -S bchunk
 
   pacman -S bchunk
 +
 +
You'll need to install decoders to read the files, for example:
 +
  pacman -S mac flac wavpack
 +
 +
To encode files to any format other than wav you'll need to install encoders, for example:
 +
  pacman -S flac lame vorbis-tools
 +
 +
To tag the files you'll need extra tools such as:
 +
  pacman -S cuetools mp3info vorbis-tools
  
 
==Splitting==
 
==Splitting==

Revision as of 22:36, 13 October 2013

This article describes how to split audio file basing on CUE metadata.

Installation

To split the audio files you'll need to install shntool:

 pacman -S shntool

If you want to split iso/bin files, you will also need bchunk:

 pacman -S bchunk

You'll need to install decoders to read the files, for example:

 pacman -S mac flac wavpack

To encode files to any format other than wav you'll need to install encoders, for example:

 pacman -S flac lame vorbis-tools

To tag the files you'll need extra tools such as:

 pacman -S cuetools mp3info vorbis-tools

Splitting

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

 shnsplit -f file.cue file.ape
 shnsplit -f file.cue file.wv

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

The formats shnsplit supports can be view using the command

 shntool -a


For other situations, like wanting to convert to lossy formats like vorbis or mp3 and when using bchunk, refer to Convert Any To Mp3 for examples.

Tagging

Use

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

or

 cuetag.sh file.cue *.mp3

to copy tags from CUE to MP3. cuetag.sh supports FLAC, OGG and MP3 tags. cuetag.sh is included with cuetools.

Splitting, Converting to FLAC, and Tagging

Split a single FLAC using CUE

  • install shntool cuetools
  • shntool split -f *.cue -o flac *.flac
  • cuetag.sh *.cue split-track*.flac

from [1]

References