$ rpm -qi mp3splt Name : mp3splt Relocations: (not relocatable) Version : 2.1 Vendor: Matteo Trotta Release : 1 Build Date: 2004年10月13日 星期三 06时21分15秒 Install Date: 2007年01月15日 星期一 03时13分52秒 Build Host: localhost Group : Applications/Multimedia Source RPM: mp3splt-2.1-1.src.rpm Size : 116861 License: GPL Signature : (none) Packager : Marco Papa Manzillo <mpapamanz@users.sourceforge.net> URL : http://mp3splt.sourceforge.net/ Summary : A Free, command-line AlbumWrapster and mp3wrap file exctractor Description : Mp3Splt is a command line utility to split mp3 and ogg files selecting a begin and an end time position, without decoding. It's very useful to split large mp3/ogg to make smaller files or to split entire albums to obtain original tracks. If you want to split an album, you can select split points and filenames manually or you can get them automatically from CDDB (internet or a local file) or from .cue files. Otherwise if you have a file created either with Mp3Wrap or AlbumWrap you can extract tracks just in few seconds. Supports VBR mp3. Mp3split is completely FREE (under GPL License) and supported by Open Source Community.
现在我们运行它。正常情况下,命令行应该这样打:
mp3splt CDImage.mp3 -c CDImage.cue
然而现在不行。因为我下载到的 .cue 里面,歌曲名称是中文,且是 GB 码,mp3splt 很“聪明”地使用其来给分割出的小 mp3 命名,结果是我得到了一堆乱码文件名(我的系统跑 UTF-8)。
我曾试过将该 .cue 文件转码为 UTF-8 再重试上述命令,结果是文件名虽然对了,然而以 UTF-8 编码的 id3v1 标签居然不被 gstreamer 认可,在 rhythmbox 里显示为乱码!(参见 gstreamer encoding )
我绝望了,决定妥协。保留 .cue 为 GB 码,确保 rhythmbox 里显示正常,然后放弃文件名,只用音轨号来命名。最后的命令行是这样的:
$ mp3splt CDImage.mp3 -c CDImage.cue -o @n 至此,任务顺利完成.
