Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Help with Plex hardware transcoding

Featured Replies

5 hours ago, Hoopster said:


Any Intel 9xxx CPU/iGPU is unsupported until at least Linux kernel 4.20 with updated i915 drivers. Latest version of unRAID still uses kernel 4.19.

Ok, thank you! 
 

Is it likely that this will happen soon? Or do I need to wait a few months or even longer?

 

I thinking about sending my 9500 back and buying a 8700, because Hardware Acceleration in plex is a big deal for me. 

  • Replies 89
  • Views 82.3k
  • Created
  • Last Reply

Is it likely that this will happen soon?


‘Soon’ is an undetermined time span with Limetech, but, yes, unRAID 6.8 RC should be coming ‘soon’ and it may jump up to the 5.x Linux kernel. At a minimum it should be based on 4.20 or higher.



Sent from my iPhone using Tapatalk
  • 1 month later...

I'm not technical enough in this area, but does this help us with Nvidia GPU transcoding in UnRAID:

Quote

Plex Media Server 1.17.0.1709 is available in the Beta update channel

NEW:

(Transcoder) Update to current upstream ffmpeg

(Transcoder) Support for hardware transcoding on Linux with Intel 9th-gen processors

(Transcoder) Support for VC-1 hardware decoding on supported platforms

(Transcoder) Support for hardware decoding on Linux with Nvidia GPUs

(Transcoder) Support for zero-copy hardware transcoding on Linux with Nvidia GPUs

(Transcoder) Support for zero-copy hardware transcoding of interlaced media

 

I'm running an older FX AMD processor and would love to just add a GPU to get more simultaneous transcoding streams without upgrading my CPU, MB and RAM.

On 5/19/2019 at 3:27 PM, semmtex said:

Having problems with Hardware transcoding on Unraid 6.7.0 and running Binhex Docker Build 1.15.6.1079

It used to work perfectly, however whenever I activate Hardware Transcoding now and transcode a stream I get the following errors:

 

In the Plex Docker Log:

failed to open /data/jenkins/conan_build/290002784/conan/.conan/data/libva/2.1.0-40/plex/stable/package/81a2df5e16044d97d1b088b0e6c9598b5b17f233/lib/dri/hybrid_drv_video.so

Failed to wrapper hybrid_drv_video.so

 

In the Unraid Log:

kernel: [drm] GPU HANG: ecode 8:6:0xacdfbffd, in Plex Transcoder [26671], reason: hang on vecs0, action: reset

kernel: i915 0000:00:02.0: Resetting vecs0 for hang on vecs0

 

The stream itself will say that it's using HW transcoding, but it never starts, just keeps on buffering according to Tautulli and sometimes crashes the docker and even unraid itself.

 

Help is greatly appreciated!

 

Update: 

 

The newest Plex version 1.18.0.1846 finally seems to fix this issue. I still get the following error in the Plex Docker log:

failed to open /data/jenkins/conan_build/290854758/conan/.conan/data/libva/2.4.0-1/plex/stable/package/9e07aef203e7a776d49230f7e190457a5658b628/lib/dri/hybrid_drv_video.so

But all the streams finally start as they should and either use HW transcoding or fall back to SW transcoding for the streams my iGPU doesn't support.

  • 4 months later...
On 3/8/2018 at 7:22 AM, Hoopster said:
To enable hardware transcoding in Plex, do the following:

 

This goes in the Extra Parameters in the Plex Docker config (you have to enable Advanced View on the docker edit page to see this). Note: this is for the linuxserver.io Plex docker (others Plex dockers may be different):

 

image.png.d719e3f2ba0300e500fcb3af7d3f5bb2.png

 

Also, you need some entries in your go file like this (after entering these commands in the CLI):


#Setup drivers for hardware transcoding in Plex
modprobe i915
chmod -R 777 /dev/dri

And in your Plex server Transcoder Settings page you need to enable hardware acceleration

 

image.thumb.png.9987e8e84bb16ff32bd8afd5f6d8ae3c.png

 

 

What go  file? :) Is CPU use or GPU use on this?

7 hours ago, knutarn said:
What go  file? [emoji4] Is CPU use or GPU use on this?


The ‘go’ file is in the config folder on the unRAID USB flash drive.

That’s where "permanent" user modifications to the boot process are stored.

 

The 'go' file is just a text file and can be edited with any text editor such as Notepad.


Sent from my iPhone using Tapatalk

 

Edited by Hoopster

  • 2 months later...

can any one shed some light on why one is transcoding with HW and the other isnt? making my server work real hard lol i have never seen it not use HW since i enabled the P2000 to HW with the nvidia driver in unraid

unraid.PNG

  • 2 months later...

So, total noob here, never even setup unraid before... I need to verify hw encoding works with my 2600x/p2000 server before making the transition over to unraid. Judging by this thread it does, but seems hit or miss. Anything I can test before hand somehow? Thanks.

26 minutes ago, Verme said:

I need to verify hw encoding works with my 2600x/p2000 server before making the transition over to unraid

The instructions in this thread have to do with getting transcoding working with the iGPU in certain Intel CPUs.  You don't have that hardware.

 

Since you are using a Ryzen CPU and P2000 discrete Nvidia CPU you will need to use the unRAID Nvidia special unRAID build and plugin as documented in this thread:

 

 

The P2000 is one of the preferred Nvidia GPUs for transcoding purposes with the build and plugin mentioned above.

  • 2 months later...

OK, this thread needs some corrective input...

 

The default ownership of /dev/dri/renderD128 is root:render, with a ug=rw permission.

The Linuxserver.io Plex-container supports running as a specific user/group. Use that functionality!
Add the user you run the container as to the render group.

 

There is absolutely no need to change ownership or permissions on a system-device.

 

Also worth noting: Using an nVidia consumer GPU to transcode imposes an artificial limitation of a maximum of two concurrent transcodes. This is hardcoded into the nVidia driver. Intel QuickSync has no such limitations.

nVidia Quadro cards can do more parallel streams, use this list as a guide: https://www.elpamsoft.com/?p=Plex-Hardware-Transcoding

Edited by Fudd79
Added info about nVidia limitations.

  • 5 months later...
On 9/11/2020 at 10:56 AM, Fudd79 said:

OK, this thread needs some corrective input...

 

The default ownership of /dev/dri/renderD128 is root:render, with a ug=rw permission.

The Linuxserver.io Plex-container supports running as a specific user/group. Use that functionality!
Add the user you run the container as to the render group.

 

There is absolutely no need to change ownership or permissions on a system-device.

 

Also worth noting: Using an nVidia consumer GPU to transcode imposes an artificial limitation of a maximum of two concurrent transcodes. This is hardcoded into the nVidia driver. Intel QuickSync has no such limitations.

nVidia Quadro cards can do more parallel streams, use this list as a guide: https://www.elpamsoft.com/?p=Plex-Hardware-Transcoding

Heya Fudd,

 

as the linuxserver.io plex-container does not use any gpu (2 gpus in system) I'm looking for everything that might hint at what could help. This is the first time I read about running containers as specific users. As I understand unraid has "just" the user root, and thats it. Could you elaborate or point to a source for more information on this?

Thanks a lot,

V
 

Edit: all 'easy' things have been checked, I stubbed my nvidia-gpu vor VM use and want plex to use the igpu (i7-4xxx processor) as it did before I used a plugin to install nvidia drivers. now the plugin is depreciated and I can't change back. yes, modprobe i915 is in my go file...

/dev/dri# ls
by-path/  card0  card1  renderD128  renderD129

Edited by ViproXX

  • 5 weeks later...

Has anyone got i9-9900 to HW transcode in plex as of recent? April 2021?

 

It works fine with i7-8700t i swap the cpu for i9-9900 and it wont start transcoding 4k video.

 

the drivers load fine and are seen inside the docker container when i run cd /dev/dri from the container console. 
 

unraid 6.9.1 i tried linuxserver and plexinc containers.

 

i do have the  ‘- -device parameter added.

i do have the igpu enabled in bios.

i dont have any other dedicate gpu.

i habe installed the intell drive plugin

i did add line to sysconfig

 

its a gigabyte c246m motherboard.

 

i have confirmed both transcode boxes are checked inside plex settings with the hdr option on and off.

 

still no luck....

 

some videos eventually atart transcoding and playing but woth hogh cpu usage and i dont see the hw indicator next to the stream in plex dashboard.

 

 

2 hours ago, alfredo_2020 said:

Has anyone got i9-9900 to HW transcode in plex as of recent?

I have a Xeon E-2288G which is the Xeon equivalent of the i9-9900K and HW transcoding works great.  However, I am not transcoding any 4K content.

 

You should make sure your Plex docker container is up to date.  There were some recent Plex releases that messed up 4K/HDR transcoding.  The very latest versions just released a couple of days ago on both the public and Plex Pass channels seem to have fixed it.

 

EDIT:  I guess results vary.  For some it works, for other there are still issues.  Start reading here.

 

And see this Plex forum thread.

https://forums.plex.tv/t/4k-hdr-hevc-hw-transcoding-is-broken-on-1-22-1-4200/702328

 

Bottom line is it is a Plex issue.

Edited by Hoopster

Has anyone had success with 10th gen Intel iGPUs? I haven't been able to get this to work on a 10400 or a 10850K with an MSI Z-490-A Pro motherboard, I've edited my go file, I have renderD128 in dev/dri, I've added the extra parameters, it just doesn't seem to ever use it.

4 minutes ago, alancostello said:

Has anyone had success with 10th gen Intel iGPUs? I haven't been able to get this to work on a 10400 or a 10850K with an MSI Z-490-A Pro motherboard, I've edited my go file, I have renderD128 in dev/dri, I've added the extra parameters, it just doesn't seem to ever use it.

Turn off HDR tone mapping or HDR content will not hardware transcode. If you want to get it to work, there is also a driver fix/script out there you can run but it’ll undo itself every time Plex updates. I can’t remember where I got the script but search for it and you should probably find it.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.