=> "/opt/local/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-trunk-x86_64/multimedia/handbrake", "all", "PYTHON_VERSION_REQD=313", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for handbrake-1.11.2nb2 /usr/bin/mkdir -p /tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/download /usr/bin/ln -fs /data/distfiles/handbrake/ffmpeg-8.0.2.tar.bz2 /tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/download /usr/bin/ln -fs /data/distfiles/handbrake/x265-snapshot-20260216-13309.tar.gz /tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/download /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p libhb/handbrake/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p contrib/ffmpeg/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p contrib/libiconv/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p contrib/lib/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p contrib/include/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p contrib/x265/ /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p test/ /opt/local/bin/gm4 -Iproject ../libhb/handbrake/project.h.m4 > libhb/handbrake/project.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/audio_remap.h libhb/handbrake/audio_remap.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/audio_resample.h libhb/handbrake/audio_resample.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/av1_common.h libhb/handbrake/av1_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/avfilter_priv.h libhb/handbrake/avfilter_priv.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/bitstream.h libhb/handbrake/bitstream.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/colormap.h libhb/handbrake/colormap.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/common.h libhb/handbrake/common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/compat.h libhb/handbrake/compat.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/decavsub.h libhb/handbrake/decavsub.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/decomb.h libhb/handbrake/decomb.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/dovi_common.h libhb/handbrake/dovi_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/dvd.h libhb/handbrake/dvd.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/eedi2.h libhb/handbrake/eedi2.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/encavsub.h libhb/handbrake/encavsub.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/encx264.h libhb/handbrake/encx264.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/extradata.h libhb/handbrake/extradata.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/h264_common.h libhb/handbrake/h264_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/h265_common.h libhb/handbrake/h265_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/handbrake.h libhb/handbrake/handbrake.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hb_dict.h libhb/handbrake/hb_dict.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hb_json.h libhb/handbrake/hb_json.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hbavfilter.h libhb/handbrake/hbavfilter.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hbffmpeg.h libhb/handbrake/hbffmpeg.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hbtypes.h libhb/handbrake/hbtypes.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hdr10plus.h libhb/handbrake/hdr10plus.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/hwaccel.h libhb/handbrake/hwaccel.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/internal.h libhb/handbrake/internal.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/lang.h libhb/handbrake/lang.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/mf_common.h libhb/handbrake/mf_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/nal_units.h libhb/handbrake/nal_units.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/nlmeans.h libhb/handbrake/nlmeans.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/nvenc_common.h libhb/handbrake/nvenc_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/param.h libhb/handbrake/param.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/ports.h libhb/handbrake/ports.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/preset.h libhb/handbrake/preset.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/preset_builtin.h libhb/handbrake/preset_builtin.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/qsv_common.h libhb/handbrake/qsv_common.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/rpu.h libhb/handbrake/rpu.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/ssautil.h libhb/handbrake/ssautil.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/taskset.h libhb/handbrake/taskset.h /tmp/work/multimedia/handbrake/work/.tools/bin/cp ../libhb/handbrake/vce_common.h libhb/handbrake/vce_common.h sha256 (../download/x265-snapshot-20260216-13309.tar.gz) = a0882bb90826da62a96676c1a7cb7a7beb7f1db901f2775299cbeed03c3eb2a2 (pass) touch contrib/x265/.stamp.x265.extract /tmp/work/multimedia/handbrake/work/.tools/bin/rm -fr ./contrib/x265/x265-snapshot-20260216-13309/ /usr/bin/gtar xfC ../download/x265-snapshot-20260216-13309.tar.gz ./contrib/x265/ sha256 (../download/ffmpeg-8.0.2.tar.bz2) = 2a8b8840c0bc78f5ed1576f98eba7df00c05f87fd6d07fad16efcd9333016edf (pass) touch contrib/x265/.stamp.x265_10.extract touch contrib/x265/.stamp.x265_12.extract /tmp/work/multimedia/handbrake/work/.tools/bin/rm -fr ./contrib/ffmpeg/ffmpeg-8.0.2/ /usr/bin/gtar xfC ../download/ffmpeg-8.0.2.tar.bz2 ./contrib/ffmpeg/ touch contrib/x265/.stamp.x265_8.extract touch contrib/x265/.stamp.x265.patch /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A01-Do-not-set-thread-priority-on-Windows.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From a8c1d64e08c00ade27bc6508dd57ec567d578390 Mon Sep 17 00:00:00 2001 |From: Max Dmitrichenko |Date: Thu, 22 Aug 2024 07:40:48 +0200 |Subject: [PATCH 1/6] Do not set thread priority on Windows | |--- | source/common/threadpool.cpp | 6 ------ | 1 file changed, 6 deletions(-) | |diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp |index ec96f18b1..615b04b6f 100644 |--- a/source/common/threadpool.cpp |+++ b/source/common/threadpool.cpp -------------------------- Patching file source/common/threadpool.cpp using Plan A... Hunk #1 succeeded at 115. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A02-Apple-Silicon-tuning.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 7dff83433c71d55fd0e859045025d1e007ec65a4 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Fri, 13 Sep 2024 16:08:25 +0200 |Subject: [PATCH 2/6] Apple Silicon tuning | |--- | source/common/threadpool.cpp | 8 +++++++- | 1 file changed, 7 insertions(+), 1 deletion(-) | |diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp |index 615b04b6f..7d99f8cb1 100644 |--- a/source/common/threadpool.cpp |+++ b/source/common/threadpool.cpp -------------------------- Patching file source/common/threadpool.cpp using Plan A... Hunk #1 succeeded at 661. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A03-Implement-ambient-viewing-environment-sei.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 770f55dd15e18175b988899212a1fd55536d60f3 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Fri, 22 Nov 2024 10:49:10 +0100 |Subject: [PATCH 3/6] Implement ambient viewing environment sei | |Defined in ISO/IEC 23008-2:2017, D.2.39. |--- | source/common/param.cpp | 6 ++++++ | source/encoder/encoder.cpp | 9 +++++++++ | source/encoder/sei.h | 19 +++++++++++++++++++ | source/x265.h | 9 +++++++++ | 4 files changed, 43 insertions(+) | |diff --git a/source/common/param.cpp b/source/common/param.cpp |index 6aed44ac2..adf157f61 100755 |--- a/source/common/param.cpp |+++ b/source/common/param.cpp -------------------------- Patching file source/common/param.cpp using Plan A... Hunk #1 succeeded at 408. Hunk #2 succeeded at 1971 (offset 1 line). Hunk #3 succeeded at 2929 (offset -2 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp |index cf2e95988..39ca2ada1 100644 |--- a/source/encoder/encoder.cpp |+++ b/source/encoder/encoder.cpp -------------------------- Patching file source/encoder/encoder.cpp using Plan A... Hunk #1 succeeded at 3399 (offset 24 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/encoder/sei.h b/source/encoder/sei.h |index 3ed957058..9d3e74c63 100644 |--- a/source/encoder/sei.h |+++ b/source/encoder/sei.h -------------------------- Patching file source/encoder/sei.h using Plan A... Hunk #1 succeeded at 638. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/x265.h b/source/x265.h |index 8bc7bea2a..70cd66dcb 100644 |--- a/source/x265.h |+++ b/source/x265.h -------------------------- Patching file source/x265.h using Plan A... Hunk #1 succeeded at 376. Hunk #2 succeeded at 1968 (offset 4 lines). Hunk #3 succeeded at 2184 (offset 4 lines). Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A04-add-new-matrix-coefficients-from-H.273-v3.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From e740de13f5dd9867565dab604b07a8158ac1f4ca Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Sat, 30 Nov 2024 08:59:51 +0100 |Subject: [PATCH 4/6] add new matrix coefficients from H.273 v3 | |--- | doc/reST/cli.rst | 3 +++ | source/common/param.cpp | 4 ++-- | source/x265.h | 2 +- | source/x265cli.cpp | 2 +- | 4 files changed, 7 insertions(+), 4 deletions(-) | |diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst |index 6bb99f92e..e9bc86d23 100755 |--- a/doc/reST/cli.rst |+++ b/doc/reST/cli.rst -------------------------- Patching file doc/reST/cli.rst using Plan A... Hunk #1 succeeded at 2369. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/common/param.cpp b/source/common/param.cpp |index adf157f61..9534e0bd4 100755 |--- a/source/common/param.cpp |+++ b/source/common/param.cpp -------------------------- Patching file source/common/param.cpp using Plan A... Hunk #1 succeeded at 1811 (offset 1 line). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/x265.h b/source/x265.h |index 70cd66dcb..32c901194 100644 |--- a/source/x265.h |+++ b/source/x265.h -------------------------- Patching file source/x265.h using Plan A... Hunk #1 succeeded at 752 (offset 4 lines). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/x265cli.cpp b/source/x265cli.cpp |index c5fd26a68..47e69c85d 100755 |--- a/source/x265cli.cpp |+++ b/source/x265cli.cpp -------------------------- Patching file source/x265cli.cpp using Plan A... Hunk #1 succeeded at 327. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A05-Fix-Dolby-Vision-RPU-memory-management.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 4cff3eb1cb6faebfbc82ec500d8441313d02e1d7 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Fri, 22 Nov 2024 10:51:25 +0100 |Subject: [PATCH 5/6] Fix Dolby Vision RPU memory management | |--- | source/common/frame.cpp | 5 +++++ | source/encoder/encoder.cpp | 13 +++++++++++-- | 2 files changed, 16 insertions(+), 2 deletions(-) | |diff --git a/source/common/frame.cpp b/source/common/frame.cpp |index 200717425..1244fdc24 100644 |--- a/source/common/frame.cpp |+++ b/source/common/frame.cpp -------------------------- Patching file source/common/frame.cpp using Plan A... Hunk #1 succeeded at 370. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp |index 39ca2ada1..4461ed8e2 100644 |--- a/source/encoder/encoder.cpp |+++ b/source/encoder/encoder.cpp -------------------------- Patching file source/encoder/encoder.cpp using Plan A... Hunk #1 succeeded at 1713 (offset 24 lines). Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A06-Update-version-strings.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 6f85ff3811f1464e19d8ad01e1de4e7fcc32ef81 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Fri, 4 Apr 2025 11:40:36 +0200 |Subject: [PATCH 6/6] Update version strings | |--- | x265Version.txt | 6 +++--- | 1 file changed, 3 insertions(+), 3 deletions(-) | |diff --git a/x265Version.txt b/x265Version.txt |index 8e450033e..59f8d6e55 100644 |--- a/x265Version.txt |+++ b/x265Version.txt -------------------------- Patching file x265Version.txt using Plan A... Hunk #1 succeeded at 1. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A07-Fix-macOS-cross-compilation.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt |index 4160514b9..c2784e967 100755 |--- a/source/CMakeLists.txt |+++ b/source/CMakeLists.txt -------------------------- Patching file source/CMakeLists.txt using Plan A... Hunk #1 succeeded at 884 (offset 95 lines). done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A08-Proper-fix-for-the-aq-motion-bug.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From cfee9638c82b655c5887cedbdf1aa856f81b906a Mon Sep 17 00:00:00 2001 |From: Mr-Z-2697 <74594146+Mr-Z-2697@users.noreply.github.com> |Date: Thu, 26 Mar 2026 11:05:08 +0530 |Subject: [PATCH] Proper fix for the aq-motion bug | |--- | source/common/lowres.cpp | 14 +++++--------- | source/encoder/encoder.cpp | 2 ++ | 2 files changed, 7 insertions(+), 9 deletions(-) | |diff --git a/source/common/lowres.cpp b/source/common/lowres.cpp |index 856f716b8..52953a812 100644 |--- a/source/common/lowres.cpp |+++ b/source/common/lowres.cpp -------------------------- Patching file source/common/lowres.cpp using Plan A... Hunk #1 succeeded at 415. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp |index 3df3ba25a..4870a2723 100644 |--- a/source/encoder/encoder.cpp |+++ b/source/encoder/encoder.cpp -------------------------- Patching file source/encoder/encoder.cpp using Plan A... Hunk #1 succeeded at 1623 (offset -53 lines). Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/x265/x265-snapshot-20260216-13309/ < ../contrib/x265/A09-Ensuring-the-mvdLX-is-compliant.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From de4dc0bc67d648c8efd7fecab8d378d44317c5f0 Mon Sep 17 00:00:00 2001 |From: Mr-Z-2697 <74594146+Mr-Z-2697 at users.noreply.github.com> |Date: Sun, 13 Jul 2025 16:09:53 +0800 |Subject: [PATCH] Ensuring the mvdLX is compliant | | |The value of the mvdLX should be in the range of [-2^15, 2^15-1], as specified in H.265 7.4.9.9 Motion vector difference semantics. |However there was no safety check in this area, the mvdLX have been observed to exceed the range, under some rare circumstances. | | |This casting will cause overflow and underflow, should the mvd exceeds the int16_t range. |But because of the decoding process Equation 8-94 to 8-97, and the MV itself having the range of [-2^15, 2^15-1], the decoded MV will still be correct, and mvdLX will be in the legal range. |--- | source/encoder/entropy.cpp | 5 +++-- | 1 file changed, 3 insertions(+), 2 deletions(-) | | |diff --git a/source/encoder/entropy.cpp b/source/encoder/entropy.cpp |index d4bf73d53..bc1c0d8e0 100644 |--- a/source/encoder/entropy.cpp |+++ b/source/encoder/entropy.cpp -------------------------- Patching file source/encoder/entropy.cpp using Plan A... Hunk #1 succeeded at 2104. Hmm... Ignoring the trailing garbage. done touch contrib/x265/.stamp.x265_8.patch touch contrib/x265/.stamp.x265_10.patch touch contrib/x265/.stamp.x265_12.patch set -e; /tmp/work/multimedia/handbrake/work/.tools/bin/mkdir -p ./contrib/x265/x265-snapshot-20260216-13309/8bit; cd ./contrib/x265/x265-snapshot-20260216-13309/8bit; CC=/tmp/work/multimedia/handbrake/work/.cwrapper/bin/gcc CFLAGS="-I/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/include -std=gnu99 -mfpmath=sse -msse2 -I/opt/local/include -I/usr/include -I/opt/local/include/glib-2.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/harfbuzz -I/opt/local/include/libdrm -I/opt/local/include/libxml2 -I/opt/local/include/ncurses -I/opt/local/include/python3.13 -I/opt/local/include/gstreamer-1.0 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -I/opt/local/include/glib-2.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/harfbuzz -I/opt/local/include/libdrm -I/opt/local/include/libxml2 -I/opt/local/include/ncurses -I/opt/local/include/python3.13 -I/opt/local/include/gstreamer-1.0 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,rescan" CXX=/tmp/work/multimedia/handbrake/work/.cwrapper/bin/g++ CXXFLAGS="-I/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/include -mfpmath=sse -msse2 -I/opt/local/include -I/usr/include -I/opt/local/include/glib-2.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/harfbuzz -I/opt/local/include/libdrm -I/opt/local/include/libxml2 -I/opt/local/include/ncurses -I/opt/local/include/python3.13 -I/opt/local/include/gstreamer-1.0 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -I/opt/local/include/glib-2.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/harfbuzz -I/opt/local/include/libdrm -I/opt/local/include/libxml2 -I/opt/local/include/ncurses -I/opt/local/include/python3.13 -I/opt/local/include/gstreamer-1.0 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,rescan" CPPFLAGS="-I/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/include " LDFLAGS="-L/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/lib -ldovi -L/opt/local//opt/local/lib -Wl,-R/opt/local/lib -L/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -liconv -lintl -fstack-protector-strong" PKG_CONFIG_PATH="/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/lib/pkgconfig:" cmake -DCMAKE_INSTALL_PREFIX="/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/" -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DHIGH_BIT_DEPTH=OFF -DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON -DCMAKE_ASM_NASM_FLAGS=-w-macro-params-legacy -DENABLE_LIBNUMA=OFF -DCMAKE_BUILD_TYPE=Release "/tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/x265/x265-snapshot-20260216-13309/source/" -- cmake version 4.4.3 CMake Warning (author) at CMakeLists.txt:15 (project): cmake_minimum_required() should be called prior to this top-level project() call. Please see the cmake-commands(7) manual for usage documentation of both commands. This warning is for project developers. Use -Wno-author to suppress it. -- The C compiler identification is GNU 13.4.0 -- The CXX compiler identification is GNU 13.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /tmp/work/multimedia/handbrake/work/.cwrapper/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /tmp/work/multimedia/handbrake/work/.cwrapper/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detected x86_64 target processor -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Performing Test CC_HAS_NO_STRICT_OVERFLOW -- Performing Test CC_HAS_NO_STRICT_OVERFLOW - Success -- Performing Test CC_HAS_NO_NARROWING touch contrib/ffmpeg/.stamp.ffmpeg.extract /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A01-mov-read-name-track-tag-written-by-movenc.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From a6e134197eaf4c448f47327309c030d14df13172 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Fri, 29 Aug 2025 09:52:13 +0200 |Subject: [PATCH 01/22] mov: read 'name' track tag written by movenc | |--- | libavformat/mov.c | 1 + | 1 file changed, 1 insertion(+) | |diff --git a/libavformat/mov.c b/libavformat/mov.c |index b29c41a6b6..6ce554ad07 100644 |--- a/libavformat/mov.c |+++ b/libavformat/mov.c -------------------------- Patching file libavformat/mov.c using Plan A... Hunk #1 succeeded at 391. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A02-movenc-write-3gpp-track-titl-tag.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From b1ea22c23e3f5f6db08a9fa48cbe7697fe806b9c Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:08:52 +0100 |Subject: [PATCH 02/22] movenc: write 3gpp track 'titl' tag | |Apple software used to use 'name' raw tag for track titles. When they rewrote everything with AVFoundation, they switched to using 3gpp 'titl' tag for track titles and 'name' no longer works. |--- | libavformat/movenc.c | 77 ++++++++++++++++++++++---------------------- | 1 file changed, 39 insertions(+), 38 deletions(-) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index 585a018e35..9511142708 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 4169. Hunk #2 succeeded at 4271. Hunk #3 succeeded at 4871. Hunk #4 succeeded at 4909. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A03-mov-read-3gpp-udta-tags.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From c671e7006e811d5440747d30619f01428bb202f3 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:09:41 +0100 |Subject: [PATCH 03/22] mov: read 3gpp udta tags. | |--- | libavformat/mov.c | 101 ++++++++++++++++++++++++++++++++++++++++++++-- | 1 file changed, 98 insertions(+), 3 deletions(-) | |diff --git a/libavformat/mov.c b/libavformat/mov.c |index 6ce554ad07..eb067c756c 100644 |--- a/libavformat/mov.c |+++ b/libavformat/mov.c -------------------------- Patching file libavformat/mov.c using Plan A... Hunk #1 succeeded at 56. Hunk #2 succeeded at 342. Hunk #3 succeeded at 440. Hunk #4 succeeded at 537. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A04-movenc-write-3gpp-track-names-tags-for-all-available.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From a0bc1d9da78919c74021a3a5710001a1a295fb64 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:10:27 +0100 |Subject: [PATCH 04/22] movenc: write 3gpp track names tags for all available | languages | |Metadata keys can have a language suffix. Iterate through all language variations of the metadata key. |--- | libavformat/movenc.c | 25 +++++++++++++++++++++++-- | 1 file changed, 23 insertions(+), 2 deletions(-) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index 9511142708..e60483ebb4 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 28. Hunk #2 succeeded at 4189. Hunk #3 succeeded at 4280. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A05-avformat-mov-add-support-audio-fallback-track-ref.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From d9869798a86094e5eaa8b6454bae1093f67e1058 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Fri, 12 Apr 2024 10:06:24 -0600 |Subject: [PATCH 05/22] avformat/mov: add support audio fallback track ref | |--- | libavformat/isom.h | 3 +++ | libavformat/mov.c | 34 ++++++++++++++++++++++++++++++++++ | 2 files changed, 37 insertions(+) | |diff --git a/libavformat/isom.h b/libavformat/isom.h |index 94c9c65989..41e4b66f32 100644 |--- a/libavformat/isom.h |+++ b/libavformat/isom.h -------------------------- Patching file libavformat/isom.h using Plan A... Hunk #1 succeeded at 282. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavformat/mov.c b/libavformat/mov.c |index eb067c756c..d419e5457e 100644 |--- a/libavformat/mov.c |+++ b/libavformat/mov.c -------------------------- Patching file libavformat/mov.c using Plan A... Hunk #1 succeeded at 9496 (offset 75 lines). Hunk #2 succeeded at 9614 (offset 75 lines). Hunk #3 succeeded at 10900 (offset 15 lines). Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A06-avformat-mov-read-and-write-additional-iTunes-style-.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From a03bd0278cb3acacda675e81d752d90ff11562f5 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Tue, 18 Feb 2025 07:32:08 +0100 |Subject: [PATCH 06/22] avformat/mov: read and write additional iTunes style | metadata | |--- | libavformat/mov.c | 67 +++++++++++++++++++++++++++++++++++++++++- | libavformat/movenc.c | 70 +++++++++++++++++++++++++++++++++++++++++--- | 2 files changed, 132 insertions(+), 5 deletions(-) | |diff --git a/libavformat/mov.c b/libavformat/mov.c |index d419e5457e..c21130dde2 100644 |--- a/libavformat/mov.c |+++ b/libavformat/mov.c -------------------------- Patching file libavformat/mov.c using Plan A... Hunk #1 succeeded at 131. Hunk #2 succeeded at 464. Hunk #3 succeeded at 489. Hunk #4 succeeded at 506. Hunk #5 succeeded at 519. Hunk #6 succeeded at 537. Hunk #7 succeeded at 548. Hunk #8 succeeded at 572. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index e60483ebb4..e058b06280 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 4675. Hunk #2 succeeded at 4695. Hunk #3 succeeded at 4753. Hunk #4 succeeded at 4765. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A07-avformat-movenc-write-iTunEXTC-and-iTunMOVI-metadata.patch -- Performing Test CC_HAS_NO_NARROWING - Success -- Performing Test CC_HAS_NO_ARRAY_BOUNDS Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 9dc141ed29b5e713590492c6d662a5802327e835 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Thu, 13 Feb 2025 09:46:30 +0100 |Subject: [PATCH 07/22] avformat/movenc: write iTunEXTC and iTunMOVI metadata | |--- | libavformat/movenc.c | 45 ++++++++++++++++++++++++++++++++++++++++++++ | 1 file changed, 45 insertions(+) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index e058b06280..4136a5d623 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 4670. Hunk #2 succeeded at 4865. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A08-dvdsubdec-fix-processing-of-partial-packets.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 26491abb53d313e01fbcea48a9b3b4ff13a8a150 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:11:09 +0100 |Subject: [PATCH 08/22] dvdsubdec: fix processing of partial packets | |Wait for a complete dvd subtitle before processing. | |If the input packet is large enough to start processing, but does not contain complete data, unfinished results are emitted and the following input packet causes an error because the stream is no longer in sync with the decoder. |--- | libavcodec/dvdsubdec.c | 23 ++++++++++++++++------- | 1 file changed, 16 insertions(+), 7 deletions(-) | |diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c |index 78658f7d2f..1207aff88e 100644 |--- a/libavcodec/dvdsubdec.c |+++ b/libavcodec/dvdsubdec.c -------------------------- Patching file libavcodec/dvdsubdec.c using Plan A... Hunk #1 succeeded at 230. Hunk #2 succeeded at 246. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A09-dvdsubdec-return-number-of-bytes-used.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 700d8f69087e9e0928a7c860105f60956026cee4 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:11:51 +0100 |Subject: [PATCH 09/22] dvdsubdec: return number of bytes used | |Documentation says avcodec_decode_subtitle2 returns the number of bytes used. |--- | libavcodec/dvdsubdec.c | 6 +++++- | 1 file changed, 5 insertions(+), 1 deletion(-) | |diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c |index 1207aff88e..d1aa0f9e30 100644 |--- a/libavcodec/dvdsubdec.c |+++ b/libavcodec/dvdsubdec.c -------------------------- Patching file libavcodec/dvdsubdec.c using Plan A... Hunk #1 succeeded at 547. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A10-dvdsubdec-use-pts-of-initial-packet.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 2726c0ef6c7c41e3b47de23094f58e226df605a8 Mon Sep 17 00:00:00 2001 |From: John Stebbins |Date: Wed, 20 Mar 2024 09:12:27 +0100 |Subject: [PATCH 10/22] dvdsubdec: use pts of initial packet | |When the source is DVD, only the initial packet of a subtitle that spans multiple packets will have a pts value. |--- | libavcodec/dvdsubdec.c | 9 +++++++++ | 1 file changed, 9 insertions(+) | |diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c |index d1aa0f9e30..170e01cb17 100644 |--- a/libavcodec/dvdsubdec.c |+++ b/libavcodec/dvdsubdec.c -------------------------- Patching file libavcodec/dvdsubdec.c using Plan A... Hunk #1 succeeded at 45. Hunk #2 succeeded at 534. Hunk #3 succeeded at 553. Hunk #4 succeeded at 565. Hunk #5 succeeded at 576. Hunk #6 succeeded at 703. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A11-dvdsubdec-add-an-option-to-output-subtitles-with-emp.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 213e22ecf53fe303b482dcfe9fa8c8e1c2c89b19 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 20 Mar 2024 09:14:19 +0100 |Subject: [PATCH 11/22] dvdsubdec: add an option to output subtitles with empty | or fully transparent rects. | |--- | libavcodec/dvdsubdec.c | 4 +++- | 1 file changed, 3 insertions(+), 1 deletion(-) | |diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c |index 170e01cb17..83a09d1a17 100644 |--- a/libavcodec/dvdsubdec.c |+++ b/libavcodec/dvdsubdec.c -------------------------- Patching file libavcodec/dvdsubdec.c using Plan A... Hunk #1 succeeded at 46. Hunk #2 succeeded at 569. Hunk #3 succeeded at 721. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A12-ccaption_dec-fix-pts-in-real_time-mode.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From e8991642000428af9c898bbcf9950db572040d62 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 20 Mar 2024 09:14:43 +0100 |Subject: [PATCH 12/22] ccaption_dec: fix pts in real_time mode. | |end_display_time and pts changes should be performed only in non real_time mode. |--- | libavcodec/ccaption_dec.c | 9 +++++---- | 1 file changed, 5 insertions(+), 4 deletions(-) | |diff --git a/libavcodec/ccaption_dec.c b/libavcodec/ccaption_dec.c |index 6f4d4fca41..82be6de51d 100644 |--- a/libavcodec/ccaption_dec.c |+++ b/libavcodec/ccaption_dec.c -------------------------- Patching file libavcodec/ccaption_dec.c using Plan A... Hunk #1 succeeded at 892. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A13-avformat-matroskaenc-return-error-if-aac-extradata-c.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 44f891701500c285fc28f39bcb94a264f9a80aa9 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 20 Mar 2024 09:15:21 +0100 |Subject: [PATCH 13/22] avformat/matroskaenc: return error if aac extradata | changes extradata changing would result in an invalid stream. also, as the | code was written, rewriting extradata was corrupting the track header | resulting in an invalid file. | |--- | libavformat/matroskaenc.c | 10 ++++++++++ | 1 file changed, 10 insertions(+) | |diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c |index 8142d9125e..b27fa2c005 100644 |--- a/libavformat/matroskaenc.c |+++ b/libavformat/matroskaenc.c -------------------------- Patching file libavformat/matroskaenc.c using Plan A... Hunk #1 succeeded at 2938. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A14-Expose-the-unmodified-Dolby-Vision-RPU-T35-buffers.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 8deff21ece692e4be4e448553b576487a059a191 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Fri, 22 Aug 2025 16:51:18 +0200 |Subject: [PATCH 14/22] Expose the unmodified Dolby Vision RPU T35 buffers | |--- | libavcodec/av1dec.c | 14 ++++++++++++++ | libavcodec/libdav1d.c | 14 ++++++++++++++ | libavutil/frame.h | 6 ++++++ | libavutil/side_data.c | 1 + | 4 files changed, 35 insertions(+) | |diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c |index be595484d1..0f37f70288 100644 |--- a/libavcodec/av1dec.c |+++ b/libavcodec/av1dec.c -------------------------- Patching file libavcodec/av1dec.c using Plan A... Hunk #1 succeeded at 1015 (offset 1 line). Hunk #2 succeeded at 1028 (offset 1 line). Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c |index a1158a23c4..46f12ade7c 100644 |--- a/libavcodec/libdav1d.c |+++ b/libavcodec/libdav1d.c -------------------------- Patching file libavcodec/libdav1d.c using Plan A... Hunk #1 succeeded at 440. Hunk #2 succeeded at 453. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavutil/frame.h b/libavutil/frame.h |index d440cfba2e..19f2946fdf 100644 |--- a/libavutil/frame.h |+++ b/libavutil/frame.h -------------------------- Patching file libavutil/frame.h using Plan A... Hunk #1 succeeded at 200. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavutil/side_data.c b/libavutil/side_data.c |index fa2a2c2a13..c6be82e23c 100644 |--- a/libavutil/side_data.c |+++ b/libavutil/side_data.c -------------------------- Patching file libavutil/side_data.c using Plan A... Hunk #1 succeeded at 42. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A15-lavc-pgssubdec-Add-graphic-plane-and-cropping.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 8101bc348c327f0a546a35e15914c9521ce0125f Mon Sep 17 00:00:00 2001 |From: cubicibo <55701024+cubicibo@users.noreply.github.com> |Date: Thu, 22 Aug 2024 22:57:54 +0200 |Subject: [PATCH 15/22] lavc/pgssubdec: Add graphic plane and cropping. | |--- | libavcodec/pgssubdec.c | 554 ++++++++++++++++++++++++++--------------- | 1 file changed, 353 insertions(+), 201 deletions(-) | |diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c |index 20583c9afa..b43ce23df9 100644 |--- a/libavcodec/pgssubdec.c |+++ b/libavcodec/pgssubdec.c -------------------------- Patching file libavcodec/pgssubdec.c using Plan A... Hunk #1 succeeded at 35. Hunk #2 succeeded at 50. Hunk #3 succeeded at 131. Hunk #4 succeeded at 172. Hunk #5 succeeded at 188. Hunk #6 succeeded at 241. Hunk #7 succeeded at 267. Hunk #8 succeeded at 290. Hunk #9 succeeded at 362. Hunk #10 succeeded at 435. Hunk #11 succeeded at 454. Hunk #12 succeeded at 581. Hunk #13 succeeded at 616. Hunk #14 succeeded at 800. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A16-libavcodec-qsvenc.c-update-has_b_frames-value-after-.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 82a75013402293f86fca38a8ffc1b3c7fe6d8b0e Mon Sep 17 00:00:00 2001 |From: galinart |Date: Thu, 17 Oct 2024 16:17:36 +0100 |Subject: [PATCH 16/22] libavcodec/qsvenc.c: update has_b_frames value after | initialization of encoder | |--- | libavcodec/qsvenc.c | 7 +++++++ | 1 file changed, 7 insertions(+) | |diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c |index 318a99e2a1..039a108aae 100644 |--- a/libavcodec/qsvenc.c |+++ b/libavcodec/qsvenc.c -------------------------- Patching file libavcodec/qsvenc.c using Plan A... Hunk #1 succeeded at 1842. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A17-qsv-enable-av1-scc.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 33bf92742274132429d43b8a91e7a3124ca83a0d Mon Sep 17 00:00:00 2001 |From: galinart |Date: Tue, 12 Nov 2024 15:50:06 +0000 |Subject: [PATCH 17/22] qsv: enable av1 scc | |--- | libavcodec/qsvenc.c | 42 +++++++++++++++++++++++++++++++++++++++++ | libavcodec/qsvenc.h | 8 +++++++- | libavcodec/qsvenc_av1.c | 4 ++++ | 3 files changed, 53 insertions(+), 1 deletion(-) | |diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c |index 039a108aae..95b0950fb8 100644 |--- a/libavcodec/qsvenc.c |+++ b/libavcodec/qsvenc.c -------------------------- Patching file libavcodec/qsvenc.c using Plan A... Hunk #1 succeeded at 494. Hunk #2 succeeded at 569. Hunk #3 succeeded at 1292. Hunk #4 succeeded at 1421. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h |index 4bc77f2f7c..2e0a19b203 100644 |--- a/libavcodec/qsvenc.h |+++ b/libavcodec/qsvenc.h -------------------------- Patching file libavcodec/qsvenc.h using Plan A... Hunk #1 succeeded at 38. Hunk #2 succeeded at 189. Hunk #3 succeeded at 323. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavcodec/qsvenc_av1.c b/libavcodec/qsvenc_av1.c |index c7aa6e58d5..5edb5f3112 100644 |--- a/libavcodec/qsvenc_av1.c |+++ b/libavcodec/qsvenc_av1.c -------------------------- Patching file libavcodec/qsvenc_av1.c using Plan A... Hunk #1 succeeded at 189. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A18-fixed-BT2020-BT709-conversion-via-VPP.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 96932782c964208a2554385258490edd1550c06d Mon Sep 17 00:00:00 2001 |From: galinart |Date: Fri, 21 Feb 2025 09:41:34 +0000 |Subject: [PATCH 18/22] fixed BT2020 -> BT709 conversion via VPP | |--- | libavfilter/vf_vpp_qsv.c | 6 +++--- | 1 file changed, 3 insertions(+), 3 deletions(-) | |diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c |index 0a33c377c8..f4c796b7e7 100644 |--- a/libavfilter/vf_vpp_qsv.c |+++ b/libavfilter/vf_vpp_qsv.c -------------------------- Patching file libavfilter/vf_vpp_qsv.c using Plan A... Hunk #1 succeeded at 494. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A19-videotoolbox-disable-H.264-10-bit-on-Intel-macOS-it-.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From b2fea2782b6aef1120e6038c67dbd75c82ad8ee5 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 20 Mar 2024 09:17:17 +0100 |Subject: [PATCH 19/22] videotoolbox: disable H.264 10-bit on Intel macOS, it's | not decoded properly. Disable H.264 level 6.1 and 6.2 too, seems to have | issue in some specific cases. | |--- | libavcodec/videotoolbox.c | 17 +++++++++++++++++ | 1 file changed, 17 insertions(+) | |diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c |index ccba249140..0f8eea5baf 100644 |--- a/libavcodec/videotoolbox.c |+++ b/libavcodec/videotoolbox.c -------------------------- Patching file libavcodec/videotoolbox.c using Plan A... Hunk #1 succeeded at 956. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A20-videotoolbox-speedup-decoding.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 292b17a3df281d5a79558f372c06dd8977897719 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Sat, 15 Feb 2025 09:47:36 +0100 |Subject: [PATCH 20/22] videotoolbox: speedup decoding | |HandBrake doesn't need OpenGL compatibility or CVBuffer attachments, disable both for a minor performance improvement. |Align buffers to 16 to avoid additional automatic pixel conversions in VTCompressionSession. |--- | libavcodec/videotoolbox.c | 5 +---- | libavutil/hwcontext_videotoolbox.c | 12 +++++++++++- | 2 files changed, 12 insertions(+), 5 deletions(-) | |diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c |index 0f8eea5baf..9f00ee710d 100644 |--- a/libavcodec/videotoolbox.c |+++ b/libavcodec/videotoolbox.c -------------------------- Patching file libavcodec/videotoolbox.c using Plan A... Hunk #1 succeeded at 132. Hunk #2 succeeded at 817. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c |index 102fa485e5..b7297a7211 100644 |--- a/libavutil/hwcontext_videotoolbox.c |+++ b/libavutil/hwcontext_videotoolbox.c -------------------------- Patching file libavutil/hwcontext_videotoolbox.c using Plan A... Hunk #1 succeeded at 185. Hunk #2 succeeded at 219. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A21-Revert-avcodec-amfenc-GPU-driver-version-check.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From e34161a4c03ea448e033c9f2e50ba8131e182dca Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Sat, 19 Oct 2024 09:50:44 +0200 |Subject: [PATCH 21/22] Revert "avcodec/amfenc: GPU driver version check" | |This reverts commit eda3fc60534c4a30f49c930611d4130427d08ff1. | |There is hardware with HEVC 10-bit encoders that has no updated drivers yet. |--- | libavcodec/amfenc.c | 4 ---- | 1 file changed, 4 deletions(-) | |diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c |index b16b642e4c..4244e5b35b 100644 |--- a/libavcodec/amfenc.c |+++ b/libavcodec/amfenc.c -------------------------- Patching file libavcodec/amfenc.c using Plan A... Hunk #1 succeeded at 173. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A22-fix-d3d11-static-pool-size-error.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/libavutil/hwcontext_d3d11va.c b/libavutil/hwcontext_d3d11va.c |index 9831f530c1..dac659ea9a 100644 |--- a/libavutil/hwcontext_d3d11va.c |+++ b/libavutil/hwcontext_d3d11va.c -------------------------- Patching file libavutil/hwcontext_d3d11va.c using Plan A... Hunk #1 succeeded at 85. Hunk #2 succeeded at 263. Hunk #3 succeeded at 348. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A23-movenc-set-the-chapters-track-language-to-the-same-a.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 16f6b39dd663c8e1d1e2afa3ccf0a3f1147369a7 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 11 Feb 2026 17:36:50 +0100 |Subject: [PATCH] movenc: set the chapters track language to the same as the | first track | |Apple requires the language of the chapters track and the reference track to match, |usually the video track is the first and is set to und, and that worked for MP4 files, |but QTFF uses a different language list and the chapter track language was never converted. | |Now it's set to the first track language to improve compatibility in all cases. |--- | libavformat/movenc.c | 1 + | 1 file changed, 1 insertion(+) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index e60483ebb4..5e80fa57d6 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 7584 (offset 107 lines). Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A24-movenc-use-version-2-audio-descriptor-for-2-channels.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 1543d3e9cba1a30ce8bf8c3180c268520bed5841 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Thu, 12 Feb 2026 18:17:19 +0100 |Subject: [PATCH] movenc: use version 2 audio descriptor for > 2 channels and | for pcm | |As described in QuickTime File Format documentation |--- | libavformat/movenc.c | 15 +++++++++++++-- | 1 file changed, 13 insertions(+), 2 deletions(-) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index 5e80fa57d6..d956bd5b56 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 990. Hunk #2 succeeded at 1359. Hmm... Ignoring the trailing garbage. done /tmp/work/multimedia/handbrake/work/.tools/bin/patch -t -N -p1 -d ./contrib/ffmpeg/ffmpeg-8.0.2/ < ../contrib/ffmpeg/A26-avformat-movenc-fix-mov_create_dvd_sub_decoder_speci.patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From eff67b15a75dbb9a0e8ca9a710b5450c84a35197 Mon Sep 17 00:00:00 2001 |From: Damiano Galassi |Date: Wed, 29 Apr 2026 10:26:48 +0200 |Subject: [PATCH] avformat/movenc: fix mov_create_dvd_sub_decoder_specific_info | |It has been broken since 3064487. |--- | libavformat/movenc.c | 2 +- | 1 file changed, 1 insertion(+), 1 deletion(-) | |diff --git a/libavformat/movenc.c b/libavformat/movenc.c |index 8157b5e277..5c43b7d75f 100644 |--- a/libavformat/movenc.c |+++ b/libavformat/movenc.c -------------------------- Patching file libavformat/movenc.c using Plan A... Hunk #1 succeeded at 7833 (offset 2 lines). Hmm... Ignoring the trailing garbage. done touch contrib/ffmpeg/.stamp.ffmpeg.patch -- Performing Test CC_HAS_NO_ARRAY_BOUNDS - Success -- Performing Test CC_HAS_FAST_MATH -- Performing Test CC_HAS_FAST_MATH - Success -- Performing Test CC_HAS_STACK_REALIGN ERROR: download failure; ; continuing. ERROR: download failure; ; stop. downloading https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/libiconv-1.18.tar.gz to ../download/libiconv-1.18.tar.gz downloading https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.18.tar.gz to ../download/libiconv-1.18.tar.gz gmake: *** [../contrib/libiconv/module.rules:2: ../download/libiconv-1.18.tar.gz] Error 1 gmake: *** Waiting for unfinished jobs.... -- Performing Test CC_HAS_STACK_REALIGN - Success -- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG -- Performing Test CC_HAS_FNO_EXCEPTIONS_FLAG - Success CMake Warning (author) at /opt/local/share/cmake-4.4/Modules/FindPackageHandleStandardArgs.cmake:493 (message): The package name passed to find_package_handle_standard_args() (nasm) does not match the name of the calling package (Nasm). This can lead to problems in calling code that expects find_package() result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/FindNasm.cmake:23 (find_package_handle_standard_args) CMakeLists.txt:637 (find_package) This warning is for project developers. Use -Wno-author to suppress it. -- Found nasm: /opt/local/bin/nasm (found version "3.02") -- Found Nasm 3.02 to build assembly primitives -- HG LIVE REPO STATUS CHECK DONE -- X265 RELEASE VERSION unknown -- The ASM_NASM compiler identification is NASM -- Found assembler: /opt/local/bin/nasm -- Looking for strtok_r -- Looking for strtok_r - found -- Configuring done (6.6s) -- Generating done (0.1s) -- Build files have been written to: /tmp/work/multimedia/handbrake/work/HandBrake-1.11.2/build/contrib/x265/x265-snapshot-20260216-13309/8bit touch contrib/x265/.stamp.x265_8.configure *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/multimedia/handbrake *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-trunk-x86_64/multimedia/handbrake