<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Shadow &#38; Honnix &#187; mutagen</title>
	<atom:link href="http://honnix.com/blog/archives/tag/mutagen/feed" rel="self" type="application/rss+xml" />
	<link>http://honnix.com/blog</link>
	<description>Already?</description>
	<lastBuildDate>Thu, 18 Feb 2010 07:20:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>处理flac和ape的过程</title>
		<link>http://honnix.com/blog/archives/333</link>
		<comments>http://honnix.com/blog/archives/333#comments</comments>
		<pubDate>Sun, 24 May 2009 05:50:01 +0000</pubDate>
		<dc:creator>honnix</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[id3]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[mutagen]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[shntools]]></category>

		<guid isPermaLink="false">http://honnix.com/blog/?p=333</guid>
		<description><![CDATA[Linux和Mac上差不多。有个shntool，可以根据cue文件将ape或者flac进行分割，同时可以读出cue里面的唱片名、作者、tracknumber之类的信息，但问题是这些信息不是很方便传给lame，所以就这样处理一下：

shntool split -f $cue -t &#8216;%n&#8211;@%p&#8211;@%a&#8211;@%t&#8217; -o &#8216;cust ext=mp3 lame -b 320 -s 48 -quiet &#8211; %f&#8217; -d $dir $audio (简单来说，将信息放到文件名里)
python ~/bin/id3.py $dir (这是个自己写的python程序，从文件名里分离所有的信息，然后写到mp3文件里，用到了一个python的module：mutagen)

这样就不需要在iTunes里面再手工写这些信息了，唯一还需要填一下的就是总的曲目数、唱片出版年份、唱片类型。
]]></description>
			<content:encoded><![CDATA[<p>Linux和Mac上差不多。有个shntool，可以根据cue文件将ape或者flac进行分割，同时可以读出cue里面的唱片名、作者、tracknumber之类的信息，但问题是这些信息不是很方便传给lame，所以就这样处理一下：</p>
<ol>
<li>shntool split -f $cue -t &#8216;%n&#8211;@%p&#8211;@%a&#8211;@%t&#8217; -o &#8216;cust ext=mp3 lame -b 320 -s 48 -quiet &#8211; %f&#8217; -d $dir $audio (简单来说，将信息放到文件名里)</li>
<li>python ~/bin/id3.py $dir (这是个自己写的python程序，从文件名里分离所有的信息，然后写到mp3文件里，用到了一个python的module：mutagen)</li>
</ol>
<p>这样就不需要在iTunes里面再手工写这些信息了，唯一还需要填一下的就是总的曲目数、唱片出版年份、唱片类型。</p>
]]></content:encoded>
			<wfw:commentRss>http://honnix.com/blog/archives/333/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
