From 40725a0451cf92a1f982d186d2ccae570744aaae Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 11 Jul 2023 17:41:23 -0400 Subject: [PATCH] Update scrypted-install.sh VAAPI hardware transcoding + USB passthrough --- install/scrypted-install.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/install/scrypted-install.sh b/install/scrypted-install.sh index e03f71e3..b8707308 100644 --- a/install/scrypted-install.sh +++ b/install/scrypted-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" +msg_info "Installing Dependencies (Patience)" $STD apt-get -y install software-properties-common apt-utils $STD apt-get -y update $STD apt-get -y upgrade @@ -36,7 +36,19 @@ $STD apt-get -y install \ mc msg_ok "Installed Dependencies" -msg_info "Installing GStreamer" +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 GStreamer (Patience)" $STD apt-get -y install \ gstreamer1.0-tools \ libgstreamer1.0-dev \ @@ -92,7 +104,7 @@ fi msg_info "Installing Scrypted" $STD sudo -u root npx -y scrypted@latest install-server -msg_info "Installed Scrypted" +msg_ok "Installed Scrypted" msg_info "Creating Service" service_path="/etc/systemd/system/scrypted.service"