Tip: You can spot some bad mp3 files if you sort by Track Duration

If I view my Music library by Track, and sort by Duration, I see a handful of files that have absurd durations… up to 31 hours. (pic below)

Plex refuses to play these files… Playback starts, but there is just silence. In the past, Sonic Analysis used to get stuck on them. (Fortunately, they taught it to skip them because this prevented SA from completing its run back in the day.)

In any case, sorting your library this way can give you a to-do list of things to fix.

But how to fix them?

Interestingly, every other mp3 player I have tried plays the files fine, and a handful of mp3 validator tools also see these files as OK. All of the automatic fixer utilities I have found pass these files through unchanged. Whatever is wrong with them, a lot of tools cannot see it.

ffprobe, however, shows a variety of errors.

I have tried using ffmpeg to rewrite the bad files (-c copy), and what happens is it creates a tiny output file that has no audio data.

The only way I have found to fix files like this is to convert to WAV and then reencode. That’s obviously not great. If anyone has a tool that will magically un-screw files like this, I would love to know about it.

Did you try this? https://mp3val.sourceforge.net/

The latter is the most powerful, I think.

1 Like

Just wanted to say thanks for the tip. It never occurred to me to do this! Smart.

Yep and they say the files are fine!

Only ffprobe sees a problem, including an unreasonable running time. And then ffmpeg can’t decode the file, either. Since Plex relies heavily on ffmpeg, no surprise that Plex chokes too.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.