Skip navigation.

Free as in Freedom

本Blog建议使用Firefox或Opera进行浏览

APE转FLAC

,

现在网上很多音乐都是APE格式的,但是目前在Linux下对APE的支持并不是很好,而且还不支持CUE读取,所以只有想办法把它转换成其他格式了。

Flac是一种开源的编码格式,Linux下几乎所有的播放软件都支持这个格式,我就以这种格式为目标进行转换

进行转换之前我们需要先安装mac-port,flac和shntool
emerge mac-port flac shntool

单个APE文件和Flac文件之间进行转换
mac Crush.ape - -d | flac --best - -o Crush.flac


调用CUE文件,把APE文件自动分割转换成多个Flac文件
shntool split -f Crush.cue -t "%n.%t" -o flac Crush.ape

• -f Crush.cue是指读取此cue文件。
• -t ‘%n.%t’是指定生成的文件名命名规则,%n 表示track number,%t 表示 Title,都是从cue文件中读出的
• -o flac表示输出文件使用flac编码处理

调用CUE文件,把单个Flac文件自动分割转换成多个Flac文件,跟上面的例子差不多,改一下文件名就可以了
shntool split -f Crush.cue -t "%n.%t" -o flac Crush.flac


下面是输出的内容,单个Flac文件通过读取CUE文件,对生成的文件进行了命名
# shntool split -f Crush.cue -t '%n.%t' -o flac Crush.flac 
shntool [split]: warning: discarding initial zero-valued split point
Splitting [Crush.flac] (58:20.07) --> [01.It's My Life.flac] (3:44.37) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [02.Say It Isn't So.flac] (3:33.25) :   0%100% OK
Splitting [Crush.flac] (58:20.07) --> [03.Thank You For Loving Me.flac] (5:08.70) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [04.Two Story Town.flac] (5:10.20) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [05.Next 100 Years.flac] (6:19.13) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [06.Just Older.flac] (4:28.57) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [07.Mystery Train.flac] (5:14.40) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [08.Save The World.flac] (5:31.73) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [09.Captain Crash & The Beauty Queen From Mars.flac] (4:31.25) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [10.She's A Mystery.flac] (5:18.07) :   0%100% OK
Splitting [Crush.flac] (58:20.07) --> [11.I Got The Girl.flac] (4:36.50) : 100% OK
Splitting [Crush.flac] (58:20.07) --> [12.One Wild Night.flac] (4:42.40) : 100% OK

VMware GSX 下设置共享磁盘在 Linux 下更新 Dell 电脑 BIOS

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31