Plex Media Server - Transcoder Forum Preview - Apollo & Gemini Lake CPUs

Plex Media Server - Transcoder Forum Preview

ALL:

Below please find our first step toward fixing what ails PMS and the transcoder.

In this step, we are addressing the Apollo Lake, Gemini Lake, and older processors.
Those processors had been configured to use the Intel Media Driver.

Unfortunately, the Intel Media Driver doesn’t fully support all of them.
We’ve therefore reconfigured and will now use the Intel Video Driver (i965)

In this build, you will find -

  1. Apollo Lake CPUs will now use the IVD (Intel Video Driver - i965) by default

  2. Gemini Lake CPUs will now use the IVD by default

  3. All supported QSV CPUs, SkyLake and below, will use IVD by default.

  4. All other CPUs retain their IMD (Intel Media Driver) current configuration.

We would very much like to include this in the upcoming PMS release rather than waiting another month for formal release HOWEVER we must confirm it works for everyone before doing so.

We would greatly appreciate everyone’s assistance in helping us “BETA Preview” this change.

Desktop Platforms

NAS Devices

Plex,inc Docker users

You may update by manually installing the DEB file inside the container with dpkg as always


Please report issues, as well as your feedback, here as soon as is convenient to do so.
Thanks.

edit: switched the links to come directly from our build system

2 Likes

Is this the same build I have been testing?

Yes. This is build 7605 which I’ve shared privately with a few folks.

Hover over the link and you can see the filename.

Excellent Chuck, thank you. Will get on this.

Should we first remove the i965 driver and activation string added to Preferences.xml? I have been using this as I use a Gemini Lake Synology.

You can leave the i965 spec in or remove it as you deem appropriate.

If you want to try with and without to confirm our results that would be great.

Please do remember, the first launch will download the IVD driver which will take a few extra seconds to download then load into PMS.

Something is weird here. I use the Docker version of PMS and ran the dpkg -i plexmediaserver_1.32.8.7605-63e66830a_amd64.deb command inside the container. After the restart of the container PMS is version 1.32.7.7571, not 1.32.8.7605.

Log from the container:

root@Plex-Media-Server:/# dpkg -i config/plexmediaserver_1.32.8.7605-63e66830a_amd64.deb 
(Reading database ... 9448 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.32.8.7605-63e66830a_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Docker detected.  Preinstallation validation not required.
Unpacking plexmediaserver (1.32.8.7605-63e66830a) over (1.32.1.6999-91e1e2e2c) ...
Setting up plexmediaserver (1.32.8.7605-63e66830a) ...
PlexMediaServer install: Docker detected. Postinstallation tasks not required. Continuing.
root@Plex-Media-Server:/#

Installed the same DEB file

Version 1.32.8.7605-63e66830a  An update is available.

Checked both the build system and my original google drive share.
Both are correct.

Whose docker image are you using?

Running on Synology DS1019+ via Docker, manually updated deb inside container and played one file. HW transcoding kicked in, PMS CPU jumped from 1% to 10%, so initial thoughts is it looks good. Will keep this version for a few more days for further testing.

Just to add I was pinned to the previous working version image and never attempted any manual workarounds.

1 Like

I use the official Docker image.

Here’s the Docker compose script (with censored claim token) I used in Portainer:

version: "3.9"

services:
  plex-media-server:
    image: plexinc/pms-docker:1.32.1.6999-91e1e2e2c
    container_name: Plex-Media-Server
    hostname: Plex-Media-Server
    network_mode: "host"
    environment:
      - TZ=Europe/Berlin
      - PUID=1043
      - PGID=100
      - PLEX_CLAIM=claim--XXXXXXXXXXXXXXX
    volumes:
      - /volume1/docker/Plex-Media-Server:/config:rw
      - /volume1/docker/Plex-Media-Server/Medien:/Medien:ro
    devices:
      - /dev/dri:/dev/dri
    restart: always

After the container was built I installed the version from your OP as mentioned in my previous post. And after that was done I restartet the container and the web UI said it’s now on version 1.32.7.7571. Tried it twice with the same result.

@Vcxy

Would you please check the DEB file for me.

[chuck@lizum Downloads.1999]$ md5sum plexmediaserver_1.32.8.7605-63e66830a_amd64.deb
bcb2ba139f742c254a6b0fe8f716607c  plexmediaserver_1.32.8.7605-63e66830a_amd64.deb
[chuck@lizum Downloads.2000]$ 

Looking for md5sum of bcb2ba139f742c254a6b0fe8f716607c

@ChuckPa
That doesn’t seem to be the problem. But I just checked the logs when restarting the docker container after the update.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] 40-plex-first-run: executing... 

Plex Media Server first run setup complete

[cont-init.d] 40-plex-first-run: exited 0.

[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 

[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.

[cont-init.d] 50-plex-update: executing... 

[cont-init.d] 50-plex-update: exited 0.

[cont-init.d] done.

[services.d] starting services

Starting Plex Media Server.

[services.d] done.

Critical: libusb_init failed

Connection to 172.104.247.122 closed by remote host.

Stopping Plex Media Server.

kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

[cont-finish.d] executing container finish scripts...

[cont-finish.d] done.

[s6-finish] waiting for services.

[s6-finish] sending all processes the TERM signal.

[s6-finish] sending all processes the KILL signal and exiting.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] 40-plex-first-run: executing... 

[cont-init.d] 40-plex-first-run: exited 0.

[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 

[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.

[cont-init.d] 50-plex-update: executing... 

Attempting to upgrade to: 1.32.7.7571-13cdc68dc

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   190    0   190    0     0   1496      0 --:--:-- --:--:-- --:--:--  1496


  0 72.1M    0 45750    0     0  83030      0  0:15:10 --:--:--  0:15:10 83030
  2 72.1M    2 2158k    0     0  1384k      0  0:00:53  0:00:01  0:00:52 2096k
  5 72.1M    5 4430k    0     0  1709k      0  0:00:43  0:00:02  0:00:41 2150k
  7 72.1M    7 5694k    0     0  1564k      0  0:00:47  0:00:03  0:00:44 1830k
  8 72.1M    8 6526k    0     0  1433k      0  0:00:51  0:00:04  0:00:47 1620k
  9 72.1M    9 7230k    0     0  1304k      0  0:00:56  0:00:05  0:00:51 1439k
 10 72.1M   10 7950k    0     0  1215k      0  0:01:00  0:00:06  0:00:54 1162k
 11 72.1M   11 8654k    0     0  1148k      0  0:01:04  0:00:07  0:00:57  854k
 12 72.1M   12 9262k    0     0  1084k      0  0:01:08  0:00:08  0:01:00  728k
 13 72.1M   13 9838k    0     0  1022k      0  0:01:12  0:00:09  0:01:03  653k
 13 72.1M   13 10.0M    0     0   978k      0  0:01:15  0:00:10  0:01:05  617k
 14 72.1M   14 10.4M    0     0   925k      0  0:01:19  0:00:11  0:01:08  550k
 15 72.1M   15 11.0M    0     0   893k      0  0:01:22  0:00:12  0:01:10  515k
 16 72.1M   16 11.5M    0     0   874k      0  0:01:24  0:00:13  0:01:11  515k
 17 72.1M   17 12.2M    0     0   865k      0  0:01:25  0:00:14  0:01:11  558k
 18 72.1M   18 13.2M    0     0   870k      0  0:01:24  0:00:15  0:01:09  640k
 19 72.1M   19 14.0M    0     0   863k      0  0:01:25  0:00:16  0:01:09  721k
 20 72.1M   20 14.7M    0     0   864k      0  0:01:25  0:00:17  0:01:08  789k
 21 72.1M   21 15.6M    0     0   863k      0  0:01:25  0:00:18  0:01:07  834k
 22 72.1M   22 16.3M    0     0   856k      0  0:01:26  0:00:19  0:01:07  829k
 23 72.1M   23 17.0M    0     0   850k      0  0:01:26  0:00:20  0:01:06  787k
 24 72.1M   24 17.8M    0     0   843k      0  0:01:27  0:00:21  0:01:06  776k
 25 72.1M   25 18.4M    0     0   835k      0  0:01:28  0:00:22  0:01:06  737k
 26 72.1M   26 19.2M    0     0   836k      0  0:01:28  0:00:23  0:01:05  733k
 27 72.1M   27 20.0M    0     0   835k      0  0:01:28  0:00:24  0:01:04  753k
 28 72.1M   28 20.7M    0     0   833k      0  0:01:28  0:00:25  0:01:03  764k
 29 72.1M   29 21.4M    0     0   828k      0  0:01:29  0:00:26  0:01:03  761k
 30 72.1M   30 22.1M    0     0   822k      0  0:01:29  0:00:27  0:01:02  761k
 31 72.1M   31 22.6M    0     0   812k      0  0:01:30  0:00:28  0:01:02  699k
 32 72.1M   32 23.1M    0     0   802k      0  0:01:31  0:00:29  0:01:02  641k
 32 72.1M   32 23.6M    0     0   793k      0  0:01:33  0:00:30  0:01:03  589k
 33 72.1M   33 24.2M    0     0   785k      0  0:01:34  0:00:31  0:01:03  557k
 34 72.1M   34 24.6M    0     0   776k      0  0:01:35  0:00:32  0:01:03  522k
 34 72.1M   34 25.1M    0     0   766k      0  0:01:36  0:00:33  0:01:03  508k
 35 72.1M   35 25.5M    0     0   757k      0  0:01:37  0:00:34  0:01:03  491k
 35 72.1M   35 25.8M    0     0   745k      0  0:01:39  0:00:35  0:01:04  453k
 36 72.1M   36 26.3M    0     0   737k      0  0:01:40  0:00:36  0:01:04  438k
 37 72.1M   37 26.9M    0     0   734k      0  0:01:40  0:00:37  0:01:03  462k
 38 72.1M   38 27.6M    0     0   733k      0  0:01:40  0:00:38  0:01:02  508k
 39 72.1M   39 28.2M    0     0   731k      0  0:01:40  0:00:39  0:01:01  551k
 39 72.1M   39 28.8M    0     0   727k      0  0:01:41  0:00:40  0:01:01  598k
 40 72.1M   40 29.3M    0     0   722k      0  0:01:42  0:00:41  0:01:01  613k
 41 72.1M   41 29.9M    0     0   719k      0  0:01:42  0:00:42  0:01:00  609k
 42 72.1M   42 30.4M    0     0   714k      0  0:01:43  0:00:43  0:01:00  572k
 42 72.1M   42 30.8M    0     0   709k      0  0:01:44  0:00:44  0:01:00  533k
 43 72.1M   43 31.2M    0     0   703k      0  0:01:44  0:00:45  0:00:59  510k
 44 72.1M   44 31.9M    0     0   701k      0  0:01:45  0:00:46  0:00:59  528k
 45 72.1M   45 32.4M    0     0   698k      0  0:01:45  0:00:47  0:00:58  518k
 45 72.1M   45 32.9M    0     0   694k      0  0:01:46  0:00:48  0:00:58  521k
 46 72.1M   46 33.4M    0     0   691k      0  0:01:46  0:00:49  0:00:57  537k
 47 72.1M   47 33.9M    0     0   688k      0  0:01:47  0:00:50  0:00:57  555k
 48 72.1M   48 34.7M    0     0   688k      0  0:01:47  0:00:51  0:00:56  567k
 49 72.1M   49 35.3M    0     0   688k      0  0:01:47  0:00:52  0:00:55  589k
 49 72.1M   49 35.7M    0     0   683k      0  0:01:48  0:00:53  0:00:55  570k
 50 72.1M   50 36.3M    0     0   681k      0  0:01:48  0:00:54  0:00:54  580k
 51 72.1M   51 36.8M    0     0   680k      0  0:01:48  0:00:55  0:00:53  590k
 52 72.1M   52 37.5M    0     0   679k      0  0:01:48  0:00:56  0:00:52  580k
 52 72.1M   52 38.1M    0     0   679k      0  0:01:48  0:00:57  0:00:51  586k
 54 72.1M   54 39.0M    0     0   683k      0  0:01:48  0:00:58  0:00:50  686k
 55 72.1M   55 39.9M    0     0   686k      0  0:01:47  0:00:59  0:00:48  740k
 56 72.1M   56 40.7M    0     0   688k      0  0:01:47  0:01:00  0:00:47  784k
 57 72.1M   57 41.4M    0     0   689k      0  0:01:47  0:01:01  0:00:46  803k
 58 72.1M   58 42.2M    0     0   690k      0  0:01:46  0:01:02  0:00:44  817k
 59 72.1M   59 43.0M    0     0   694k      0  0:01:46  0:01:03  0:00:43  820k
 61 72.1M   61 44.1M    0     0   700k      0  0:01:45  0:01:04  0:00:41  859k
 62 72.1M   62 45.3M    0     0   708k      0  0:01:44  0:01:05  0:00:39  954k
 65 72.1M   65 46.9M    0     0   722k      0  0:01:42  0:01:06  0:00:36 1128k
 67 72.1M   67 48.7M    0     0   739k      0  0:01:39  0:01:07  0:00:32 1350k
 70 72.1M   70 50.8M    0     0   759k      0  0:01:37  0:01:08  0:00:29 1583k
 73 72.1M   73 52.9M    0     0   778k      0  0:01:34  0:01:09  0:00:25 1796k
 76 72.1M   76 54.8M    0     0   795k      0  0:01:32  0:01:10  0:00:22 1933k
 78 72.1M   78 56.6M    0     0   811k      0  0:01:31  0:01:11  0:00:20 1999k
 81 72.1M   81 58.4M    0     0   824k      0  0:01:29  0:01:12  0:00:17 1978k
 83 72.1M   83 60.2M    0     0   838k      0  0:01:28  0:01:13  0:00:15 1932k
 86 72.1M   86 62.2M    0     0   854k      0  0:01:26  0:01:14  0:00:12 1909k
 88 72.1M   88 63.6M    0     0   862k      0  0:01:25  0:01:15  0:00:10 1789k
 89 72.1M   89 64.6M    0     0   864k      0  0:01:25  0:01:16  0:00:09 1624k
 90 72.1M   90 65.5M    0     0   865k      0  0:01:25  0:01:17  0:00:08 1462k
 91 72.1M   91 66.2M    0     0   863k      0  0:01:25  0:01:18  0:00:07 1233k
 92 72.1M   92 66.8M    0     0   860k      0  0:01:25  0:01:19  0:00:06  951k
 93 72.1M   93 67.4M    0     0   856k      0  0:01:26  0:01:20  0:00:06  772k
 94 72.1M   94 67.9M    0     0   853k      0  0:01:26  0:01:21  0:00:05  688k
 95 72.1M   95 68.5M    0     0   849k      0  0:01:26  0:01:22  0:00:04  604k
 95 72.1M   95 69.0M    0     0   845k      0  0:01:27  0:01:23  0:00:04  566k
 96 72.1M   96 69.4M    0     0   841k      0  0:01:27  0:01:24  0:00:03  533k
 97 72.1M   97 70.1M    0     0   839k      0  0:01:27  0:01:25  0:00:02  560k
 98 72.1M   98 70.9M    0     0   839k      0  0:01:28  0:01:26  0:00:02  603k
 99 72.1M   99 71.7M    0     0   838k      0  0:01:28  0:01:27  0:00:01  655k
100 72.1M  100 72.1M    0     0   837k      0  0:01:28  0:01:28 --:--:--  691k

dpkg: warning: downgrading plexmediaserver from 1.32.8.7605-63e66830a to 1.32.7.7571-13cdc68dc

(Reading database ... 9563 files and directories currently installed.)

Preparing to unpack /tmp/plexmediaserver.deb ...

PlexMediaServer install: Pre-installation Validation.

PlexMediaServer install: Docker detected.  Preinstallation validation not required.

Unpacking plexmediaserver (1.32.7.7571-13cdc68dc) over (1.32.8.7605-63e66830a) ...

Setting up plexmediaserver (1.32.7.7571-13cdc68dc) ...

PlexMediaServer install: Docker detected. Postinstallation tasks not required. Continuing.

[cont-init.d] 50-plex-update: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

Starting Plex Media Server.

Critical: libusb_init failed

Do you see the line where it says dpkg: warning: downgrading plexmediaserver from 1.32.8.7605-63e66830a to 1.32.7.7571-13cdc68dc? I don’t know what’s up with that but probably you can tell me.

You’re getting forcibly downgraded to BETA release.

Is your container set to auto update ?

How do I know that?

Apparently it’s your Portainer ??

https://www.reddit.com/r/portainer/comments/yyhqsa/automatically_update_containers/

I don’t use docker except for testing.

Update seems to work for my 920+ on DSM 7. Tried multiple transcoding streams from different apps. lmk if specific testing is needed. Thank you for your work!

1 Like

Portainer afaik doesn’t have an auto update function. The last time I tried it exactly like this it worked completely fine.

Edit:
I stopped the Portainer container before restarting the PMS container after running the update. Same result. It still gets downgraded. I don’t use watchtower or anything that auto updates my containers.

Edit 2:
I even tried the update from within a docker container with the “latest” and “beta” tag but it always gets downgraded. I don’t know what’s wrong. Guess I sadly can’t test this build. :cry:

Tested here on a Synology 720+, Gemini lake NAS and no issues found. Transcoding CPU usage stayed low. Also tested using a subtitled vid.

This was firstly leaving the vaapidriver reference in the preferences.xml and also after removing it, and restarting the server. All good.

Can also confirm the datestamp on the IVD driver below the cache folder updated, showing a new one had been downloaded. No noticeable delay at all.

1 Like

Also tested on a DS720+ Gemini, no issues.

Did some conversion from 4k > 1080p and used HW, added some sub-titles and seemed fine. At 720p one video had strange colour seperation when converted from 4K - but playback was smooth with low CPU usage and HW transcoding.

1 Like

Tested on DSM 7 920+ and all seems fine now. I removed i965 from my preferences as well.

1 Like