Plex not transcoding using my GPU - Linux

@Graniez Seems like your OpenCL and Beignet packages are not installed completely/correctly. Since this issue is isolated to just transcoding and tonemapping 4K HDR to something lesser

Give me 30 mins, please.

@ChuckPa & @Achilles

xyz@xyz-PC:~$ dpkg -l | grep -i opencl
rc  beignet                                       1.3.2-6+b10                                        amd64        OpenCL library for Intel GPUs - transitional dummy package
ii  beignet-opencl-icd:amd64                      1.3.2-6+b10                                        amd64        OpenCL library for Intel GPUs
ii  ocl-icd-libopencl1:amd64                      2.2.12-2                                           amd64        Generic OpenCL ICD Loader
xyz@xyz-PC:~$ dpkg -l | grep -i beignet
rc  beignet                                       1.3.2-6+b10                                        amd64        OpenCL library for Intel GPUs - transitional dummy package
ii  beignet-opencl-icd:amd64                      1.3.2-6+b10                                        amd64        OpenCL library for Intel GPUs
xyz@xyz-PC:~$ 

Logs attached, as requested. This was running my scenario - first Original quality where it streams fine and then I set it to “Convert Automatically”
Plex Media Server Logs_2022-01-26_22-49-05.zip (1.5 MB)

Thank you… I see problem 1.

[chuck@lizum ~.2000]$ dpkg -l | grep beignet
ii  beignet-opencl-icd:amd64                                    1.3.2-7build1                         amd64        OpenCL library for Intel GPUs
[chuck@lizum ~.2001]$ 

Get the ‘rc’ package out. That will mess it up

going through logs

RC package removed. Attached are
Plex Media Server Logs_2022-01-26_22-58-28.zip (1.6 MB)
new logs, sorry debug wasn’t enabled.

Now that you’re using the iGPU,

Stop Plex
Take the HardwareDevicePath preference out

Jan 26, 2022 13:43:10.669 [0x7fc900130b38] WARN - [Transcode] Codecs: packet decode testing returned -95 for decoder 'hevc'
Jan 26, 2022 13:43:10.731 [0x7fc9001f1b38] ERROR - [Transcode] ClientProfileExtra: subtitle transcode target already exists for  streaming hls
Jan 26, 2022 13:43:10.795 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - OpenEncodeSessionEx failed: unsupported device (2): (no details)
Jan 26, 2022 13:43:10.795 [0x7fc9001f1b38] WARN - [Transcode] Codecs: avcodec_open2 returned -38 for encoder 'h264_nvenc'
Jan 26, 2022 13:43:10.822 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - No VA display found for device /dev/dri/render129.
Jan 26, 2022 13:43:10.870 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - Hardware is lacking required capabilities
Jan 26, 2022 13:43:10.870 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - Failed setup for format cuda: hwaccel initialisation returned error.
Jan 26, 2022 13:43:10.871 [0x7fc9001f1b38] WARN - [Transcode] Codecs: packet decode testing returned -95 for decoder 'hevc'
Jan 26, 2022 13:43:10.901 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - No VA display found for device /dev/dri/render129.
Jan 26, 2022 13:43:10.959 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - Hardware is lacking required capabilities
Jan 26, 2022 13:43:10.959 [0x7fc9001f1b38] ERROR - [Transcode] [FFMPEG] - Failed setup for format cuda: hwaccel initialisation returned error.
Jan 26, 2022 13:43:10.959 [0x7fc9001f1b38] WARN - [Transcode] Codecs: packet decode testing returned -95 for decoder 'hevc'

Then restart Plex

As requested:

granwille@granwille-PC:~$ sudo systemctl stop plexmediaserver.service 
granwille@granwille-PC:~$ sudo vim /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Preferences.xml 
granwille@granwille-PC:~$ sudo systemctl restart plexmediaserver.service 
granwille@granwille-PC:~$ dpkg -l | grep beignet
ii  beignet-opencl-icd:amd64                      1.3.2-6+b10                                        amd64        OpenCL library for Intel GPUs
granwille@granwille-PC:~$ 

Re-ran my scenario new logs attached, here’s also a console tail I ran:

granwille@granwille-PC:~$ tail -f /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log | grep TPU
Jan 26, 2022 23:13:58.415 [0x7ff471fc0b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] TPU: hardware transcoding: using hardware decode accelerator vaapi
Jan 26, 2022 23:13:58.415 [0x7ff471fc0b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] TPU: hardware transcoding: zero-copy support present
Jan 26, 2022 23:13:58.415 [0x7ff471fc0b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] TPU: hardware transcoding: using zero-copy transcoding
Jan 26, 2022 23:13:58.422 [0x7ff471fc0b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jan 26, 2022 23:13:58.587 [0x7ff4723e0b38] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Jan 26, 2022 23:13:58.589 [0x7ff4723e0b38] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: 

I ran the scenario with “Convert Automatically” quality and Skipped “Original”. PS, still buffering.
Plex Media Server Logs_2022-01-26_23-15-47.zip (1.6 MB)

We’re getting there.

Now for some of the othre problems.

The network is flipflopping like crazy

Jan 26, 2022 23:12:46.787 [0x7ff4723bdb38] DEBUG - [MediaProviderManager] cloud provider (Metadata) is online and available
Jan 26, 2022 23:12:46.995 [0x7ff472e54b38] DEBUG - [HttpClient] HTTP/2.0 (0.2s) 200 response from GET https://plex.tv/api/v2/server/users/subscriptions?auth_token=xxxxxxxxxxxxxxxxxxxx (reused)
Jan 26, 2022 23:12:48.049 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:12:48.049 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:12:48.049 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:12:48.049 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:12:48.049 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:12:49.820 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:12:49.820 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:12:49.820 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:12:49.820 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:12:49.820 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:12:53.935 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:12:53.935 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:12:53.935 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:12:53.935 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:12:53.936 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:12:57.094 [0x7ff473168b38] DEBUG - Completed: [127.0.0.1:34958] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (4 live) GZIP 20001ms 5 bytes (pipelined: 5)
Jan 26, 2022 23:12:57.106 [0x7ff472705b38] DEBUG - Request: [127.0.0.1:34958 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (3 live) GZIP Signed-in Token (Graniez)
Jan 26, 2022 23:12:57.106 [0x7ff472705b38] DEBUG - Content-Length is -1 (of total: -1).
Jan 26, 2022 23:12:57.429 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:12:57.429 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:12:57.429 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:12:57.429 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:12:57.429 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:00.940 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:00.940 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:00.940 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:00.940 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:00.940 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:02.884 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:02.884 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:02.884 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:02.884 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:02.885 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:05.172 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:05.172 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:05.172 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:05.172 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:05.172 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:06.707 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:06.707 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:06.707 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:06.707 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:06.708 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:13.433 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:13.433 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:13.433 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:13.433 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:13.433 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:15.822 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:15.822 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:15.822 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:15.822 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:15.822 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:17.107 [0x7ff473168b38] DEBUG - Completed: [127.0.0.1:34958] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (3 live) GZIP 20000ms 5 bytes (pipelined: 6)
Jan 26, 2022 23:13:17.115 [0x7ff472705b38] DEBUG - Request: [127.0.0.1:34958 (Loopback)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (3 live) GZIP Signed-in Token (Graniez)
Jan 26, 2022 23:13:17.115 [0x7ff472705b38] DEBUG - Content-Length is -1 (of total: -1).
Jan 26, 2022 23:13:20.819 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:20.819 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:20.819 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:20.819 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:20.819 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:23.710 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:23.710 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:23.710 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:23.710 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:23.710 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:29.428 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:29.428 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:29.428 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:29.428 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:29.428 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:30.875 [0x7ff47288cb38] DEBUG - NetworkInterface: received Netlink message len=64, type=RTM_NEWLINK, flags=0x0
Jan 26, 2022 23:13:30.875 [0x7ff47288cb38] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=3, flags=0x1003, change=0x0
Jan 26, 2022 23:13:30.875 [0x7ff47288cb38] DEBUG - Network change.
Jan 26, 2022 23:13:30.875 [0x7ff47288cb38] DEBUG - NetworkInterface: Notified of network changed (force=0)
Jan 26, 2022 23:13:30.875 [0x7ff47288cb38] DEBUG - Network change notification but nothing changed.
Jan 26, 2022 23:13:34.334 [0x7ff472705b38] DEBUG - Request: [127.0.0.1:34972 (Loopback)] PUT /library/optimize?async=1 (4 live) GZIP Signed-in Token (Graniez)
Jan 26, 2022 23:13:34.335 [0x7ff472705b38] DEBUG - Activity: registered new activity 88d4ebca-e9cf-4664-90b1-89685af7652f - "Optimizing database"
Jan 26, 2022 23:13:34.335 [0x7ff472449b38] DEBUG - [Database optimization/com.plexapp.plugins.library.db] Optimizing database. Starting by capturing all sessions.

This should cycle ONE time.

Do you have a bad DHCP server ocnfig OR multiple DHCP servers arguing OR a bad/lose cable.

I have an Asus RT-AX58U router that does all the DHCP networking. But I have a static IP in place for my PC/Server, so no reason for it to be changing IPs. And no, my ethernet cable is quite new and connected solid.

If you have a static IP address then you have an OS install problem / motherboard problem.

Under NO circumstances should it ever behave that poorly.

What board is it? Make/model?


That explains everything,

The cpu has QSV.
Dell overrides the CPU capabilities with their proprietary stuff

Get away from it with a non-Dell machine and you’ll be ok.

I do not understand. Is this not something I can possible disable/enable via BIOS. Or can you elaborate on this?

May I add that my Linux is set to use Prime drivers, should I not change to integrated graphics maybe?
Screenshot_deepin-graphics-driver-manager_20220126235252

That is going to need a lot of research to find out how to have the Dell make it visible.

PMS can see it but then it has trouble getting into it… which is the Dell BIOS / settings.

Recommend checking the Dell forums for best settings.

Let’s see if we get a response: https://www.dell.com/community/Vostro/i7-7500U-Quick-Sync-Disabled/m-p/8134393#M11496

As an alternative, depending on budget, you can look at working toward a small NUC7 machine. You can load it up and use it as a dedicated PMS box.

Most of us use dedicated workstation/towers , NUC’s, or NAS boxes.
Laptops are usually only used when learning about Plex and seeing if it’s worth pursuing.

Thank you for your time and efforts thus far. Hahaha, the alternative I can afford only now is to keep using “direct play/stream” :smiling_face_with_tear:

I started in 2013 and was DirectPlay only for a while too.

I used Mkvtoolnix & HandBrake to get the videos just right then let Plex handle the playback.

Now, mkvtoolnix will let you get the video sorted so you only need the CPU.

That way, on LAN, you can DirectStream (video = direct, audio = converted) when need be

Hello, @ChuckPa and @Achilles It’s me again, sorry.

Dell is in no way going to assist with this. And I kinda feel we just dropped everything and pointed the issue to Dell without any concrete proof. Is there no way we can determine that this is indeed the issue?