<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: lame code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Mon, 06 Oct 2008 17:01:19 GMT</pubDate>
    <description>DZone Snippets: lame code</description>
    <item>
      <title>Batch loop for wave to mp3 (using lame)</title>
      <link>http://snippets.dzone.com/posts/show/5464</link>
      <description>It keeps the input files and sorts both mp3 and wave files nicely in two separate directories.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;@echo off&lt;br /&gt;if NOT EXIST MP3 md MP3&lt;br /&gt;if NOT EXIST WAV md WAV&lt;br /&gt;&lt;br /&gt;for %%f in (*.wav) do (&lt;br /&gt;	cls&lt;br /&gt;	lame -b 96 -V 5 -B 128 -m j --vbr-new -q 5 "%%f" "MP3\%%f.mp3"&lt;br /&gt;	move "%%f" WAV&lt;br /&gt;)&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 05 May 2008 19:57:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5464</guid>
      <author>jakob ()</author>
    </item>
    <item>
      <title>Reencoding MP3s to lower Bitrate  </title>
      <link>http://snippets.dzone.com/posts/show/5126</link>
      <description>http://ubuntuforums.org/showthread.php?t=347176&lt;br /&gt;Batch-reencode MP3s using a terminal tool.&lt;br /&gt;&lt;br /&gt;this installs lame (http://lame.sourceforge.net/index.php), an MP3 enconder&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo apt-get install lame&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;this reencodes all MP3s in the current folder to a bitrate of 32&lt;br /&gt;&lt;code&gt;&lt;br /&gt;for x in [ `ls -1 *.mp3` ]; do lame --preset 32 $x new32-${x}; done&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sun, 10 Feb 2008 14:39:07 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5126</guid>
      <author>rootie (Alvin)</author>
    </item>
  </channel>
</rss>
