Latest recipes tagged "id3"http://code.activestate.com/recipes/tags/id3/new/2011-11-05T15:27:32-07:00ActiveState Code RecipesRemove ID3 tags from MP3 files (Python)
2010-03-29T10:55:27-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/577139-remove-id3-tags-from-mp3-files/
<p style="color: grey">
Python
recipe 577139
by <a href="/recipes/users/4170754/">ccpizza</a>
(<a href="/recipes/tags/id3/">id3</a>, <a href="/recipes/tags/mp3/">mp3</a>, <a href="/recipes/tags/mutagen/">mutagen</a>).
Revision 3.
</p>
<p>Remove ID3 tags from all files in the current directory</p>
Embed lyrics into MP3 files using mutagen (USLT tag), optionally set other ID3 tags (Python)
2011-05-17T15:56:56-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/577138-embed-lyrics-into-mp3-files-using-mutagen-uslt-tag/
<p style="color: grey">
Python
recipe 577138
by <a href="/recipes/users/4170754/">ccpizza</a>
(<a href="/recipes/tags/id3/">id3</a>, <a href="/recipes/tags/lyrics/">lyrics</a>, <a href="/recipes/tags/mp3/">mp3</a>, <a href="/recipes/tags/uslt/">uslt</a>).
Revision 5.
</p>
<p>Quick and dirty script to embed unsynchronized lyrics or any other text into MP3 files. The text files with the lyrics are expected to be in the same folder: i.e. for MySong.mp3 the lyrics text should be in the file MySong.txt.</p>
<p>The encoding of the text file will be probed in the following order: 'utf8','iso-8859-1','iso-8859-15','cp1252','cp1251','latin1'. If you need support for more encodings, a list is available at <a href="http://docs.python.org/release/2.5.2/lib/standard-encodings.html" rel="nofollow">http://docs.python.org/release/2.5.2/lib/standard-encodings.html</a></p>
<p>To see the lyrics on an iPod (tested on 6G Classic) you need to press the middle button four times while a song is playing.</p>
<p>The script can also be used to set other ID3 tags. By default SET_OTHER_ID3_TAGS is False so existing ID3 tags will NOT be overwritten.</p>
<p>Usage:
Running the file without arguments will process all MP3 files in the current directory.</p>
<p>Alternatively the path to the folder with MP3's can be passed as the first argument.</p>
Rename MP3 files from ID3 tags (does not require external ID3 modules) (Python)
2011-11-05T15:27:32-07:00ccpizzahttp://code.activestate.com/recipes/users/4170754/http://code.activestate.com/recipes/576811-rename-mp3-files-from-id3-tags-does-not-require-ex/
<p style="color: grey">
Python
recipe 576811
by <a href="/recipes/users/4170754/">ccpizza</a>
(<a href="/recipes/tags/id3/">id3</a>, <a href="/recipes/tags/mp3/">mp3</a>, <a href="/recipes/tags/rename/">rename</a>).
Revision 5.
</p>
<p>Rename MP3 files in the current folder according to ID3 tags. This is based on Ned Batchelder's id3reader class. I only added the code in the <code>__main__</code> method.</p>
<ul>
<li>When run without arguments, the script renames the files in the current folder. The directory can be specified explicitly as the first argument.</li>
<li>The files do not need to necessarily have the <code>MP3</code> extension.</li>
<li>To move the files to directories based on album name use the <code>-d</code> switch.</li>
<li>Does not work with other file types, such as OGG, M4A, MP4, etc.</li>
<li>This is a quick and dirty script that works for me most of the times. If you need more power, try mutagen, picard, mp3tag or something similar.</li>
</ul>