LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2024, 01:15 AM   #1
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 194

Rep: Reputation: 132Reputation: 132
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"

Last edited by J_W; 03-18-2024 at 01:19 AM.
 
Old 03-18-2024, 02:00 AM   #2
kgha
Senior Member
 
Registered: May 2018
Location: Sweden
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,101

Rep: Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768Reputation: 768
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

Last edited by kgha; 03-18-2024 at 04:50 AM.
 
1 members found this post helpful.
Old 03-18-2024, 03:07 AM   #3
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 194

Original Poster
Rep: Reputation: 132Reputation: 132
Quote:
Originally Posted by kgha View Post
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.
 
Old 05-23-2024, 04:16 AM   #4
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 194

Original Poster
Rep: Reputation: 132Reputation: 132
HandBrake-1.8.0 has been released

Hi,
This is just an information for HandBrake users in this forum.
The latest stable release of HandBrake-1.8.0 has been released.
https://github.com/HandBrake/HandBra...ases/tag/1.8.0

I created package on my slackware64-current environment and it's working without any trouble so far.

[note]
It's internal FFmpeg is version "7.0" and GUI is GTK4 base.

I prefer to use dark theme on my xfce desktop. However, Handbrake-1.8.0 didn't start with dark theme.
I edited "/usr/share/applications/fr.handbrake.ghb.desktop" like below.
Exec=ghb %f --> Exec=env GTK_THEME=Adwaita-dark ghb %f

Please see attached example screenshots. (Sorry. my $LANG is ja_JP.UTF-8.)
Attached Thumbnails
Click image for larger version

Name:	HandBrake-1.8.0_About.png
Views:	16
Size:	117.1 KB
ID:	42889   Click image for larger version

Name:	HandBrake-1.8.0_About_system.png
Views:	14
Size:	36.5 KB
ID:	42890   Click image for larger version

Name:	HandBrake-1.8.0_preset-lst.png
Views:	13
Size:	28.4 KB
ID:	42891  
 
2 members found this post helpful.
Old 05-23-2024, 03:27 PM   #5
Bouboulov
Member
 
Registered: Apr 2022
Location: France
Distribution: Slackware64-current
Posts: 36

Rep: Reputation: 5
Works really great, many thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Handbrake DVD Ripper On Linux LXer Syndicated Linux News 0 02-17-2009 11:20 AM
Handbrake's GUI and them pesky Gnome libraries simonb1975uk Slackware 2 12-18-2008 07:22 AM
LXer: CLI Magic: Porting DVDs with HandBrake LXer Syndicated Linux News 0 04-24-2006 04:03 PM
DVD Ripper "Handbrake" for Mandriva dolphans1 Mandriva 14 01-16-2006 11:33 PM
handbrake compilation microsoft/linux Debian 3 01-02-2006 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration