May 5, 20197 yr 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
May 5, 20197 yr 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"
May 6, 20197 yr 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)
May 6, 20197 yr 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!
July 24, 20196 yr popping in to say thanks for this script. using it without out any observable issue currently
August 8, 20196 yr 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?
August 30, 20196 yr 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.
Archived
This topic is now archived and is closed to further replies.