LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   HandBrake-1.7.3 (https://www.linuxquestions.org/questions/slackware-14/handbrake-1-7-3-a-4175735021/)

J_W 03-18-2024 01:15 AM

HandBrake-1.7.3
 
Hi, all

I'll report that I successfully compiled and created HandBrake-1.7.3 package on slackware64-current environment.

The SlackBuild I used is below.
(diff from current SBo's Slackbuild of version 1.5.1)

Code:

--- HandBrake.SlackBuild        2022-06-11 11:03:11.000000000 +0900
+++ HandBrake.SlackBuild.new        2024-03-18 14:41:48.375948788 +0900
@@ -10,8 +10,8 @@
 cd $(dirname $0) ; CWD=$(pwd)
 
 PRGNAM=HandBrake
-VERSION=${VERSION:-1.5.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.7.3}
+BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 PKGTYPE=${PKGTYPE:-tgz}
 DOCDIR=${DOCDIR:-/usr/doc}
@@ -72,7 +72,9 @@
 # x265 as a required dep. It's based on Debian's
 # 0001-Remove-embedded-downloaded-copies-of-various-librari.patch
 # ...but it only affects x265.
-patch -p1 < $CWD/system_x265.diff
+#
+# HandBrake version 1.7.3 doesn't need this patch any more.
+#patch -p1 < $CWD/system_x265.diff
 
 # Autodetect onevpl support
 if pkg-config --exists vpl ; then qsv="--enable-qsv" ; else qsv="" ; fi
@@ -81,7 +83,6 @@
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
  --prefix=/usr \
-  --disable-gtk-update-checks \
  --enable-fdk-aac \
  --enable-nvenc \
  --enable-vce \

List of sources: HandBrake.info.new
Code:

PRGNAM="HandBrake"
VERSION="1.7.3"
HOMEPAGE="https://handbrake.fr/"
DOWNLOAD="https://github.com/HandBrake/HandBrake/releases/download/1.7.3/HandBrake-1.7.3-source.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/AMF-1.4.30.tar.gz \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/SVT-AV1-v1.7.0.tar.gz \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/dav1d-1.3.0.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/fdk-aac-2.8.2.tar.gz \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/ffmpeg-6.1.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/libbluray-1.3.4.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/libdvdnav-6.1.1.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/libdvdread-6.1.3.tar.bz2 \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/nv-codec-headers-12.1.14.1.tar.gz \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/oneVPL-2023.3.1.tar.gz \
          https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs/zimg-3.0.5.tar.gz"
MD5SUM="e6ec1b29e1ddb0fd04bb28a99ac33e33 \
        4daebe8bc7aab9eeffe69a32eb1ee956 \
        3f835514c253b587f609015e58c5a65f \
        c8381f8346525dcd4205e9b50d80c5f4 \
        b15f56aebd0b4cfe8532b24ccfd8d11e \
        96e1143403edb2025b9cc0096947d5f0 \
        c744e610f539ba4b31280185ad48f1e1 \
        46c46cb0294fbd1fcb8a0181818dad15 \
        3c58d1624a71a16ff40f55dbaca82523 \
        37f4ded44f9aa9e03fa42f2bb7c9012b \
        a82c72078ccd16c91b816052497b3080 \       
        af2c08cc0e695f4c0c225feed14e9f20"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libass x264 x265 numactl"
MAINTAINER="klaatu"
EMAIL="klaatu@member.fsf.org"


kgha 03-18-2024 02:00 AM

Thanks, most helpful.

I've been tinkering with HandBrake buildscripts for some time (since 1.6.0 or 1.7.0, can't remember now), having created a working script with the help of AlienBob's buildscript generator.

I then found another change in those later versions: one doesn't have to download any source files apart from HandBrake - that file will in itself fetch all necessary codecs &c during configuring.

EDIT: not having to download extra source files means that these two lines (#62-63 in the original) in the script can also be commented out/deleted:
Code:

mkdir -p download
cp -r $CWD/*{gz,bz2} download


J_W 03-18-2024 03:07 AM

Quote:

Originally Posted by kgha (Post 6490332)
Thanks.

I've been tinkering with HandBrake buildscripts for some time (since 1.6.0 or 1.7.0, can't remember now), having created a working script based on AlienBob's.

Another change in those later versions is that one doesn't have to download any source files apart from HandBrake - that file will in itself fetch all necessary codecs &c during configuring.

Thanks for your comments.

Yes, I saw a behavior that you are pointing when I tried my first trial SlackBuild.
For example, when I put ffmpeg-6.1.1.tar.gz in $CWD, HandBrake's source downloaded ffmpeg-6.1.tar.gz automatically.

Anyway, since the package is working fine now with NVENC function on my slackware box, I'm happy now.


All times are GMT -5. The time now is 10:31 AM.