mp3check can check MP3 files for consistency and print several errors and warnings, list stream attributes (in color).
Layer 1, 2, 3, MPEG1.0+2.0 are currently supported.
CRC check for layer 3.
It can process directories recursively and also fix certain errors.
sudo aptitude update sudo apt-get install mp3check
mp3check -e file
mp3check --cut-junk-start --cut-junk-end --cut-tag-end --fix-headers input.mp3
To repair:
mp3check options file, where options is one of these :
mp3check --help