libid3tag is a library for reading and writing ID3 tags, both ID3v1 and the various versions of ID3v2.