1.通过AUR安装工具split2flac-git
$ yay split2flac-git
Git源码 在安装过程中会安装依赖工具cuetools,shntool
其他可选依赖
aacgain: to adjust gain in m4a
enca: to automatically detect charset if not UTF8 [已安装]
faac: to split into m4a [已安装]
flac: for flac replay gain support [已安装]
flake: faster FLAC encoding
mac: to split APE format[已安装](ape格式必装)
id3lib: to set tags in mp3 (unicode not supported)
imagemagick: to convert/resize album cover images [已安装]
lame: to split into mp3 [已安装]
mutagen: to split into mp3 [已安装]
libmp4v2: to split into m4a [已安装]
mp3gain: mp3 volume normalization
mutagen: to set tags in mp3 (with unicode support) [已安装]
ttaenc: to convert to TrueAudio
vorbis-tools: to split into ogg vorbis
vorbisgain: ogg vorbis volume normalization
wavpack: to split WV [已安装]
2.执行转码命令
(安装split2flac后可用的命令有split2flac,split2m4a,split2mp3,split2ogg,split2wav)
以下仅对转码为MP3示例
split2mp3 -e '--preset 320k' -cue ./yourCD.cue -cuecharset GBK ./YourCD.ape -o ./OutputFolder -c './folder.jpg'
其中
-e ‘–preset 320k’ 设置转换后MP3的码率,320k亦可为medium,standard,extreme,insane(参考lame --preset help,音质由低到高)
-cue ./yourCD.cue 设置你的CD分轨文件cue的路径
-cuecharset GBK 设置cue文件的编码,一般可不用设置,split2mp3会自动检测非UTF8编码文件并询问用户是否转码(加入-nask参数则不检测编码)
./YourCD.ape 设置你的CD原盘抓轨的wav,flac,ape等格式文件路径
-o ./OutputFolder 设置你转码后输出的MP3文件存放文件夹
-c ‘./folder.jpg’ 设置文件封面图片,一般可不用设置(-nc)