Difference between revisions of "CUE Splitting"

From ArchWiki
Jump to: navigation, search
m (Alternatives: Fix broken links for split2flac and flacon.)
(Better)
Line 1: Line 1:
 
[[Category:Audio/Video]]
 
[[Category:Audio/Video]]
 
{{Poor writing|[[Help:Style|Style]] problems}}
 
{{Poor writing|[[Help:Style|Style]] problems}}
This article describes how to split audio file basing on CUE metadata.
+
This article describes how to split audio files using CUE metadata.
  
 
==Installation==
 
==Installation==
Line 7: Line 7:
 
{{Merge|List of applications}}
 
{{Merge|List of applications}}
  
To split the audio files you'll need to install shntool:
+
To split the audio files you'll need to install {{Pkg|shntool}}
  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 need {{Pkg|bchunk}}
  pacman -S bchunk
 
  
You'll need to install decoders to read the files, for example:
+
You'll need to install decoders to read the files, for example: {{Pkg|flac}} {{Pkg|wavpack}}
  pacman -S mac flac wavpack
 
  
To encode files to any format other than wav you'll need to install encoders, for example:
+
To encode files to any format other than wav you'll need to install encoders, for example: {{Pkg|flac}} {{Pkg|lame}} {{Pkg|vorbis-tools}}
  pacman -S flac lame vorbis-tools
 
  
To tag the files you'll need extra tools such as:
+
To tag the files you'll need extra tools such as: {{Pkg|cuetools}} {{Pkg|mp3info}} {{Pkg|vorbis-tools}}
  pacman -S cuetools mp3info vorbis-tools
 
  
 
==Splitting==
 
==Splitting==
Line 26: Line 21:
 
To split a disc audio file accompanied by a cue sheet use the shnsplit command, for example:
 
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.ape
 
  shnsplit -f file.cue file.wv
 
  
 
To split bin files with cue sheets use
 
To split bin files with cue sheets use

Revision as of 00:04, 14 December 2014

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

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

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

Installation

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 the audio files you'll need to install shntool

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

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

To encode files to any format other than wav you'll need to install encoders, for example: flac lame vorbis-tools

To tag the files you'll need extra tools such as: 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

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

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