Getting NVDEC Script running?


Recommended Posts

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

Link to comment

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"

Link to comment
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)

Link to comment
  • 2 months later...
  • 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?

Link to comment
  • 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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.