https://ccrma.stanford.edu/mediawiki/index.php?title=Reading_MP3_Files&feed=atom&action=historyReading MP3 Files - Revision history2024-03-29T09:34:17ZRevision history for this page on the wikiMediaWiki 1.24.1https://ccrma.stanford.edu/mediawiki/index.php?title=Reading_MP3_Files&diff=8275&oldid=prevBerkleeb at 21:44, 2 July 20092009-07-02T21:44:23Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:44, 2 July 2009</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 10:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Make sure that <tt>mp3read.m</tt> is on your Matlab path.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Make sure that <tt>mp3read.m</tt> is on your Matlab path.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Use mp3read just like you would use wavread.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Use mp3read just like you would use wavread.</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">Update (7/2/09): Mac users can download all necessary files [http://www.mathworks.com/matlabcentral/fileexchange/13852 here].</ins></div></td></tr>
</table>Berkleebhttps://ccrma.stanford.edu/mediawiki/index.php?title=Reading_MP3_Files&diff=5838&oldid=prevJsundram at 00:48, 25 July 20082008-07-25T00:48:53Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 00:48, 25 July 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Grab [http://ccrma.stanford.edu/~jsundram/shared/mp3read.m my modified mp3read.m]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Grab [http://ccrma.stanford.edu/~jsundram/shared/mp3read.m my modified mp3read.m]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Grab the mp3info binary I compiled [http://ccrma.stanford.edu/~jsundram/shared/mp3info mp3info] (or download [http://www.mpg123.de/ the rpm] and install it yourself).</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Grab the mp3info binary I compiled [http://ccrma.stanford.edu/~jsundram/shared/mp3info mp3info] (or download [http://www.mpg123.de/ the rpm] and install it yourself).</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"># You will need to make sure it has executable permission (from the command line, <tt>chmod 755 mp3info</tt>)</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Make sure that the line 96 of the mp3read.m that you downloaded in step 1 points to the location of the mp3info binary you downloaded in step 2.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Make sure that the line 96 of the mp3read.m that you downloaded in step 1 points to the location of the mp3info binary you downloaded in step 2.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># Make sure that mp3read.m is on your Matlab path.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># Make sure that <ins class="diffchange diffchange-inline"><tt></ins>mp3read.m<ins class="diffchange diffchange-inline"></tt> </ins>is on your Matlab path.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Use mp3read just like you would use wavread.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># Use mp3read just like you would use wavread.</div></td></tr>
</table>Jsundramhttps://ccrma.stanford.edu/mediawiki/index.php?title=Reading_MP3_Files&diff=5835&oldid=prevJsundram at 22:35, 24 July 20082008-07-24T22:35:52Z<p></p>
<p><b>New page</b></p><div>I've made some minor changes to Dan Ellis's [http://labrosa.ee.columbia.edu/matlab/mp3read.html mp3read.m] file to get it to work on the Planet CCRMA machines. To get [http://labrosa.ee.columbia.edu/matlab/mp3read.html mp3read.m] to work, you need 2 external binaries, [http://www.ibiblio.org/mp3info/ mp3info] and [http://www.mpg123.de/ mpg123]. The binary for mpg123 is present on the Planet CCRMA machines at /usr/bin/mpg123, but [http://www.ibiblio.org/mp3info/ mp3info] is not. I've compiled the binary and placed it [http://ccrma.stanford.edu/~jsundram/shared/mp3info here].<br />
<br />
You can grab my modified copy of Dan Ellis's mp3read [http://ccrma.stanford.edu/~jsundram/shared/mp3read.m here]. You will need to modify line 96 to point to the location of mp3info.<br />
<br />
In short:<br />
# Grab [http://ccrma.stanford.edu/~jsundram/shared/mp3read.m my modified mp3read.m]<br />
# Grab the mp3info binary I compiled [http://ccrma.stanford.edu/~jsundram/shared/mp3info mp3info] (or download [http://www.mpg123.de/ the rpm] and install it yourself).<br />
# Make sure that the line 96 of the mp3read.m that you downloaded in step 1 points to the location of the mp3info binary you downloaded in step 2.<br />
# Make sure that mp3read.m is on your Matlab path.<br />
# Use mp3read just like you would use wavread.</div>Jsundram