-
-
Save matthenning/5e2efcc72b3631234d4026b109de26e4 to your computer and use it in GitHub Desktop.
Synology DS920+ Plex hw transcoding fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check Plex iHD driver. If exists, delete. Should fix buffering on HW Transcoding. | |
file="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so" | |
filebackup="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so.bak" | |
if [ -f "$file" ] ; then | |
echo "Stopping Plex"; echo; | |
synoservicectl --stop "pkgctl-Plex Media Server" ; | |
echo "Found iHD, deleting..."; echo; | |
sleep 5 ; | |
mv "$file" "$filebackup" ; | |
sleep 5 ; | |
echo "Starting Plexr"; echo; | |
synoservicectl --start "pkgctl-Plex Media Server" ; | |
exit | |
else | |
echo "File not found, exit." ; | |
exit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment