Entrepreneurial Leadership and Management . . . and Other Stuff


Fixing Broken MP3 Files

About six months ago, I updated to a new version of iTunes and found that only about 20% of my MP3s could be added to my library. That’s not 20% of the new ones, but 20% of the songs that were already loaded in the previous version of iTunes (I’m omitting the long story of why I cleared my library and reloaded it). So, out of my 3,000 or so songs, iTunes only recognized about 600 of them. The first thing that went through my head was that Steve Jobs had personally blacklisted almost all the tunes I like. Come on . . . that’s now more rational than your first knee-jerk reaction to it, right? After dismissing the idea that Mr. Jobs might be carrying out a personal vendetta against me, I really panicked when I thought my music had somehow actually become corrupted. But no, the music was recognized by the myriad of other music players on my computer without any problems – I could even play them without issue from Windows Explorer.

My next thought was, do I even care? After all, the other music players were playing my music just fine. The trouble is that if you want to get music on any of the latest generation iPods/iPhones, you need iTunes. Eventually, the other players will catch up, but Apple seems determined to stay ahead of them, making iTunes the only method for transferring music and building playlists on cool, little Apple music players. Nothing like openness . . .

Figuring out what was actually wrong was a challenge. Internet searches yielded almost nothing. While I suspected that iTunes itself was the root cause of the problem – screwing up the files at some point in the past – I couldn’t verify that. So, I had to hack at searches until I stumbled upon MP3val, a free tool (Windows only) that checks the integrity of any MP3 file. Once run, I found out that the headers of most of my MP3 files were corrupted. Recent versions of iTunes, apparently are a real bitch about having proper MP3 headers, so rather than telling me what was wrong, they just chose not to import the files with “problems.” I used MP3val to “fix” a few files and iTunes imported them without any issues. Finally, a solution.

But not so fast . . . while fixing the headers, MP3val lost most (almost always all) of the tag information in the header – title, artist, album art, album title, song title, etc. So, to really fix the files, I had to run them through MP3val and then re-insert all the tag information again. A serious pain in the ass. I experimented with several methods and came up with this one. If you have such a problem. I hope this helps.

  1. Make a copy of the directory tree where your music is – everything. You never know when you’ll mess something up even more and have to restore from your copy. Don’t worry about the disk space, assuming you have what you initially need, you’ll delete this backup when you’re done.
  2. Now, iterate through manageable segments of your music library (a hundred files or so at a time if you can – I keep my music in subdirectories broken up by genre and/or date so I just dealt with one directory at a time) – and perform each of these steps on the group of files:
    • Use your favorite tagging program (iTunes, obviously won’t work) to create new filenames for the songs that contain all the tag information from each MP3 file (they’ll look something like this: “Doobie Brothers – Long Train Runnin’ – Best of the Doobies – 02 – Rock – 1976.mp3.” If your problem is similar to mine, you’ll be able to get everything except album art into the tag. I used MP3tag’s “convert” function to do this. The idea is to retain as much tag information as possible prior to running MP3val to fix the header.
    • Then, use MP3val to “scan” then “repair” the files with problems. You’ll likely, but not always, lose all existing tag info.
    • Go back to your tagging program and reverse the process in number 1, above. Convert the file name back to tag information.
    • If you have missing or incorrect tag information, now would be a good time to fix it. This includes importing album art. Most tagging programs can look up the album art for you automatically assuming you have the correct album name.
  3. Once you’re sure everything worked out, delete the backup.

There you go, just three steps. OK, one of them is complicated and if you have to go through 2,400 files, time consuming too. When I was done, iTunes read ‘em all. I also got the anal-retentive monkey off my back by making sure all my music had it’s correct information and album art. While I still hate iTunes, I recognize its necessary evilness and am coping with it thanks to MP3val and a boatload of time to fix everything.

Related articles

Enhanced by Zemanta
 October 28th, 2010  
 How To, Software  
 Comments Off on Fixing Broken MP3 Files

Accessing the Buffalo Terastation from Vista

I was an early adopter of the Terastation when it was released a few years ago.  The Terastation is a pretty typical (well, now pretty typical) SOHO-type NAS that is a fairly inexpensive solution to getting loads-o-disk space on your local network.  It’s not screamingly fast, but it’s got loads of features including a good web interface, some basic security, gigabit networking, multiple RAID configurations for its four drives, including RAID 5 and a built in media server that works very well with Buffalo’s excellent LinkTheater media players.

Having all this happiness with the solution only made for that much more dismay when I discovered that Vista doesn’t play nicely with the Terastation.  For the most part, machines running Vista can’t see what’s on shared folders hosted on the Buffalo NAS.  Like most problems, though, I was able to find a resolution to this issue by searching the web.  It’s always a good thing when you realize that no matter how much of an early adopter of technology you are, they is always someone who has blazed the trail ahead of you.

The bottom line is that Vista puts security in front of functionality and all you have to do to get the Terastation to work is mildly circumvent some of that protection.  I found the very nicely described solution on the Scale|Free blog.  It’s pretty easy to implement and I’m sure applies to other NAS solutions that may not have yet been updated to play nice with Vista.

  • Run the Local Security Policy app – secpol.msc
  • Go to Local Policies | Security Options and choose the “Network Security: LAN Manager Authentican Level” item
  • Set it to “Send LM & NLTM, use NTMLv2 session if negotiated”

Basically, Vista is set up to use NTMLv2 only.  All this change is doing is adding the old LM security protocol back into the mix while still using the newer protocol when it’s called for.

Works like a charm.

 July 9th, 2007  
 Computers, How To