<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Normalizing your MP3 collection with mp3gain</title>
	<atom:link href="http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/feed" rel="self" type="application/rss+xml" />
	<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain</link>
	<description>... master of none</description>
	<lastBuildDate>Sun, 21 Feb 2010 11:01:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adam</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-127254</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 17 Jun 2009 01:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-127254</guid>
		<description>Oh just one more thing. For those who say that vorbisgain has a &quot;-r&quot; switch eliminatinf\g the need for find completely, it will only work if your collection is comprised of oggs only. It will choke (and quit) on the first non-ogg/vorbis file it sees.</description>
		<content:encoded><![CDATA[<p>Oh just one more thing. For those who say that vorbisgain has a &#8220;-r&#8221; switch eliminatinf\g the need for find completely, it will only work if your collection is comprised of oggs only. It will choke (and quit) on the first non-ogg/vorbis file it sees.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-127246</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 17 Jun 2009 00:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-127246</guid>
		<description>

&lt;blockquote&gt;The comments are moderated, so I have to approve them before they will show&lt;/blockquote&gt;


I realised that as soon as I submitted it with firefox. I immediately got some feedback from the site that my comment was awaiting approval. With Opera I got nothing at all... And yes I have cookies enabled (but they are deleted when I shut opera down). That&#039;s where my confusion sprang from.</description>
		<content:encoded><![CDATA[<blockquote><p>The comments are moderated, so I have to approve them before they will show</p></blockquote>
<p>I realised that as soon as I submitted it with firefox. I immediately got some feedback from the site that my comment was awaiting approval. With Opera I got nothing at all&#8230; And yes I have cookies enabled (but they are deleted when I shut opera down). That&#8217;s where my confusion sprang from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Porges</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-127092</link>
		<dc:creator>Porges</dc:creator>
		<pubDate>Tue, 16 Jun 2009 04:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-127092</guid>
		<description>The comments are moderated, so I have to approve them before they will show :)

Thanks for pointing that out. The &lt;code&gt;find&lt;/code&gt; manpage makes it seem like this is what should happen...

Given this structure:

&lt;pre&gt;dir1/
    file1.mp3
    file2.mp3
dir3/
    file3.mp3
    file4.mp3&lt;/pre&gt;

... with &#039;;&#039; the command is executed once for every file, and with &#039;+&#039; the command is executed on &lt;code&gt;&quot;file1.mp3 file2.mp3&quot;&lt;/code&gt; and then &lt;code&gt;&quot;file3.mp3 file4.mp3&quot;&lt;/code&gt;.

Whereas, as you say, the change seems to do nothing! :(

Edit: After more research, it seems that this is partly &lt;a href=&quot;http://savannah.gnu.org/bugs/?19593&quot; rel=&quot;nofollow&quot;&gt;a bug in &lt;code&gt;findutils&lt;/code&gt;&lt;/a&gt;, and partly a misunderstanding of the &#039;+&#039; modifier. It doesn&#039;t &lt;em&gt;guarantee&lt;/em&gt; that all files in the directories will be collected, and currently performs the exact same task as &#039;;&#039;!</description>
		<content:encoded><![CDATA[<p>The comments are moderated, so I have to approve them before they will show <img src="http://porg.es/blog/wp-content/plugins/wp-smiley-switcher/noktahhitam/icon_smile.gif" alt="" /></p>
<p>Thanks for pointing that out. The <code>find</code> manpage makes it seem like this is what should happen&#8230;</p>
<p>Given this structure:</p>
<pre>dir1/
    file1.mp3
    file2.mp3
dir3/
    file3.mp3
    file4.mp3</pre>
<p>&#8230; with &#8216;;&#8217; the command is executed once for every file, and with &#8216;+&#8217; the command is executed on <code>"file1.mp3 file2.mp3"</code> and then <code>"file3.mp3 file4.mp3"</code>.</p>
<p>Whereas, as you say, the change seems to do nothing! <img src="http://porg.es/blog/wp-content/plugins/wp-smiley-switcher/noktahhitam/icon_sad.gif" alt="" /></p>
<p>Edit: After more research, it seems that this is partly <a href="http://savannah.gnu.org/bugs/?19593">a bug in <code>findutils</code></a>, and partly a misunderstanding of the &#8216;+&#8217; modifier. It doesn&#8217;t <em>guarantee</em> that all files in the directories will be collected, and currently performs the exact same task as &#8216;;&#8217;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-126704</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sun, 14 Jun 2009 12:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-126704</guid>
		<description>I&#039;ll try resubmitting the comment now that I know what the problem is.

Porges, your trackwise replaygain command will work fine but the album-based method will not do what you expect it to. In fact, it will do the exact same thing the trackwise command will. John&#039;s for-loop command will work if there are no spaces in the file or directory names. Otherwise it will fail -- or at least it did for me. After much mucking around, the following command did it for me:

&lt;pre lang=&quot;bash&quot;&gt;find . -type d &#124; while read i; do mp3gain -a -k &quot;$i&quot;/*.mp3 ; done&lt;/pre&gt;

Basically what it does it run mp3gain on EVERY subdirectory but only on the *.mp3 files contained therein. This is necessary because mp3gain will not accept a directory as an argument (unlike vorbisgain). The &quot;read&quot; command is there to handle spaces in directory and file names. The equivalent command for vorbisgain is:

&lt;pre lang=&quot;bash&quot;&gt;find . -type d -execdir vorbisgain -a -f {} +&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ll try resubmitting the comment now that I know what the problem is.</p>
<p>Porges, your trackwise replaygain command will work fine but the album-based method will not do what you expect it to. In fact, it will do the exact same thing the trackwise command will. John&#8217;s for-loop command will work if there are no spaces in the file or directory names. Otherwise it will fail &#8212; or at least it did for me. After much mucking around, the following command did it for me:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> d <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> i; <span style="color: #000000; font-weight: bold;">do</span> mp3gain <span style="color: #660033;">-a</span> <span style="color: #660033;">-k</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>&quot;</span><span style="color: #000000; font-weight: bold;">/*</span>.mp3 ; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>Basically what it does it run mp3gain on EVERY subdirectory but only on the *.mp3 files contained therein. This is necessary because mp3gain will not accept a directory as an argument (unlike vorbisgain). The &#8220;read&#8221; command is there to handle spaces in directory and file names. The equivalent command for vorbisgain is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-type</span> d <span style="color: #660033;">-execdir</span> vorbisgain <span style="color: #660033;">-a</span> <span style="color: #660033;">-f</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> +</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Porges</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-77645</link>
		<dc:creator>Porges</dc:creator>
		<pubDate>Mon, 01 Sep 2008 02:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-77645</guid>
		<description>Mike: Check out the ‘find’ man page; you can use &quot;-execdir ... ;&quot; which runs the command one file at a time, or &quot;-execdir ... +&quot;, runs the command on all files in a directory at once.</description>
		<content:encoded><![CDATA[<p>Mike: Check out the ‘find’ man page; you can use &#8220;-execdir &#8230; ;&#8221; which runs the command one file at a time, or &#8220;-execdir &#8230; +&#8221;, runs the command on all files in a directory at once.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-77439</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 29 Aug 2008 05:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-77439</guid>
		<description>I&#039;m curious what the &#039;+&#039; in the album command does? I think I understand all the rest of the command, and the -a is fairly easy to guess, but the change from &#039;\;&#039; to &#039;+&#039; is a mystery to me.</description>
		<content:encoded><![CDATA[<p>I&#8217;m curious what the &#8216;+&#8217; in the album command does? I think I understand all the rest of the command, and the -a is fairly easy to guess, but the change from &#8216;\;&#8217; to &#8216;+&#8217; is a mystery to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apt-get install mp3gain &#124; apt-get install</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-10569</link>
		<dc:creator>apt-get install mp3gain &#124; apt-get install</dc:creator>
		<pubDate>Thu, 08 Mar 2007 22:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-10569</guid>
		<description>[...] replaygain, and found a link to mp3gain. Once that was installed, I then modified instructions from porg.es as [...]</description>
		<content:encoded><![CDATA[<p>[...] replaygain, and found a link to mp3gain. Once that was installed, I then modified instructions from porg.es as [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-9355</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 22 Feb 2007 17:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-9355</guid>
		<description>I just use:

for file in `find . -type f &#124; grep mp3`; do mp3gain -q -k -p -r &quot;$file&quot;; done</description>
		<content:encoded><![CDATA[<p>I just use:</p>
<p>for file in `find . -type f | grep mp3`; do mp3gain -q -k -p -r &#8220;$file&#8221;; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fird</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-3916</link>
		<dc:creator>Fird</dc:creator>
		<pubDate>Mon, 11 Dec 2006 09:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-3916</guid>
		<description>Thank you for your guide :) It really helps!</description>
		<content:encoded><![CDATA[<p>Thank you for your guide <img src="http://porg.es/blog/wp-content/plugins/wp-smiley-switcher/noktahhitam/icon_smile.gif" alt="" /> It really helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carthik</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-1388</link>
		<dc:creator>Carthik</dc:creator>
		<pubDate>Wed, 20 Sep 2006 03:44:24 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-1388</guid>
		<description>Thank you. I have added a link to this article for those who might be interested in your way of doing things.</description>
		<content:encoded><![CDATA[<p>Thank you. I have added a link to this article for those who might be interested in your way of doing things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Normalize the Gain (Playback Volume) of your MP3s &#171; Ubuntu Blog</title>
		<link>http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain/comment-page-1#comment-1387</link>
		<dc:creator>Normalize the Gain (Playback Volume) of your MP3s &#171; Ubuntu Blog</dc:creator>
		<pubDate>Wed, 20 Sep 2006 03:44:17 +0000</pubDate>
		<guid isPermaLink="false">http://porg.es/blog/normalizing-your-mp3-collection-with-mp3gain#comment-1387</guid>
		<description>[...] Edit: for an alternative command, with explanation, and a way to use album-gain for songs from albums, visit porges The following command, executed from the directory where I store my music normalized all the files in my collection: $find . -type f -iname &#039;*.mp3&#039; -print0 &#124; xargs -0 mp3gain -r -k [...]</description>
		<content:encoded><![CDATA[<p>[...] Edit: for an alternative command, with explanation, and a way to use album-gain for songs from albums, visit porges The following command, executed from the directory where I store my music normalized all the files in my collection: $find . -type f -iname &#8216;*.mp3&#8242; -print0 | xargs -0 mp3gain -r -k [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
