Reading Mode

You will need Plex Pass Subscription to enable transcoding!

1. First Install Nvidia Driver from Community Apps

nvidia driver for unraid

2. Next Install GPU Stats plugin from Community Apps

Unraid GPU Statistics

3. Notedown locations for your Transcoding folder along with data folder where your media is stored

4. Uninstall any previous Plex installations

5. go to /mnt/users/appdata and delete all previous plex folders you see using console , You can open Console from >_ button on unraid gui

6. You need to run the below script, but first copy this to your notepad and edit the required parameters

a. Claim Token – Once generated this will expire after 4 mins.

b. GUUID which you will get by opening Settings-> Nvidia Driver on Unraid GUI

c. DATA & Transcoder folder locations

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='Plex-Media-Server' --net='host' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'PLEX_CLAIM'='claim token from plex.tv/claim' -e 'PLEX_UID'='99' -e 'PLEX_GID'='100' -e 'VERSION'='latest' -e 'NVIDIA_VISIBLE_DEVICES'='GUUID FOR YOUR NVIDIA CARD' -e 'NVIDIA_DRIVER_CAPABILITIES'='all' -v '/LOCATION OF TRANSCODE FOLDER/':'/transcode':'rw' -v '/LOCATION OF MEDIA FOLDER/':'/data':'rw' -v '/mnt/user/appdata/Plex-Media-Server':'/config':'rw' --runtime=nvidia 'plexinc/pms-docker'

Once You edit the file run this from the console.

7. Once installation done , run the usual plex setup from your browser

8. Once setup is done , Open Server Settings , go to transcoder option and enable as shown in below.

plex server settings

You are done!

Bonus

Unlock GTX/RTX nvidia cards for unlimited simultaneous transcoding

A simple script that downloas and runs the great nvidia patch script by keylase to unlock the nvidia driver to remove the software lock allowing unlimited sessions. You can find keylases original script here https://github.com/keylase/nvidia-patch.

Add the script to Unraid using the userscripts plugin and set to run at first start of the array.

#!/bin/bash
wget https://raw.githubusercontent.com/keylase/nvidia-patch/master/patch.sh
chmod +x ./patch.sh
./patch.sh

Create a userscript and run this script every time array starts.

Categorized in: