Plexamp Waveform is Incorrect

Hi, I’m running Plex Media Server v1.27.0.5897 and Plexamp 4.2.2.

Today, I’ve noticed that my latest added music has either no waveforms generated at all, except for a few songs on albums, and other albums have waveforms generated for all songs, but they do not line up with what’s playing.

Example video:
Plexamp Waveform.mp4.zip (5.3 MB)

It seems the waveform maybe started being generated when only ~45s of the song was uploaded, as it does seem correct for the beginning of the song. Not sure if PMS started generating it while the song was still being uploaded over SFTP, or if the entire waveform data is there, and Plexamp is just showing it “zoomed in” for some reason.

Clicking Refresh Metadata on the Plex Web client doesn’t help, and clicking Analyze doesn’t seem to do anything–it doesn’t seem to actually trigger the server to start scanning the file again.

Scanning partial files is fraught with peril for many reasons, so you should ensure scans don’t run automatically when you’re doing transfers.

If you analyze an album, it’ll queue it up for loudness and sonic analysis during the next scheduled period or scan, depending on your settings, and that’ll repair the issue.

Just now remembered as long as Plexamp has had the waveform feature, it’s never worked as soon as I’ve added music to the server anyways, even though that’s the setting I have:

Instead, the waveforms only show up the next day, after my scheduled tasks run from 3-8am.

So, it’s probably not Plex analyzing the files while they’re still being uploaded, and instead just stopping early, in the middle of analyzing them.

it wouldn’t stop mid track.

Okay, then I’m not sure what could be causing that, considering waveform analysis doesn’t work on adding media.

In the event that it is scanning on media add, what’s the solution here? I have “Scan my library automatically” turned on, is the only solution to turn that off? I don’t want to have to manually scan every time I add media to the server. If the server is scanning during transfers, it’s not me initiating it. Is there no way to make the server arbitrarily wait 5 minutes before attempting to do waveform analysis, just to give it more of a chance of being fully transferred?

Yes. If you’re transferring data over, there’s no way for the server to tell when you’re actually done.

Turn that off and scan when you’re done transferring.

I’ve selected “Analyze” on the Plex Web interface for the album showing the problem in the video, and even after running the scheduled tasks/maintenance overnight from 3-8am, the incorrect waveform remains.

Edit: Logs don’t even show an attempt to scan either the album with incorrect waveform data (Remi Wolf - I’m Allergic To Dogs!) that was marked for analysis yesterday, or the album with no waveform data at all (Dominic Fike - What Could Possibly Go Wrong?) last night.

Plex Media Server Logs_2022-06-29_16-17-26.zip (5.5 MB)

Not sure which log files should contain the music analysis the waveform generation uses, but interestingly all of the Plex Media Scanner Deep Analysis and Scanner Analysis logs were from this morning at ~3:10AM–I’d imagine they’re only supposed to split into new log files when a new day starts or when the server restarts? I didn’t restart the server–is it possible something is crashing repeatedly?

It’s possible that waveform was cached inside Plexamp.

Clear caches in Advanced settings and see if it comes back.

Just had been editing my previous post when you replied to add logs and additional info.

After clearing cache in Plexamp, the incorrect waveforms for the Remi Wolf album have been fixed, however the album without any waveforms at all still does not have any waveforms generated.

Is there any way to make the Analyze button in Plex Web generate this info immediately, instead of just scheduling it?

Set it to analyze loudness after scanning, then run a scan and immediately cancel.

Plex Media Server Logs_2022-06-29_16-54-56.zip (5.6 MB)

  1. Clicked Analyze on album
  2. Started scan of library
  3. Cancelled scan of library
  4. Plex Web status area showed sonic processing of one album was occurring
  5. Cleared cache of Plexamp
  6. Restarted Plexamp
  7. Started playing album, still no waveforms

Patience, grasshopper:

Jun 29, 2022 16:53:17.091 [0x7f3385951b38] DEBUG - Scanner [Plex Music]: Cancelling scan.
Jun 29, 2022 16:54:11.969 [0x7f3385679b38] DEBUG - [MusicAnalysis] Activity: updated activity e22c9a2a-1b50-47d7-a956-53c21980a531 - completed 80.0% - Sonic Analysis
Jun 29, 2022 16:54:56.064 [0x7f338758fb38] DEBUG - Diagnostics: Building logfile zip

It’s still working on Sonic, will probably then move onto loudness.

I waited for the Plex Web interface’s status pop-up to no longer show the Sonic Analysis was occurring before I tried clearing the cache in Plexamp and playing, and then generating the logs. It’s now been half an hour and there are still no more entries in the log after that 80% one regarding Sonic Analysis, and the Plex Web client still doesn’t show sonic analysis is occurring. And the album still does not have waveform data.

Not trying to be rude or cause problems, just not understanding and it’s really seeming like something is getting stuck.

I’d need to see logs which cover the period after Sonic analysis to opine on that, and make sure you have these set.

The Dominic Fike album did not have waveforms generated for the rest of the day yesterday, but again overnight sometime from 3-8am it fixed itself, as today the waveforms are there.

I found other albums also added recently that had no waveform, and marked them for analysis earlier this morning. Did a full library scan and let it complete, still no waveforms hours later. I imagine if I wait for the scheduled maintenance to run overnight, they’ll be there tomorrow. Just not sure why they won’t generate when media is added, or when told to by scan.

I’m assuming the few malformed waveforms did start generating when the files were partially uploaded, not sure why only those ones had that happen, as like I’ve said since waveforms have been added to Plexamp, they’ve never appeared for me until the next day. I’ve set my SFTP client to use temp file extensions during upload, so hopefully that prevents partially-generated waveforms and partial file scans in the future.

I do have those settings set, currently:

And here are the logs as of today, where they’ll likely show the Dominic Fike album from yesterday being generated:

Plex Media Server Logs_2022-06-30_12-25-10.zip (5.4 MB)

Today’s album that doesn’t have waveforms is Allie X - Cape God, which I marked for analysis before running a full library scan and waiting a few hours for any loudness analyzation to finish.

Thanks, I’m checking internally as there may have been a regression around loudness processing after a scan (as opposed to scheduled).

1 Like

I think I am experiencing the same issue. In my case yesterday, I moved an album from one folder to another folder changing its location. The old location the track had a waveform showing. After I moved the same file to a new folder, the waveform was missing. I have PMS set for Sonic analysis as a scheduled task and as media is added. I forced PMS to scan yesterday, I also forced PMS to analyze. Then overnight PMS scanned again as scheduled.

This morning the same track still no waveform. I added a few new tracks to the server yesterday also and those new tracks have generated waveforms as expected.

Not sure why this one track is not being picked up on a full library scan. Should I turn off “run a partial scan when changes are detected”? Maybe something conflicting there?

Hmm… if the folder move was recognized as such, I would have expected it to maintain the loudness data.

Can you zip up and upload your server logs before the window of opportunity is lost?

Also, if you manually select Analyze on the album and then scan/cancel, it should recompute loudness and sonic data.

Thank you. I direct messaged you the logs. The track / album your looking for is from artist " Hardcore Superstar" track is you can’t kill my rock and roll. This album was in a different location, I renamed a few albums and added a few albums and forced Plex Server to scan. I let it run the whole scan on the whole library and when it was done it didn’t provide waveform. I normally keep my settings to scheduled only. But for this time I switch the setting to scheduled and added and then I let it run during the day on 10th. I think I tried on the 9th also late at night.

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