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.

Getting NVDEC Script running?

Featured Replies

I was hoping someone could help me get the NVDEC script running in Unraid.  I am using CA user scripts to run it but when I put the script in, its running this.

 

 

Script location: /tmp/user.scripts/tmpScripts/Plex Decode/script
Note that closing this window will abort the execution of this script
/tmp/user.scripts/tmpScripts/Plex Decode/script: line 13: /root/media/user//appdata/PlexMediaServer=/usr/lib/plexmediaserver/plex-nvdec-patch.sh: No such file or directory
Applying hardware decode patch... 
Downloading patch script...
Error: No such container: 
- 0%[ ] 0 --.-KB/s in 0s 
Error: No such container: 
Error: No such container: 
 

 

I am assuming I need to change the location of something but not sure where in the script to do that.  This is where my Plex docker is located /root/media/user//appdata/PlexMediaServer

 

And this is the script I am reffering to. https://gist.github.com/Xaero252/9f81593e4a5e6825c045686d685e2428

  • Author

Edit: So i figured it out. In case anyone else wants to know how to get this to work in Unraid, its super easy! First, make sure the Plex docker is running. Then grab the CA User Scripts Plugin for Unraid.

https://forums.unraid.net/topic/48286-plugin-ca-user-scripts/

Then add a new script and copy and paste this script text in it.

https://gist.github.com/Xaero252/9f81593e4a5e6825c045686d685e2428

Run the script and set a scheduale if you want. I set mine to once a day. It still works if you restart the Plex container but I think you need ot restart it after your array shuts down.

Should work perfectly, you can check decode usage by going to the terminal and typing "nvidia-smi dmon -s u"

23 hours ago, sittingmongoose said:

Edit: So i figured it out. In case anyone else wants to know how to get this to work in Unraid, its super easy! First, make sure the Plex docker is running. Then grab the CA User Scripts Plugin for Unraid.

https://forums.unraid.net/topic/48286-plugin-ca-user-scripts/

Then add a new script and copy and paste this script text in it.

https://gist.github.com/Xaero252/9f81593e4a5e6825c045686d685e2428

Run the script and set a scheduale if you want. I set mine to once a day. It still works if you restart the Plex container but I think you need ot restart it after your array shuts down.

Should work perfectly, you can check decode usage by going to the terminal and typing "nvidia-smi dmon -s u"

I'll have to add a check to see if the container exists, and is running, and start it if not... 

 

Also, the script only needs to be run if the container has been updated, or it's configuration has been edited and saved (which causes a force update)

  • Author

Yea it took me a while to figure out what to do with the script and then a while to realize it was because the docker wasn’t started.  

 

Instructions on the gist page page would be awesome for noobs like me!

  • 2 months later...

popping in to say thanks for this script. using it without out any observable issue currently

  • 2 weeks later...

I followed the above instructions but it does not work for me.

I get error: /tmp/user.scripts/tmpScripts/plex nvdec enable/script: line 8: syntax error near unexpected token `newline'
/tmp/user.scripts/tmpScripts/plex nvdec enable/script: line 8: `'

 

Can not edit script after either, won't open.

I have deleted and tried 3 times now with same result.

What am I doing wrong?

  • 3 weeks later...
On 8/7/2019 at 10:07 PM, jpowell8672 said:

I followed the above instructions but it does not work for me.

I get error: /tmp/user.scripts/tmpScripts/plex nvdec enable/script: line 8: syntax error near unexpected token `newline'
/tmp/user.scripts/tmpScripts/plex nvdec enable/script: line 8: `'

 

Can not edit script after either, won't open.

I have deleted and tried 3 times now with same result.

What am I doing wrong?

Try copying from this link:
https://raw.githubusercontent.com/Xaero252/unraid-plex-nvdec/master/Plex_nvdec_enable.sh
And replacing all contents of the edit box for the script.

I got it working now. Thanks

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.