Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dolby Vision support to HandBrake #346

Merged
merged 14 commits into from
Nov 23, 2024
Merged
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