optimize failing sometimes

Good day, I am running into an issue where certainly videos cannot be optimized on my unraid server running Plex 1.12.0.4829. The video queues up, then immediately goes to -128066813652%, and then fails a bit after.

Now, this is not the case with all items, as some have no issues doing so. Best I can tell, it seems to fail in the following scenario:

  1. Have a 1080p movie existing, and added to Plex normally.
  2. Delete 1080p copy directly from disk at a later point, and paste 4k copy into the folder.
  3. Plex sees 4k copy no problem.
  4. Failure to optimize the 4k copy.

I create a new Plex server on Windows 10 Pro x64, and added this same 4k file, and had no issues optimizing.

I also had a couple other movies in 1080p that I later added 4k copies, then removed the 1080p copies using the Plex interface. These 4k copies had no problems optimizing.

I tried cleaning bundles, emptying trash, and optimizing the database, but this did not resolve the issue.

I have attached logs, but I am not sure which ones to look through, as there are quite a few.

Thank you much!

I ended up running my problems files through MKVToolNix and removing TRUEHD7.1 audio track, other languages, subtitles, and 1080p streams. Everything works perfectly now.