Optimizer broken since 1.18.6.2368?

Hi,

i think the optimization process of plex 1.18.6.2368 is not working properly since the new version. It takes forever to convert a file and in the end the file is not optimized as it was set, it seems to use a completely different profile. For example I tried to convert a small 1080p file, 1,5GB Bitrate 7000, using a 480p profile. But in the end, after half a day or more, it was a 1080p version that came out…I had seen this before in the beta version (1.18.6.2368) and thought it was because of that. I had to downgrade to the public version and everything went back to normal. But now with the new public update to the same version as the beta, the problem is back.

Ubuntu 18.04 (problem also existed under 16.04)
Plex 1.18.6.2368 beta and public (1.18.5.x without the without the said problem)
Intel Xeon e5-2650v4

Maybe this info helps, is from the optimization process:

/usr/lib/plexmediaserver/Plex Transcoder -codec:0 h264 -codec:2 dca -analyzeduration 20000000 -probesize 20000000 -i /data/media/Movies/The Day After (1983)/The Day After (1983).mkv -analyzeduration 20000000 -probesize 20000000 -i /transcode/Transcode/Sessions/plex-transcode-b7411820-faba-41bf-8697-66171c79f3dd-27732226-bbcb-44fa-8f26-dec262055445/temp-0.srt -filter_complex [0:0]scale=w=720:h=406[0];[0]format=pix_fmts=yuv420p|nv12[1] -filter_complex [0:2] aresample=async=1:ocl=‘stereo’:osr=48000[2] -map [1] -codec:0 libx264 -crf:0 19 -maxrate:0 1500k -bufsize:0 3000k -r:0 23.975999999999999 -preset:0 ultrafast -level:0 4.0 -x264opts:0 subme=2:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -map 0:1 -metadata:s:1 language=ger -codec:1 copy -copypriorss:1 0 -map [2] -metadata:s:2 language=eng -codec:2 aac -strict:2 experimental -aac_coder:2 fast -q:2 2 -f mp4 -map_metadata -1 -map_chapters -1 -movflags +faststart /data/media/Optimized Movie/Plex Versions/480p 17304/.inProgress/The Day After - Der Tag danach (1983).mp4.17304 -map 0:3 -metadata:s:0 language=eng -codec:0 copy -f srt /data/media/Optimized Movie/Plex Versions/480p 17304/.inProgress/The Day After - Der Tag danach (1983).mp4.17304.1843446.sidecar -map 1:s:0 -metadata:s:0 language=eng -codec:0 copy -f srt /data/media/Optimized Movie/Plex Versions/480p 17304/.inProgress/The Day After - Der Tag danach (1983).mp4.17304.1843447.sidecar -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/b7411820-faba-41bf-8697-66171c79f3dd/27732226-bbcb-44fa-8f26-dec262055445/progress

That shows it wants to create a 720x406 1.5 Mbps file. Is that not what the resulting file was? Can you provide the XML from PMS for that video?

Yeah, I saw that too. I just thought that the info might help solve the problem. It’s not a file specific problem because it was the same for every started file, no matter what size or quality it had. Which was converted with the previous server version and didn’t last forever and then also wrong…funny thing is that the file from my example still converts

211484.zip (6,9 KB)

I don’t see what the problem is. Your logs showed it wants to create the file as you asked. Did you stop the optimizer? I don’t see the final result in your XML file.

Oha, this is interesting how can you see my logs? :smiley: I didn’t send them anywhere… what I had copied up there was the info from the process. . The problem is that no file is created, or if one is created it takes 100000 years (like the current file which is supposedly still converting) and then what I set doesn’t come out. Which was not the case with the old server version. And yes a restart does not help either. I did this several times and as I said, I tried several different files…

I meant the snippet you posted above. That is the correct command to produce the file as you requested. If that didn’t work there is something else going on and I would need to see the full logs to investigate.

verbose or normal?

Debug. Start optimizing a new file. Let it continue for about 1 minute, then grab the logs.

Ok, I sent them to you.

Looks like you have 2 optimizers running at the same time. One for a movie and one for an episode of a TV show. I see you are using a docker. I’m not knowledgeable with dockers, but did you assign it enough cpu’s? I also see you’ve chosen to include subtitles so these are getting burned in. Burning in subtitles is a slower process and can definitely slow things down.

Hmmm so according to conversion activity only one conversion is running. Wouldn’t even know how to start two at the same time. Is that even possible?

The subtitle burning, where can I turn that off? This is the standard 480p profile from Plex, I don’t see any way to enable or disable it…

And regarding Docker, I haven’t changed anything there. It worked great with the old versions of Plex. So don’t think it’s because of that…

Problem still remains with the new server beta 1.18.7.2415

Well, since there was no answer now, I have now deleted all my already optimized versions. Scanned, emptied trash, restarted, scanned, emptied, optimized and finally restarted again. Then I tried to optimize a single file. The problem still exists…

Furthermore, how can I finish or delete an optimization job without having to delete all finished versions?

It would be nice if my questions could still be answered from above. Thanks

Hmmm so according to conversion activity only one conversion is running. Wouldn’t even know how to start two at the same time. Is that even possible?

The subtitle burning, where can I turn that off? This is the standard 480p profile from Plex, I don’t see any way to enable or disable it…

my logs

Plex Media Server Logs_2020-02-19_15-45-24.zip (5,3 MB)

I see in your new log that you tried to optimize a movie, but there is another video currently streaming, so the optimizer has going into the background and is waiting for the streaming video to end.

OK, but that’s not what’s causing the problem here either. I don’t think it was the problem before that either. Previously, when it was working, Plex also converted when something was playing simultaneously.
I have now restarted everything again and it doesn’t happen like before, so it has nothing to do with the fact that something was played.

new logs

Plex Media Server Logs_2020-02-19_23-38-33.zip (4,2 MB)

Ok. I see you have the option enabled to automatically scan for files. Can you try turning that off and try optimizing the file again? I think that might be interfering.

turned off, same problem

Plex Media Server Logs_2020-02-24_17-58-24.zip (4,0 MB)

Hey,

me again. I would now try to completely uninstall and reinstall Plex. And then see if the problem is still there. Is there a way to do that without losing my settings, history etc?

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