Skip to content

Commit

Permalink
Add Dolby Vision support to HandBrake (#346)
Browse files Browse the repository at this point in the history
* 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] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Church13 and github-actions[bot] authored Nov 23, 2024
1 parent f949ac0 commit 30e213f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/install_handbrake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30e213f

Please sign in to comment.