Discussion - Added Support for hardware transcoding on Linux with Intel 9th-gen processors. Intel i9900??? EX62?? | PlexGuide.com

Discussion Added Support for hardware transcoding on Linux with Intel 9th-gen processors. Intel i9900??? EX62??

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

benamira

Citizen+
Original poster
Donor
Aug 18, 2018
21
7
According to the release notes of the latest PMS Server version it seems that they have added Support for hardware transcoding on Linux with Intel 9th-gen processors.
It could probably open the possibility to the high-end Hetzner Server as the EX62-NVME with the awesome intel i9900.

 

iamsith

Citizen
Donor
Aug 5, 2019
9
1
Indeed, I am running this server with the beta and it's working fantastic, simply change the docker tag so its plexinc/pms-docker:plexpass instead of plexinc/pms-docker:latest and you'll be off to the races. As soon as I saw it posted I swapped it and fired up a 4k transcode to 1080p 8mbps just to see the cpu sit at 5% utilization!
 

johnsmith66

Citizen
Feb 21, 2019
14
0
How du you install the correct driver? I do have the EX62-NVME hetzner server. I did install drivers manually following this guide: https://pgblitz.com/threads/hw-tran...er-dedicated-and-info-for-other-servers.2544/

ls -la /dev/dri
total 0
drwxr-xr-x 3 root root 100 Sep 19 07:55 .
drwxr-xr-x 19 root root 4040 Sep 19 07:55 ..
drwxr-xr-x 2 root root 80 Sep 19 07:55 by-path
crw-rw---- 1 root video 226, 0 Sep 19 07:55 card0
crw-rw---- 1 root video 226, 128 Sep 19 07:55 renderD128


When i'm running vainfo I get this:

error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

So anybody here to guide me in the right direction? Thanks.
 

iamsith

Citizen
Donor
Aug 5, 2019
9
1
I didn't have to do any of that, all that I had done was through the pgblitz menu and do the hetzner igpu setup, then in plex I set the transcoder setting to use hardware whenever available and it just worked. Maybe I just got lucky with something but I can confirm that it is using hardware transcoding now.
 

UncleBuck

Governer
Staff
Dec 21, 2018
253
82
I have been on the EX62-NVME for a couple of months now. I had set up for hardware transcoding when I first set up this server but of course, it didn't work as Plex didn't support it yet. Well after seeing this post I checked and transcodes are now reporting as HW. I don't recall my exact steps but pretty sure I just used the option in the PGBlitz menu.

I have tested 4K transcoding and the results are simply awesome. At this moment there are 4 people streaming. Three are transcoding from 1080p, one to 720p and two to 480. I am running a test 4k transcode all the way down to 480. My current processor usage is sitting at around 8%. This far exceeds my expectations. So much that I am merging my 4k movie library into my main movie library and will change my radarr profile to allow 4k versions of all future downloads. Now I just need to get all my users to change their default quality settings so they can reap the benefits of 4k.
 

UncleBuck

Governer
Staff
Dec 21, 2018
253
82
@johnsmith66 So I had to wipe my server and start from scratch and now I am getting the same issue with setting up HW transcoding that you had. I ran through the pgblitz menu to set it up but that didn't work. I ran through the manual process you mentioned but still no go. I am getting the same error in vainfo, /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed. Did you ever resole this?
 

mythbuster

Active
Sep 23, 2018
30
16
I had this issue on Ubuntu 18.04. You need to upgrade your kernel to 5.x (HWE), then you can run the PG Tools iGPU setup.
Code:
sudo apt install --install-recommends linux-generic-hwe-18.04
 

Sheryars

Active
Feb 5, 2019
40
6
i had previously done the pg tools igpu setup but i installed the kernel upgrade and ran the pg tools igpu setup again.
also added the user to video using

sudo usermod -a -G video,vncuser vncuser

rebooted but still doesnt do hardware transcoding. i checked the transcoding in plex settings well. not sure what i am doing wrong.

this is what i get with vainfo

error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

/dev/dri

total 0
drwxr-xr-x 3 root root 100 Apr 1 20:51 .
drwxr-xr-x 19 root root 4240 Apr 1 20:51 ..
drwxr-xr-x 2 root root 80 Apr 1 20:51 by-path
crw-rw---- 1 root video 226, 0 Apr 1 20:51 card0
crw-rw---- 1 root video 226, 128 Apr 1 20:51 renderD128
 

Grawl

Active
Donor
Jan 1, 2019
30
5
You need to re-deploy Plex after enabling hardware transcoding on your server.
 

Edrock200

MVP
Staff
Nov 17, 2019
761
270
Is vncuser the actual account you putty into the box with or just the user for your vnc container? What GPU do you have?
Post automatically merged:

Try sudo chmod -R +777 /dev/dri, then reboot. If that works, it's a permissions issue. You can leave it like that but not recommended as it's wide open. You'll need to find the right permission set to apply. Vncuser is usually just for the vnc-xfce container though, so I suspect that's the issue.
 
Last edited:

Recommend NewsGroups

      Up To a 58% Discount!

Trending