From 30e213fa7ee6ed59ea2021281372153632880839 Mon Sep 17 00:00:00 2001 From: "Nathaniel \"Church\" Hatfield" Date: Sat, 23 Nov 2024 13:48:12 -0700 Subject: [PATCH] Add Dolby Vision support to HandBrake (#346) * add libdovi hb rust build deps to install script * add --enable-libdovi flag for hb Dolby Vision build support * fix rustup install for noninteractive docker build * [Automated] Increment Version * load rustup and set build tgt add cleanup step * [Automated] Increment Version * remove redundant setting of build tgt * [Automated] Increment Version * fix version increment to not skip two versions * cleanup rustup * revert version as will be updated in PR * move rustup cleanup to after final build * move rustup/cargo deps for libdovi into handbrake script to save 1.6GB in build layers * remove rustup more cleanly --------- Co-authored-by: github-actions[bot] --- scripts/install_handbrake.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/install_handbrake.sh b/scripts/install_handbrake.sh index 2bf98b36..996ebce3 100755 --- a/scripts/install_handbrake.sh +++ b/scripts/install_handbrake.sh @@ -48,12 +48,23 @@ tar --extract \ "HandBrake-$HANDBRAKE_VERSION" rm handbrake.tar.bz2 +# libdovi (Dolby Vision) support +curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y +source "$HOME/.cargo/env" +cargo install cargo-c +rustup target add x86_64-pc-windows-gnu + # build cd /tmp/handbrake nproc="$(nproc)" -./configure --disable-gtk --enable-qsv --enable-vce --launch-jobs="$nproc" --launch +./configure --disable-gtk --enable-qsv --enable-vce --enable-libdovi --launch-jobs="$nproc" --launch make -C build -j "$nproc" make -C build install cp /usr/local/bin/HandBrakeCLI /usr/bin/HandBrakeCLI cd / + +# cleanup +rustup self uninstall -y +rm -rf "$HOME/.cargo/" +rm -rf /root/.rustup rm -rf /tmp/handbrake