Skip to content

Instantly share code, notes, and snippets.

@Xaero252
Last active May 26, 2019 02:17
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Xaero252/9f81593e4a5e6825c045686d685e2428 to your computer and use it in GitHub Desktop.
Save Xaero252/9f81593e4a5e6825c045686d685e2428 to your computer and use it in GitHub Desktop.
Enable nvdec support for plex dockers on unraid
@unstat1c
Copy link

yup its the official docker

@Xaero252
Copy link
Author

Xaero252 commented Apr 24, 2019

EDIT: please try the revised script, the issue should be resolved since unraid's wget is being used instead of the container's.

I see 4 potential solutions to this; I'm going to test something.

Solutions are:

  • Pure bash download function (will always work)
  • curl instead of wget (if it's present - it is in the ls.io container)
  • pipe the output of wget or curl into the docker exec command and use cat to push the content to the file (I assume unraid has wget and curl included, but this would break support for non unraid systems that don't have the required tool)
  • check for the appropriate tool, and if not present install it - I'd rather not do this.

@unstat1c
Copy link

working fine with the oficial docker, the revised script did the trick, thanks!

@pducharme
Copy link

How should I put that in my User Scripts Plugin? I just need to create a new Script and copy what is here and run it when? Array start? what trigger you suggest?

@Xaero252
Copy link
Author

Xaero252 commented Apr 24, 2019

I have mine set to run slightly after my CA Auto Updater. The only time the script should be run is when the plex docker is updated. There's no built-in trigger for force updating or installing a docker, so if you manually reinstall the docker you'll need to manually run the script, or wait for whenever you schedule it to run.
I'll work on writing a conditional for a case where either Plex Transcoder2 already exists, or the Plex Transcoder doesn't look like the original.
For example, my CA Auto Updater is set to run at ~3am - when probably nobody is going to be doing much with my server. Just after that at ~3:15am, I have this script scheduled to run.
And yes, you can just copy the script from gist directly into a new script on the user scripts plugin.

@Xaero252
Copy link
Author

Xaero252 commented Apr 29, 2019 via email

@J-Nerdy
Copy link

J-Nerdy commented May 19, 2019

@Xaero252 worked flawlessly with unRaid 6.7.0 and gtx1070

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment