toofishes.net

Music metadata visualization in Python

I was looking at my music collection this morning and a seemingly simple question came to mind- what bitrate is most of my MP3 music?

Of course, this simple question descended into a Python script that did much more than the original question, producing the following result, which plots the bitrates vs. ID3-embedded song year in a nice little visualization:

MP3 Stats

4913 songs played into this picture. Several interesting things to note.

Here is the script: mp3stats.py

Required Python modules for this script are mutagen (MP3 processing), numpy (histogram generation), and matplotlib (visualization). Let me know what you think and if you make any improvements!

Tags

See Also