sittingmongoose Posted May 5, 2019 Share Posted May 5, 2019 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 Quote Link to comment
sittingmongoose Posted May 5, 2019 Author Share Posted May 5, 2019 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" Quote Link to comment
Xaero Posted May 6, 2019 Share Posted May 6, 2019 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) Quote Link to comment
sittingmongoose Posted May 6, 2019 Author Share Posted May 6, 2019 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! Quote Link to comment
1812 Posted July 24, 2019 Share Posted July 24, 2019 popping in to say thanks for this script. using it without out any observable issue currently Quote Link to comment
jpowell8672 Posted August 8, 2019 Share Posted August 8, 2019 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? Quote Link to comment
Xaero Posted August 30, 2019 Share Posted August 30, 2019 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. Quote Link to comment
jpowell8672 Posted August 30, 2019 Share Posted August 30, 2019 I got it working now. Thanks Quote Link to comment
Recommended Posts
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.