Difference between revisions of "CUE Splitting"

From ArchWiki
Jump to: navigation, search
(Include instructions for bin/cue files)
(shntool handles cue files, as well as converting files to another format.)
Line 10: Line 10:
  
 
==Splitting==
 
==Splitting==
To split APE or WavPack files, use:
+
To split a disc audio file accompanied by a cue sheet use the shnsplit command.
 +
For example:
 +
  shnsplit -f file.cue file.ape
  
   cuebreakpoints file.cue | shntool split file.ape
+
   shnsplit -f file.cue file.wv
or
+
  cuebreakpoints file.cue | shntool split file.wv
+
  
it produces .wav files
+
To split bin files with cue sheets use
 +
  bchunk -v -w file.bin file.cue out
  
Then you probably want to convert them into OGG or MP3. See [[Convert Any To Mp3]] for example.
+
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 flac -s -8 -o %f -" file.ape
 +
 
 +
The formats shnsplit supports can be view using the command
 +
  shntool -a
  
To split bin/cue files, use:
 
  bchunk -v -w file.bin file.cue out
 
  
This will split file.bin according to file.cue, and produce out01.wav, out02.wav, etc.
+
For other situations, like converting to lossy formats like vorbis or mp3 and using bchunk, refer to [[Convert Any To Mp3]] for examples.
  
 
==Tagging==
 
==Tagging==

Revision as of 22:13, 13 October 2013

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

Installation

Probably you need this bundle:

 pacman -S cuetools shntool flac wavpack mac mp3info vorbis-tools

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

 pacman -S bchunk

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 flac -s -8 -o %f -" file.ape

The formats shnsplit supports can be view using the command

 shntool -a


For other situations, like converting to lossy formats like vorbis or mp3 and 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