As well as ID3v1 and ID3v2 you might want to parse this stuff: http://gabriel.mp3-tech.org/mp3infotag.html -- which works around some of the misfeaturage in the MP3 format itself, and does let you identify truncated or corrupted files if they were encoded with Lame.

Peter