From d058dc515e1fd21409f66e2432b4e0a4c3d42d24 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 17 Dec 2025 14:13:27 +0100 Subject: [PATCH] add hardware acceleration support for 17 additional apps (#10061) --- ct/agentdvr.sh | 1 + ct/comfyui.sh | 3 ++- ct/convertx.sh | 1 + ct/dispatcharr.sh | 5 +++-- ct/go2rtc.sh | 1 + ct/hyperhdr.sh | 1 + ct/hyperion.sh | 1 + ct/libretranslate.sh | 1 + ct/mediamtx.sh | 1 + ct/motioneye.sh | 21 ++++++++++---------- ct/nextpvr.sh | 1 + ct/nxwitness.sh | 1 + ct/owncast.sh | 1 + ct/photoprism.sh | 3 ++- ct/shinobi.sh | 1 + ct/threadfin.sh | 1 + ct/uhf.sh | 1 + install/agentdvr-install.sh | 1 + install/comfyui-install.sh | 1 + install/convertx-install.sh | 1 + install/dispatcharr-install.sh | 33 ++++++++++++++++--------------- install/go2rtc-install.sh | 1 + install/hyperhdr-install.sh | 1 + install/hyperion-install.sh | 1 + install/libretranslate-install.sh | 1 + install/mediamtx-install.sh | 1 + install/motioneye-install.sh | 2 ++ install/nextpvr-install.sh | 1 + install/nxwitness-install.sh | 1 + install/owncast-install.sh | 2 ++ install/photoprism-install.sh | 1 + install/shinobi-install.sh | 2 ++ install/threadfin-install.sh | 1 + install/uhf-install.sh | 1 + 34 files changed, 67 insertions(+), 30 deletions(-) diff --git a/ct/agentdvr.sh b/ct/agentdvr.sh index c0d9fd5ceb..41960150ee 100644 --- a/ct/agentdvr.sh +++ b/ct/agentdvr.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-ubuntu}" var_version="${var_version:-24.04}" var_unprivileged="${var_unprivileged:-0}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/comfyui.sh b/ct/comfyui.sh index 5a293a4d2f..8c33c6dffa 100644 --- a/ct/comfyui.sh +++ b/ct/comfyui.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: jdacode # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE @@ -13,6 +13,7 @@ var_disk="${var_disk:-25}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/convertx.sh b/ct/convertx.sh index d1702e01e4..f72a84914c 100644 --- a/ct/convertx.sh +++ b/ct/convertx.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-20}" var_os="${var_os:-debian}" var_version="${var_version:-12}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/dispatcharr.sh b/ct/dispatcharr.sh index 0cbc3b567c..4c9bac1525 100644 --- a/ct/dispatcharr.sh +++ b/ct/dispatcharr.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables @@ -88,8 +89,8 @@ function update_script() { fi if ! grep -q "DJANGO_SECRET_KEY" /opt/dispatcharr/.env; then - DJANGO_SECRET=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-50) - echo "DJANGO_SECRET_KEY=$DJANGO_SECRET" >> /opt/dispatcharr/.env + DJANGO_SECRET=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-50) + echo "DJANGO_SECRET_KEY=$DJANGO_SECRET" >>/opt/dispatcharr/.env fi cd /opt/dispatcharr diff --git a/ct/go2rtc.sh b/ct/go2rtc.sh index 73b14f7fbd..bd2f96f896 100644 --- a/ct/go2rtc.sh +++ b/ct/go2rtc.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-12}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/hyperhdr.sh b/ct/hyperhdr.sh index cc001476dd..478777c3a4 100644 --- a/ct/hyperhdr.sh +++ b/ct/hyperhdr.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-12}" var_unprivileged="${var_unprivileged:-0}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/hyperion.sh b/ct/hyperion.sh index 3f0bfee354..0c583fa3e2 100644 --- a/ct/hyperion.sh +++ b/ct/hyperion.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-2}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/libretranslate.sh b/ct/libretranslate.sh index 2c55d83800..760553bfe0 100644 --- a/ct/libretranslate.sh +++ b/ct/libretranslate.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-20}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/mediamtx.sh b/ct/mediamtx.sh index 715ea6bab4..57f93d75c8 100644 --- a/ct/mediamtx.sh +++ b/ct/mediamtx.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/motioneye.sh b/ct/motioneye.sh index 439e9eee2c..b4e06948a1 100644 --- a/ct/motioneye.sh +++ b/ct/motioneye.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables @@ -20,17 +21,17 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources - if [[ ! -f /etc/systemd/system/motioneye.service ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - msg_info "Updating ${APP} LXC" - $STD pip install motioneye --upgrade - msg_ok "Updated successfully!" + header_info + check_container_storage + check_container_resources + if [[ ! -f /etc/systemd/system/motioneye.service ]]; then + msg_error "No ${APP} Installation Found!" exit + fi + msg_info "Updating ${APP} LXC" + $STD pip install motioneye --upgrade + msg_ok "Updated successfully!" + exit } start diff --git a/ct/nextpvr.sh b/ct/nextpvr.sh index adb3b17fa4..af75bc676a 100644 --- a/ct/nextpvr.sh +++ b/ct/nextpvr.sh @@ -14,6 +14,7 @@ var_disk="${var_disk:-5}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/nxwitness.sh b/ct/nxwitness.sh index 626be25011..2a4bf77967 100644 --- a/ct/nxwitness.sh +++ b/ct/nxwitness.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-ubuntu}" var_version="${var_version:-24.04}" var_unprivileged="${var_unprivileged:-0}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/owncast.sh b/ct/owncast.sh index 108f948a47..5097b8b5fe 100644 --- a/ct/owncast.sh +++ b/ct/owncast.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-2}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/photoprism.sh b/ct/photoprism.sh index daa8daca4f..3efe41ecf5 100644 --- a/ct/photoprism.sh +++ b/ct/photoprism.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables @@ -31,7 +32,7 @@ function update_script() { msg_info "Stopping PhotoPrism" systemctl stop photoprism msg_ok "Stopped PhotoPrism" - + if ! grep -q "photoprism/config/.env" ~/.bashrc 2>/dev/null; then msg_info "Adding environment export for CLI tools" echo '# Load PhotoPrism environment variables for CLI tools' >>~/.bashrc diff --git a/ct/shinobi.sh b/ct/shinobi.sh index 1c63d26f31..c68a53f42f 100644 --- a/ct/shinobi.sh +++ b/ct/shinobi.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-ubuntu}" var_version="${var_version:-24.04}" var_unprivileged="${var_unprivileged:-0}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/threadfin.sh b/ct/threadfin.sh index 3a922a1ddd..7ca292f1e2 100644 --- a/ct/threadfin.sh +++ b/ct/threadfin.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/ct/uhf.sh b/ct/uhf.sh index 6483e32941..314ad5649d 100644 --- a/ct/uhf.sh +++ b/ct/uhf.sh @@ -13,6 +13,7 @@ var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" header_info "$APP" variables diff --git a/install/agentdvr-install.sh b/install/agentdvr-install.sh index c21bbe527c..80ce2f4935 100644 --- a/install/agentdvr-install.sh +++ b/install/agentdvr-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y \ diff --git a/install/comfyui-install.sh b/install/comfyui-install.sh index 77bbeb0865..b764728c78 100644 --- a/install/comfyui-install.sh +++ b/install/comfyui-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel echo echo "${TAB3}Choose the GPU type for ComfyUI:" diff --git a/install/convertx-install.sh b/install/convertx-install.sh index 0eaff99bbf..75f9646411 100644 --- a/install/convertx-install.sh +++ b/install/convertx-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel setup_imagemagick diff --git a/install/dispatcharr-install.sh b/install/dispatcharr-install.sh index d5da5741f8..5e52cc0249 100644 --- a/install/dispatcharr-install.sh +++ b/install/dispatcharr-install.sh @@ -12,17 +12,18 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y \ - build-essential \ - python3-dev \ - libpq-dev \ - nginx \ - redis-server \ - ffmpeg \ - procps \ - streamlink + build-essential \ + python3-dev \ + libpq-dev \ + nginx \ + redis-server \ + ffmpeg \ + procps \ + streamlink msg_ok "Installed Dependencies" setup_uv @@ -39,11 +40,11 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8' $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';" { - echo "Dispatcharr Credentials" - echo "Database Name: $DB_NAME" - echo "Database User: $DB_USER" - echo "Database Password: $DB_PASS" - echo "" + echo "Dispatcharr Credentials" + echo "Database Name: $DB_NAME" + echo "Database User: $DB_USER" + echo "Database Password: $DB_PASS" + echo "" } >>~/dispatcharr.creds msg_ok "Created PostgreSQL Database" @@ -58,9 +59,9 @@ msg_ok "Installed Python Dependencies" msg_info "Configuring Dispatcharr" install -d -m 755 \ - /data/{logos,recordings,plugins,db} \ - /data/uploads/{m3us,epgs} \ - /data/{m3us,epgs} + /data/{logos,recordings,plugins,db} \ + /data/uploads/{m3us,epgs} \ + /data/{m3us,epgs} chown -R root:root /data DJANGO_SECRET=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-50) export DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}" diff --git a/install/go2rtc-install.sh b/install/go2rtc-install.sh index 1c6524d1eb..f0e1514a7f 100644 --- a/install/go2rtc-install.sh +++ b/install/go2rtc-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "latest" "/opt/go2rtc" "go2rtc_linux_amd64" diff --git a/install/hyperhdr-install.sh b/install/hyperhdr-install.sh index 79235f754d..71fb74e9dd 100644 --- a/install/hyperhdr-install.sh +++ b/install/hyperhdr-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing HyperHDR" setup_deb822_repo \ diff --git a/install/hyperion-install.sh b/install/hyperion-install.sh index 946354898a..22cfd0861b 100644 --- a/install/hyperion-install.sh +++ b/install/hyperion-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Setting up Hyperion repository" setup_deb822_repo \ diff --git a/install/libretranslate-install.sh b/install/libretranslate-install.sh index d511c033c2..2cae99e5cc 100644 --- a/install/libretranslate-install.sh +++ b/install/libretranslate-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing dependencies" $STD apt install -y \ diff --git a/install/mediamtx-install.sh b/install/mediamtx-install.sh index c1bfc51eb0..ffbeca82dd 100644 --- a/install/mediamtx-install.sh +++ b/install/mediamtx-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y ffmpeg diff --git a/install/motioneye-install.sh b/install/motioneye-install.sh index ad69f5918d..7893bda394 100644 --- a/install/motioneye-install.sh +++ b/install/motioneye-install.sh @@ -13,6 +13,8 @@ setting_up_container network_check update_os +setup_hwaccel + msg_info "Installing Dependencies" $STD apt install -y git $STD apt install -y cifs-utils diff --git a/install/nextpvr-install.sh b/install/nextpvr-install.sh index d87a7d2ac5..928d15c0d0 100644 --- a/install/nextpvr-install.sh +++ b/install/nextpvr-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies (Patience)" $STD apt install -y \ diff --git a/install/nxwitness-install.sh b/install/nxwitness-install.sh index 573f47fe34..e5eca45a7f 100644 --- a/install/nxwitness-install.sh +++ b/install/nxwitness-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y \ diff --git a/install/owncast-install.sh b/install/owncast-install.sh index fd12c07757..7feec256d6 100644 --- a/install/owncast-install.sh +++ b/install/owncast-install.sh @@ -13,6 +13,8 @@ setting_up_container network_check update_os +setup_hwaccel + msg_info "Installing Dependencies (Patience)" $STD apt install -y ffmpeg msg_ok "Installed Dependencies" diff --git a/install/photoprism-install.sh b/install/photoprism-install.sh index 06f0d06fed..84ffd05d0d 100644 --- a/install/photoprism-install.sh +++ b/install/photoprism-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies (Patience)" $STD apt install -y \ diff --git a/install/shinobi-install.sh b/install/shinobi-install.sh index 168f0640c2..0f7afac72b 100644 --- a/install/shinobi-install.sh +++ b/install/shinobi-install.sh @@ -13,6 +13,8 @@ setting_up_container network_check update_os +setup_hwaccel + msg_info "Installing Dependencies" $STD apt-get install -y make zip net-tools git $STD apt-get install -y gcc g++ cmake diff --git a/install/threadfin-install.sh b/install/threadfin-install.sh index 40ac905940..b71465d6b9 100644 --- a/install/threadfin-install.sh +++ b/install/threadfin-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y \ diff --git a/install/uhf-install.sh b/install/uhf-install.sh index 41b8f6fc81..ecf7f32bcc 100644 --- a/install/uhf-install.sh +++ b/install/uhf-install.sh @@ -12,6 +12,7 @@ catch_errors setting_up_container network_check update_os +setup_hwaccel msg_info "Installing Dependencies" $STD apt install -y ffmpeg