From 66aef55ab0bf7e94454263ab508937932e272f60 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 14 May 2023 11:44:18 -0400 Subject: [PATCH] Update tdarr-install.sh Hardware Acceleration --- install/tdarr-install.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install/tdarr-install.sh b/install/tdarr-install.sh index 212df862..02a7baa8 100644 --- a/install/tdarr-install.sh +++ b/install/tdarr-install.sh @@ -20,6 +20,19 @@ $STD apt-get install -y mc $STD apt-get install -y unzip msg_ok "Installed Dependencies" +if [[ "$CTTYPE" == "0" ]]; then + msg_info "Setting Up Hardware Acceleration" + $STD apt-get -y install \ + va-driver-all \ + ocl-icd-libopencl1 \ + intel-opencl-icd + + /bin/chgrp video /dev/dri + /bin/chmod 755 /dev/dri + /bin/chmod 660 /dev/dri/* + msg_ok "Set Up Hardware Acceleration" +fi + msg_info "Installing Tdarr" mkdir -p /opt/tdarr cd /opt/tdarr