Plex not transcoding using my GPU - Linux

This is the issue .

Jan 26, 2022 23:13:58.534 [0x7ff471fc0b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] Asked for segment 292 from session.
Jan 26, 2022 23:13:58.538 [0x7ff473c70b38] DEBUG - Request: [192.168.50.132:60192 (Subnet)] GET /video/:/transcode/universal/session/94FD7A64-B953-480A-A3A9-61042DD3EFD5/vtt-base/00292.vtt (25 live) TLS GZIP Signed-in
Jan 26, 2022 23:13:58.538 [0x7ff473c70b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] Asked for segment 292 from session.
Jan 26, 2022 23:13:58.550 [0x7ff471f14b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff471eb5b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff472705b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to created derived device context: -19.
Jan 26, 2022 23:13:58.551 [0x7ff471f57b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to configure output pad on Parsed_hwmap_2
Jan 26, 2022 23:13:58.552 [0x7ff471f14b38] ERROR - [Transcoder] Error reinitializing filters!
Jan 26, 2022 23:13:58.552 [0x7ff471eb5b38] ERROR - [Transcoder] Failed to inject frame into filter network: No such device
Jan 26, 2022 23:13:58.552 [0x7ff472705b38] ERROR - [Transcoder] Error while processing the decoded data for stream #0:0
Jan 26, 2022 23:13:58.577 [0x7ff474308b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 13602 is 1 (failure)
Jan 26, 2022 23:13:58.577 [0x7ff4723e0b38] DEBUG - Streaming Resource: Changing client to use software decoding
Jan 26, 2022 23:13:58.578 [0x7ff4723e0b38] ERROR - ClientProfileExtra: subtitle transcode target already exists fo

Do you still have /tmp/plexinstaller.log ? (the installation inventory file)

The installer will tell you if you need opencl-icd-opencl1 or whatever is appropriate for the CPU.

The installer log (inventory) file tells what it found and what’s needed.

If OpenCL is indeed installed, and found, then there’s nothing which can be done to circumvent the screwy layout of the hardware.

These “Ubuntu Knockoff” distros are NOT helping – nor are they supported.

Deepin PC x86_64

Ubuntu 20.04.3 LTS works, Debian works. Anything else is a guess and pot luck.

Nope, I do not have this log anymore. Hmmm, I am prepared to uninstall and re-install it again, will that work?

yes. uninstall + reinstall. (do not purge)

Here we go:

granwille@granwille-PC:~$ sudo apt remove plexmediaserver 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  plexmediaserver
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 224 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 256526 files and directories currently installed.)
Removing plexmediaserver (1.25.4.5426-eb46d070e) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for lastore-daemon (5.3.5-1) ...
Processing triggers for bamfdaemon (0.5.4.1-1+eagle) ...
Rebuilding /usr/share/applications/bamf-2.index...
granwille@granwille-PC:~$ cd Downloads/
granwille@granwille-PC:~/Downloads$ sudo dpkg -i plexmediaserver_1.25.4.5468-989df2310_amd64.deb 
Selecting previously unselected package plexmediaserver.
(Reading database ... 254007 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.25.4.5468-989df2310_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.25.4.5468-989df2310) ...
Setting up plexmediaserver (1.25.4.5468-989df2310) ...
PlexMediaServer install: PlexMediaServer-1.25.4.5468-989df2310 - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /tmp 
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Found
PlexMediaServer install:  
PlexMediaServer install:   OpenCL:              Installed
PlexMediaServer install:   Beignet:             Installed
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.25.4.5468-989df2310 - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for lastore-daemon (5.3.5-1) ...
Processing triggers for bamfdaemon (0.5.4.1-1+eagle) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
granwille@granwille-PC:~/Downloads$ 

plexinstaller.log:

granwille@granwille-PC:/tmp$ cat plexinstaller.log 
# Plex Media Server installation configuration info:  Thu 27 Jan 15:19:04 CAT 2022
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=0
HaveHardware=1
HaveTranscoderPref=0
NeedUser=0
NeedGroup=0
NeedVideo=0
Verbose=1
Running=0
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
Havei915=1
HaveNvidia=1
Processor=Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
CPUSKU=7500
NeedOpenCL=1
NeedBeignet=1
NeedIntelCompute=0
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
HaveBeignet=1
HaveOpenCL=1
Platform="Vostro 5568"
Processor="Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz"
Distro="Deepin 20.4"
Kernel="Linux granwille-PC 5.15.6-amd64-desktop #1 SMP Mon Dec 6 13:36:16 CST 2021 x86_64 GNU/Linux"
Memory="32010 5406 916"
granwille@granwille-PC:/tmp$ 
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
Havei915=1
HaveNvidia=1
Processor=Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
CPUSKU=7500
NeedOpenCL=1
NeedBeignet=1
NeedIntelCompute=0
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
HaveBeignet=1
HaveOpenCL=1

Confirms all software modules are there.

Jan 26, 2022 23:13:58.538 [0x7ff473c70b38] DEBUG - [Transcode/94FD7A64-B953-480A-A3A9-61042DD3EFD5] Asked for segment 292 from session.
Jan 26, 2022 23:13:58.550 [0x7ff471f14b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff471eb5b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff472705b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to created derived device context: -19.
Jan 26, 2022 23:13:58.551 [0x7ff471f57b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to configure output pad on Parsed_hwmap_2
Jan 26, 2022 23:13:58.552 [0x7ff471f14b38] ERROR - [Transcoder] Error reinitializing filters!

This is what’s confirming that while it can see the Intel iGPU, the added discrete (Nvidia) is screwing you over and blocking OpenCL from engaging.

I had a 2013 Sony Vaio with the same problem.
I7-3740 CPU with Nvidia m620 GPU and was NOT able to do anything.
I’ve seen this stuff before.

Cool, I will be researching on this:

Jan 26, 2022 23:13:58.550 [0x7ff471f14b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff471eb5b38] ERROR - [Transcoder] [AVHWDeviceContext @ 0x7fbfeb23c980] Failed to get number of OpenCL platforms: -1001.
Jan 26, 2022 23:13:58.551 [0x7ff472705b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to created derived device context: -19.
Jan 26, 2022 23:13:58.551 [0x7ff471f57b38] ERROR - [Transcoder] [Parsed_hwmap_2 @ 0x7fbfe88dde00] Failed to configure output pad on Parsed_hwmap_2

To see if I can come up with anything.

https://www.dell.com/support/kbdoc/en-us/000132626/a-guide-to-hybrid-video-on-dell-pcs-with-an-ubuntu-operating-system

Try the switcharoo command at the end of the article

Doesn’t seem I have vgaswitcheroo support:

root@granwille-PC:/sys/kernel/debug# grep -i switcheroo /boot/config-*
/boot/config-5.15.1-amd64-desktop:CONFIG_VGA_SWITCHEROO=y
/boot/config-5.15.6-amd64-desktop:CONFIG_VGA_SWITCHEROO=y
/boot/config-5.3.0-42-generic:CONFIG_VGA_SWITCHEROO=y
root@granwille-PC:/sys/kernel/debug# 
root@granwille-PC:/sys/kernel/debug# ls -l /sys/kernel/debug/vgaswitcheroo/switch
ls: cannot access '/sys/kernel/debug/vgaswitcheroo/switch': No such file or directory
root@granwille-PC:/sys/kernel/debug# 

However, I see the article specifically says this will only work with open-source graphic drivers (nouveau, radeon) and in my case, I have proprietary drivers (Prime). But keep in mind, I can change this, see attached screenshot. I am starting to wonder if switching might work:

Screenshot_deepin-graphics-driver-manager_20220127214339

Found another possible solution: ubuntu - Enable OpenCL over multiple platforms in Linux? How to proceed with ICD files? - Stack Overflow

However, installing Intel OpenCL runtime is a mission it seems like its only supported for RedHat and Ubuntu - of course.

To be honest not much left for me to contribute to your issue. I would suggest using Ubuntu Desktop 20.04.3 LTS and the open source drivers. Hybrid graphics are a pain in the butt.

@Achilles & @ChuckPa I actually moved to Ubuntu 20.4 LTS as recommended on Sunday. Had to first get all my data across and so, nonetheless, sadly, I experience the same issue.

It seems to transcode fine with 1080p videos but again buffers extremely when it’s a 4K video. I will attach logs later this evening to show you what happens.

At this point, I am convinced the i7-7xx I am using is not so good after all.

I don’t doubt it with your Dell laptop designed with a hybrid GPU configuration.

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