Skip to content

Instantly share code, notes, and snippets.

@scrathe
scrathe / Plex nvdec enable.sh
Created March 16, 2019 19:24 — forked from Xaero252/Moved.md
Enable nvdec support for plex dockers on unraid
#!/bin/bash
# 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 $?)