Difference between revisions of "CUE Splitting"

From ArchWiki
Jump to: navigation, search
(Added info about split2flac script.)
(Lternatives)
(19 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category: Audio/Video (English)]]
+
[[Category:Audio/Video]]
[[Category: HOWTOs (English)]]
+
 
+
 
This article describes how to split audio file basing on CUE metadata.
 
This article describes how to split audio file basing on CUE metadata.
  
 
==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:
 +
  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==
   cuebreakpoints file.cue | shntool split file.ape
+
To split a disc audio file accompanied by a cue sheet use the shnsplit command, for example:
or
+
   shnsplit -f file.cue file.ape
   cuebreakpoints file.cue | shntool split file.wv
+
 
 +
   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
 +
 
  
it produces .wav files
+
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.
  
Then you probably want to convert them into OGG or MP3. See [[Convert Any To Mp3]] for example.
+
==Tagging==
 +
You'll need {{Pkg|cuetools}} to use cuetag.sh.
  
==Splitting, Converting to FLAC, and Tagging==
+
To copy the metadata from a cue sheet to the splitted files you can use:
This script will convert APE+CUE files to tagged FLAC: https://bbs.archlinux.org/viewtopic.php?id=75774.
+
  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.
  
You can also try split2flac script from AUR: http://aur.archlinux.org/packages.php?ID=28877.
+
==Alternatives==
 +
* 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 [https://aur.archlinux.org/packages.php?ID=55880 split2flac] script from the AUR.
 +
* You may also use [https://aur.archlinux.org/packages.php?ID=31026 flacon], a graphical Qt program that splits, converts and tags album audio files into song audio files.
  
 
==References==
 
==References==
Line 26: Line 59:
 
* [http://en.wikipedia.org/wiki/Cue_file What is CUE?]
 
* [http://en.wikipedia.org/wiki/Cue_file What is CUE?]
 
* [[Convert Any To Mp3]]
 
* [[Convert Any To Mp3]]
* [[Rip_Audio_CDs]]
+
* [[Rip Audio CDs]]

Revision as of 22:57, 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

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.

Alternatives

References