Split lossless audio files into tracks: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
<code>nnn</code><math>{}={}</math><code>floor</code><math>(13.333\cdot{}</math><code>ff</code><math>)</math> | <code>nnn</code><math>{}={}</math><code>floor</code><math>(13.333\cdot{}</math><code>ff</code><math>)</math> | ||
<code>nnn<math>{}={}</math> | <code>nnn<math>{}={}</math>3-digit integer approximation<math>(13.333\cdot{}</math>ff<math>)</math></code> | ||
[[Category: Debian GNU/Linux]] | [[Category: Debian GNU/Linux]] | ||
Revision as of 02:28, 22 September 2011
Given a single lossless audio file (wav, flac, ape, wv, etc.) foo and corresponding cue sheet foo.cue, we can split it into separate tracks (compressed by flac) by the following command:
$ shnsplit -f foo.cue -o "flac flac --verify --best -o %f -" -t "%n-%p-%t" -m " _" foo
See man 1 shntool for more options.
Note that the cue sheet may require removing trailing spaces.
Split points in cue sheet are often specified in the form mm:ss:ff (minutes:seconds:frames). There are 75 frames per second, so ff ranges from 00 to 74. shnsplit accept this format only for CD‐quality (i.e., 16/44.1) audio files. For other files (e.g., 24/192) the split point must be given in the form mm:ss.nnn (minutes:seconds:milliseconds):
nnnfloorff
nnn3-digit integer approximationff