From 3c9f47026c53c3a66fa16d1ebdb098bdb9f032d8 Mon Sep 17 00:00:00 2001 From: Kyle Kroboth Date: Tue, 11 Mar 2025 23:02:53 -0400 Subject: [PATCH] chore: option to install non-free HW accel --- install/fileflows-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install/fileflows-install.sh b/install/fileflows-install.sh index bcb7c3a3..e55f7599 100644 --- a/install/fileflows-install.sh +++ b/install/fileflows-install.sh @@ -37,6 +37,10 @@ $STD apt update msg_ok "Installed FFmpeg" msg_info "Setting Up Hardware Acceleration" + +read -r -p "Do you need the intel-media-va-driver-non-free driver (Debian 12 only)? " prompt +if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then + msg_info "Installing Hardware Acceleration (non-free)" cat </etc/apt/sources.list.d/non-free.list deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware @@ -50,6 +54,11 @@ deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non- EOF $STD apt-get update $STD apt-get -y install {intel-media-va-driver-non-free,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} +else + msg_info "Installing Hardware Acceleration" +$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools} +fi + if [[ "$CTTYPE" == "0" ]]; then chgrp video /dev/dri chmod 755 /dev/dri @@ -57,6 +66,7 @@ if [[ "$CTTYPE" == "0" ]]; then $STD adduser $(id -u -n) video $STD adduser $(id -u -n) render fi +msg_ok "Installed Hardware Acceleration" msg_ok "Set Up Hardware Acceleration" msg_info "Installing ASP.NET Core Runtime"