Server Version#: Windows 10 with 1.24.0.4930
Player Version#: N/A
I’ve mentioned this in some other threads, but since this seems to be a legit bug I though it merited a new thread with more info.
Problem: Sonic Analysis spins up transcoder processes, but it is possible for a transcoder process to get stuck on a file and run indefinitely. This will completely stop SA from making further progress. It also consumes some CPU, indefinitely. (Well, maybe not indefinitely… but I waited a couple of days in one case and it didn’t fix itself.)
If you manually kill a stuck transcoder process, per the debug log SA will resume and the completion percent will start counting up again.
When SA completes scanning, it will let you use the feature. It will also go back to the files it missed, and get stuck again, consuming CPU power.
In my library I found 2 mp3 files that SA could not transcode. I checked them with all the MP3 validation tools I have, and the files seemed to be fine.
However, in Plex, the files have runtimes that are clearly absurd.
I re-downloaded the files and put them in the library, replacing the originals. There was no change (and the files still look good in other software).
I then tried re-writing a bad file by using LAME to transcode it from 320 CBR to 320 CBR. When I put the refreshed file in my library the runtime changed from about 24 hours to about 6 hours. I don’t know anything about how LAME works in detail, so maybe this left some info in the file that Plex hated.
OK, the nuclear option… with another tool I transcoded the MP3 to a WAV file. Then with LAME, I crunched it back to a CBR 320 mp3. Believe it or not, the transcoder got stuck again.
But, I cannot be sure that something isn’t cached.
One last try. I deleted the MP3, rescanned the library, emptied the trash, cleaned bundles, and even rebooted. The file is no longer visible in Plex, no metadata can be hanging around. Then I made a new MP3 by expanding the original MP3 to a WAV, and then making a new MP3 with LAME. OK, now the MP3 in Plex has the correct runtime. And, SA saw the changed album and analyzed it without the transcoder getting stuck.
I re-made the other MP3 file in the same way and everything seems OK now.
So may be a few problems depending on how you look at it.
- PMS may be overly picky about the MP3 file format since it saw a bad runtime for a file that every other tool I have thought was OK
- Transcoding a “bad” file may lead to a transcode process that won’t quit.
- If during Sonic Analysis a transcoder gets stuck, it stops SA from proceeding. There should be a watchdog of some sort. I guess.
If your SA gets stuck, use Process Explorer to see what any transcoder processes are working on. Inspect those files in your Plex library to see if they have any odd metadata, like an abnormal runtime. If so, try to replace/refresh those files and be sure to Empty Trash and maybe even restart the server to be sure nothing hinky is cached.