@@ -13,8 +13,6 @@ setting_up_container
1313network_check
1414update_os
1515
16- FFMPEG_VERSION=" latest" FFMPEG_TYPE=" full" setup_ffmpeg
17-
1816msg_info " Setting Up Hardware Acceleration"
1917$STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
2018if [[ " $CTTYPE " == " 0" ]]; then
@@ -26,7 +24,37 @@ if [[ "$CTTYPE" == "0" ]]; then
2624fi
2725msg_ok " Set Up Hardware Acceleration"
2826
27+ read -r -p " ${TAB3} Do you need the intel-media-va-driver-non-free driver for HW encoding (Debian 12 only)? <y/N> " prompt
28+ if [[ ${prompt,,} =~ ^(y| yes)$ ]]; then
29+ msg_info " Installing Intel Hardware Acceleration (non-free)"
30+ cat << EOF >/etc/apt/sources.list.d/non-free.list
31+
32+ deb http://deb.debian.org/debian bookworm non-free non-free-firmware
33+ deb-src http://deb.debian.org/debian bookworm non-free non-free-firmware
34+
35+ deb http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
36+ deb-src http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware
37+
38+ deb http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
39+ deb-src http://deb.debian.org/debian bookworm-updates non-free non-free-firmware
40+ EOF
41+ $STD apt-get update
42+ $STD apt-get -y install {intel-media-va-driver-non-free,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
43+ else
44+ msg_info " Installing Intel Hardware Acceleration"
45+ $STD apt-get -y install {va-driver-all,ocl-icd-libopencl1,intel-opencl-icd,vainfo,intel-gpu-tools}
46+ fi
47+ msg_ok " Installed and Set Up Intel Hardware Acceleration"
48+
2949fetch_and_deploy_gh_release " ersatztv" " ErsatzTV/ErsatzTV" " prebuild" " latest" " /opt/ErsatzTV" " *linux-x64.tar.gz"
50+ fetch_and_deploy_gh_release " ersatztv-ffmpeg" " ErsatzTV/ErsatzTV-ffmpeg" " prebuild" " latest" " /opt/ErsatzTV-ffmpeg" " *-linux64-gpl-7.1.tar.xz"
51+
52+ msg_info " Set ErsatzTV-ffmpeg links"
53+ chmod +x /opt/ErsatzTV-ffmpeg/bin/*
54+ ln -sf /opt/ErsatzTV-ffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg
55+ ln -sf /opt/ErsatzTV-ffmpeg/bin/ffplay /usr/local/bin/ffplay
56+ ln -sf /opt/ErsatzTV-ffmpeg/bin/ffprobe /usr/local/bin/ffprobe
57+ msg_ok " ffmpeg links set"
3058
3159msg_info " Creating Service"
3260cat << EOF >/etc/systemd/system/ersatzTV.service
0 commit comments