Find all corrupted mp3 files on Linux

Find all corrupted mp3 files on Linux

I encountered a small issue last week, while updating my music library. I noticed that some new mp3 files that I added were corrupted and thus could not be read by my radio.

The problem is that I do not remember what song exactly is corrupted and need replacement.

I found that mp3val is a nice little linux script that helps you check the integrity of a music file.

Let's combine mp3val checkup with a loop and log all the results.

$ find . -name "*.mp3" -exec nice mp3val -f -t -l/home/pi/mp3val.log "{}" \;