Linux command
shnsplit 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
shnsplit -f [path/to/file.cue] [path/to/file.wav]
Example
shnsplit -f [path/to/file.cue] -o flac [path/to/file.flac]
Example
shnsplit -f [path/to/file.cue] -t "%n - %a - %t" [path/to/file.wav]
Example
shnsplit -l [5:00] [path/to/file.wav]
Example
shnsplit -f [path/to/file.cue] -d [output_directory] [path/to/file.wav]
Example
shnsplit -f [path/to/file.cue] -x [1-3,5] [path/to/file.wav]
说明
shnsplit splits a single large audio file into multiple individual track files using split points defined in a CUE sheet. It is part of the shntool suite and supports various lossless audio formats including WAV, FLAC, APE, and Shorten. Split points can be specified in several formats: bytes, m:ss (minutes:seconds), m:ss.ff (CD frames, 75 per second), or m:ss.nnn (milliseconds). The tool is commonly used to split CD rips, live recordings, or continuous mixes into individual tracks.
参数
- -f _file_
- Read split points from CUE sheet or split point file
- -o _format_
- Output format (wav, flac, ape, shn, wv)
- -d _dirname_
- Output directory for split files
- -t _fmt_
- Name files using CUE fields (%n=track, %a=album, %t=title, %p=performer)
- -a _str_
- Prefix output filenames with str (default: split-track)
- -z _str_
- Postfix output filenames with str
- -c _num_
- Start counting from num when naming output files (default: 0)
- -l _len_
- Split input file into segments of length len
- -m _str_
- Character manipulation string for filenames from CUE sheets (alternating from/to pairs)
- -n _fmt_
- Specify file count output format (default: %02d)
- -x _list_
- Extract specific tracks only (e.g., "2-6,9,11-13")
- -e _len_
- Add lead-in from previous track
- -u _len_
- Add lead-out from next track
- -i _fmt_
- Specify input file format decoder and/or arguments
- -O _val_
- Overwrite existing files: ask, always, or never
- -q
- Suppress non-critical output (quiet mode)
- -w
- Suppress warnings
- -D
- Print debugging information
- -h
- Display help information
FAQ
What is the shnsplit command used for?
shnsplit splits a single large audio file into multiple individual track files using split points defined in a CUE sheet. It is part of the shntool suite and supports various lossless audio formats including WAV, FLAC, APE, and Shorten. Split points can be specified in several formats: bytes, m:ss (minutes:seconds), m:ss.ff (CD frames, 75 per second), or m:ss.nnn (milliseconds). The tool is commonly used to split CD rips, live recordings, or continuous mixes into individual tracks.
How do I run a basic shnsplit example?
Run `shnsplit -f [path/to/file.cue] [path/to/file.wav]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f _file_ do in shnsplit?
Read split points from CUE sheet or split point file