[How To] Fix Missing Soundprint

Continuing the discussion from No soundprint or wave pattern in seek bar:

To resolve the issue of the missing Soundprints from your audio tracks perform the following:

  1. Change your settings as per @elan’s recommendation.
  2. Move the album(s) or artist folders out of your music library using Finder, Explorer, Nautilus, or Terminal.
  3. Run the Scan Library Files command from your Plex GUI on your Music library.
  4. Move the folder(s) back to your music library location and re-run the Scan Library Files command.

Re-running the Scan Library Files after re-adding your music to your library will refresh metadata, music loudness, and sonic analysis.

:notes::headphones: Happy Listening!

~Zorg

To clarify, if you ever need to remove files from library and re-add them, there is a serious bug in the server which needs to be fixed. The maintenance tasks should find albums which need loudness analysis and perform the work without any such machinations.

2 Likes

Thanks for the reply. The next time I come across this issue, I’ll generate the logs while replicating the issue and upload them. I didn’t have debugging turned on this time around.

1 Like

Just to be clear, you know about this issue of missing loudness analysis and are addressing this in a future server update?

I’ve had this issue for the past few months after using Lidarr to reorganize the music files. Any new music files generate the loudness data correctly, but existing files have not. I have the settings set to “as a scheduled task and when media is added” in the library settings. I have the scheduled tasks time set to run from 1:00 to 0:00 which should allow it to run all day, it does for video previews when I have that enabled. I tried the steps of removing all the music files, running a scan library files, re-adding the music files, and running a scan again. Nothing changed at all. The only thing I can think of to resolve it is to remove the music library completely from Plex and re-add it. This is just not ideal as the library will have to spend hours/days generating sonic data, which is currently still working. Hopefully these logs help!
Plex Media Server Logs_2022-09-14_11-13-00.zip (4.7 MB)

We have anecdotal reports of issues, but we haven’t been able to reproduce them here.

So I see in your logs:

Sep 14, 2022 01:09:16.514 [0x7f2192deeb00] DEBUG - Butler: Scheduling loudness analysis for album 2.

I see this for many albums, I also see it analyzing the loudness:

Sep 14, 2022 01:11:06.863 [0x7f2192deeb00] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4365-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Media Scanner" --analyze-loudness --item 47537 --log-file-suffix " Deep Analysis"

So according to these logs, it should have computed loudness for around 2000 albums the night of September 13th.

Yeah it is definitely working for any new albums I add to the library. But existing albums all have no loudness data. I have 2455 albums in the library, so if the logs say 2000 computed that night the majority of the library should have loudness data. It’s just not there. I can confirm this by using the “Get Info” option on newly imported songs in an albums and the data is there. It will also shows a volumes graph or whatever in Plexamp. But for about 70% (just a guess) of the library there is no loudness data in “Get Info” or in Plexamp. I wonder if there is some disconnect between the “Plex Media Scanner” computing loudness data, and whatever index that stores the loudness data that isn’t getting updated.

Hmmm I’ll pass your logs by another dev and see if he has any ideas.

2 Likes

Thanks for taking the time to do that. I’m more than happy to provide any information/access you’d need if you’d want to take a deeper look.

I am seeing similar behavior. Some older tracks that I imported have been there for months and sonic analysis has never kicked in. I look at the info for the files and it shows no gain information.

Saw the following in the v. 1.29.2.6334 release notes:

(Music) Existing tracks could lose loudness data and be unable to rerun the loudness analysis (#13897)

@drzoidberg33: Would this be the fix to the loudness/soundprint issue as outlined in this thread?

Answering for him: yes!!

2 Likes

After this update anything you need to do to get loudness analysis going? Been a couple of days and I haven’t made any progress.

make sure you have scheduled task handling loudness and you should see it make progress every night. if not post server logs.

1 Like

Gave it one day and noticed the analysis is ongoing, albeit a tad slow. Thanks for that.

I am still experiencing this issue with version 1.29.2.6364. I have a particular 29-disc 249-song box set that my server refuses to scan for loudness. I tried reimporting the box set multiple times since I initially added it a month ago.

I noticed if my server is shut down, upon startup the activity monitor states loudness is being scanned for this box set. This occurred right before the attached logs. Also, the alerts page says, " The butler performed loudness analysis on 0 albums."

Plex Media Server Logs_2022-11-02_13-35-23.zip (1.3 MB)

It means to analyze this, the server will decode all tracks at once to WAV format, then store these in the /tmp folder. Then it performs analysis on those WAV files.
If the storage volume which hosts the /tmp folder is running full during this, analysis will fail.

(Particularly important if you use Docker which doesn’t map the container’s /tmp to a folder on hard drive by default, but simply uses RAM instead.)

Your server logs are unfortunately quite useless, since you don’t seem to have activated “debug” logging.

Hopefully, these logs help with debugging enabled. I changed my loudness task to run on import and as a scheduled task. The box set was reimported and I saw the loudness scanning message in the activity monitor. This message stayed for about 5 hours, however, the loudness data did not generate.

Plex runs on a Synology NAS with plenty of space on the volume. I noticed multiple music analysis folders containing WAV files for this set under my tmp folder.

Plex Media Server Logs_2022-11-03_14-02-04.zip (2.7 MB)

I found the fix for this. I need to move a few of the discs into my media folder at a time and wait the loudness scanning to complete. I am now up to disc 14 with loudness data.

1 Like