From 61b0ca67cc4c2507ffdc6838fa50a03b8d36c6a7 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 18 Sep 2024 15:00:53 -0400 Subject: [PATCH] Update ersatztv-install.sh add Hardware Acceleration --- install/ersatztv-install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install/ersatztv-install.sh b/install/ersatztv-install.sh index d07d01b5..2d258a65 100644 --- a/install/ersatztv-install.sh +++ b/install/ersatztv-install.sh @@ -21,6 +21,17 @@ $STD apt-get install -y sudo $STD apt-get install -y mc msg_ok "Installed Dependencies" +msg_info "Setting Up Hardware Acceleration" +$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} +if [[ "$CTTYPE" == "0" ]]; then + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render +fi +msg_ok "Set Up Hardware Acceleration" + msg_info "Installing FFmpeg (Patience)" wget -q https://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2016.8.1_all.deb $STD dpkg -i deb-multimedia-keyring_2016.8.1_all.deb