Access and write .mp3 metadata/tags using Python 3

andonefilms at gmail.com andonefilms at gmail.com
Tue Nov 26 12:10:27 EST 2013


> 
> There are a couple libraries that ease that[1].  Matters are
> 
> complicated by the fact that there are two different versions of ID3
> 
> tags, v1 and v2.  However most of those libraries should handle them
> 
> just fine.
> 
> 
> 
> Also, I don't believe that the playtime length is actually encoded in
> 
> the file itself, so you might have to do some calculations to find
> 
> that.  I've wondered this myself and would be interested to learn
> 
> more.  You might look at[2] which seems to offer code using one of
> 
> those modules.
> 
> 
> 
> Based on the two links, it looks like Mutagen might be the first stop
> 
> for getting both parts that you need.
> 
> 
> 
> -tkc
> 
> 
> 
> 
> 
> [1]
> 
> https://wiki.python.org/moin/UsefulModules#ID3_Handling
> 
> 
> 
> [2]
> 
> http://stackoverflow.com/questions/6037826/finding-the-length-of-an-mp3-file

I'm still a bit new to this.  When I download a module like Mutagen and unzip it I have a folder and tons of files within folders?  I see no file simply called mutagen?  So how can I import the module?



More information about the Python-list mailing list