Skip to content

Instantly share code, notes, and snippets.

scrathe / Plex nvdec
Created Mar 16, 2019 — forked from Xaero252/
Enable nvdec support for plex dockers on unraid
View Plex nvdec
# This should always return the name of the docker container running plex - assuming a single plex docker on the system.
con="$(docker ps --format "{{.Names}}" | grep -i plex)"
echo -n "<b>Applying hardware decode patch... </b>"
# Check to see if Plex Transcoder2 Exists first.
exists=$(docker exec -i "$con" stat "/usr/lib/plexmediaserver/Plex Transcoder2" >/dev/null 2>&1; echo $?)