danb35 / freenas-iocage-plex

Scripted installation of Plex Media Server in a FreeNAS jail
GNU General Public License v3.0
56 stars 9 forks source link

Script does not setup the Hardware Transcode on Truenas 12.2 #16

Open Ap0ph1s-W4ite opened 2 years ago

Ap0ph1s-W4ite commented 2 years ago

I receveid the message that the script was made for Truenas 12.0 but there is any way to active the hardware transcode for plex jail? I have made a install of Plex in a Jail v12.0 and followed the following links but all without success. The Jail cannot be stooped after do this.

LINKS: https://www.truenas.com/community/threads/activating-plex-hardware-acceleration-on-truenas-12-core.88029/ https://www.truenas.com/community/threads/issues-with-plex-danb35-truenas-12-0-and-12-2-release.89095/

Any way to do this at this moment?

EDIT: Did the following steps after install plex:

`@@@ INTEL GPU OFFLOAD NOTES @@@

If you have a supported Intel GPU, you can leverage hardware
accelerated encoding/decoding in Plex Media Server on FreeBSD 12.0+.

The requirements are as follows:

* Install multimedia/drm-kmod: e.g., pkg install drm-fbsd12.0-kmod

* Enable loading of kernel module on boot: sysrc kld_list+="i915kms"
** If Plex will run in a jail, you must load the module outside the jail!

* Load the kernel module now (although reboot is advised): kldload i915kms

* Add plex user to the video group: pw groupmod -n video -m plex

* For jails, make a devfs ruleset to expose /dev/dri/* devices.

e.g., /dev/devfs.rules on the host:

[plex_drm=10]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add include $devfsrules_jail
add path 'dri*' unhide
add path 'dri/*' unhide
add path 'drm*' unhide
add path 'drm/*' unhide

* Enable the devfs ruleset for your jail. e.g., devfs_ruleset=10 in your
/etc/jail.conf or for iocage, iocage set devfs_ruleset="10"

Please refer to documentation for all other FreeBSD jail management
utilities.

* Make sure hardware transcoding is enabled in the server settings

@@@ INTEL GPU OFFLOAD NOTES @@@`