Yes I have Handbrake 1.9 working on my Raspberry Pi 5. I would like help if you can...
- make these instructions easier to follow
- provide more info on configuration or compiler switches for Handbrake
- help modify the git clone command for the handbrake project so that it pulls the exact version of the 1.9 build
- package the file (assuming other people are interested).
Your account must have sudo privileges to build handbrake and components.
This info is on the web I just pulled it together here.
I'm listing things in the order I think they are needed. Not in the order that I really did them
MY SETUP
I'm running the lite version of piOS along with the cinnamon desktop. I had the flatpack version of Handbrake 1.6.1 on here for a while and uninstalled it. I mention this in case this inadvertently added to my setup. The PI 5 is 8GB and is in a Pironman case with associated software.
FIRST - building the project errored out on finding the "openssl.pc" file. First suggestion from the web was:
Debian/Ubuntu: Use sudo apt-get install libssl-dev or sudo apt-get install openssl
Following this installation I expected to find the file in either /usr/lib/pkgconfig. or /usr/share/pkgconfig/.
This command loaded the DEV version of SSL but left no trace of the "openssl.pc" file. So don't take this advise from the web.
The second failure seemed to be expecting v3.2.0 of openssl so I changed the attached script to request that version. So even though you may have a file it may not be the correct version
I have attached install_openssl.sh that worked for me. Place this in your home directories, make sure it is marked executable before executing it.Following execution I found the "openssl.pc" file in /usr/local/lib/pkgconfig/
SECOND - install prerequisites.### For libdovi, you will also need rust, cargoc and associated dependencies:
install-rust-cargoc.sh make sure script is executable before execution### To build with Intel Quick Sync Video support, install the QSV dependencies.### To build the GTK GUI, install the graphical interface dependencies.THIRD - Build Handbrake
### Clone the HandBrake repository.*** how do I use this info to get the source I want from github? ***
### List available tags in the HandBrake 1.9.x release series, and check out the most recent.
git tag --list | grep ^1\.9\.
git checkout refs/tags/$(git tag -l | grep -E '^1\.9\.[0-9]+$' | tail -n 1)
### The configure command kicks off the build process
### To enable experimental support for Intel Quick Sync Video, append --enable-qsv.
### To build the command line interface only, disable the graphical interface by appending --disable-gtk.
### To force a build after a failure, append --forceWhen complete, you will find HandBrakeCLI in the ~/Handbrake/build/ directory. If the graphical interface is enabled, you will also find ghb in the ~/Handbrake/build/gtk/src/ directory.
Fourth - install / uninstall info
### Install HandBrake (optional).
When installing the graphical interface, icon and desktop files for the Applications menu will be also installed.
If you wish to then uninstall
To start over, simply remove the build directory.
FIFTH would be Distribution? How to add this to a flatpack or Apt package manager? Anyone care to take this on?
Expect OpenSSL to take several minutes to build. rust, cargoc and dependencies took about 5 minutes to compile and Handbrake itself took a little over 10 minutes.
So far I have only encoded one movie and it seems to work great although a bit slowly compared to my PC.
- make these instructions easier to follow
- provide more info on configuration or compiler switches for Handbrake
- help modify the git clone command for the handbrake project so that it pulls the exact version of the 1.9 build
- package the file (assuming other people are interested).
Your account must have sudo privileges to build handbrake and components.
This info is on the web I just pulled it together here.
I'm listing things in the order I think they are needed. Not in the order that I really did them
MY SETUP
I'm running the lite version of piOS along with the cinnamon desktop. I had the flatpack version of Handbrake 1.6.1 on here for a while and uninstalled it. I mention this in case this inadvertently added to my setup. The PI 5 is 8GB and is in a Pironman case with associated software.
FIRST - building the project errored out on finding the "openssl.pc" file. First suggestion from the web was:
Debian/Ubuntu: Use sudo apt-get install libssl-dev or sudo apt-get install openssl
Following this installation I expected to find the file in either /usr/lib/pkgconfig. or /usr/share/pkgconfig/.
This command loaded the DEV version of SSL but left no trace of the "openssl.pc" file. So don't take this advise from the web.
The second failure seemed to be expecting v3.2.0 of openssl so I changed the attached script to request that version. So even though you may have a file it may not be the correct version
I have attached install_openssl.sh that worked for me. Place this in your home directories, make sure it is marked executable before executing it.
Code:
sudo ./install_openssl.sh
SECOND - install prerequisites.
Code:
sudo apt-get updatesudo apt-get install autoconf automake build-essential cmake git libass-dev libbz2-dev libfontconfig-dev libfreetype-dev libfribidi-dev libharfbuzz-dev libjansson-dev liblzma-dev libmp3lame-dev libnuma-dev libogg-dev libopus-dev libsamplerate0-dev libspeex-dev libtheora-dev libtool libtool-bin libturbojpeg0-dev libvorbis-dev libx264-dev libxml2-dev libvpx-dev m4 make meson nasm ninja-build patch pkg-config tar zlib1g-dev
install-rust-cargoc.sh make sure script is executable before execution
Code:
sudo ./install-rust-cargoc.sh
Code:
sudo apt-get install libva-dev libdrm-dev
Code:
sudo apt-get install appstream desktop-file-utils gettext gstreamer1.0-libav gstreamer1.0-plugins-good libgstreamer-plugins-base1.0-dev libgtk-4-dev
### Clone the HandBrake repository.
Code:
cd ~git clone https://github.com/HandBrake/HandBrake.git && cd HandBrake
### List available tags in the HandBrake 1.9.x release series, and check out the most recent.
git tag --list | grep ^1\.9\.
git checkout refs/tags/$(git tag -l | grep -E '^1\.9\.[0-9]+$' | tail -n 1)
### The configure command kicks off the build process
### To enable experimental support for Intel Quick Sync Video, append --enable-qsv.
### To build the command line interface only, disable the graphical interface by appending --disable-gtk.
### To force a build after a failure, append --force
Code:
sudo ./configure --launch-jobs=$(nproc) --launch
Fourth - install / uninstall info
### Install HandBrake (optional).
When installing the graphical interface, icon and desktop files for the Applications menu will be also installed.
Code:
sudo make --directory=build install
Code:
sudo make --directory=build uninstall
Code:
rm -rf build
Expect OpenSSL to take several minutes to build. rust, cargoc and dependencies took about 5 minutes to compile and Handbrake itself took a little over 10 minutes.
So far I have only encoded one movie and it seems to work great although a bit slowly compared to my PC.
Statistics: Posted by bmanske — Tue Jan 14, 2025 10:28 pm — Replies 0 — Views 26