På mandag 9. november 2026 kl. 05:41, skrev Brad Smith:
> Here are updates to libbluray 1.5.0, libudfread 1.2.0 and libaacs 0.12.0.
>
> Tested with mpv, mplayer and VLC.
>
>
Current/amd64.
Been using this for near a week.
Built reverse depends mpvqt, smplayer, and moonlight-qt and the kde
applications I tested did not have regressions I could find.
I built/used both mpv v0.42.0 and the v0.41.0 currently in ports.
Don't have bluray player drive to test, but no problems
building/packaging and no obvious general regressions.
Hope this helps. May you have a good one.
--
yaydn
> libbluray
>
> 2026-07-14: Version 1.5.0
> - Expose dynamic range, color space, cr_flag and HDR10+ flags in stream info
> - Expose chapter names in title info
> - list_titles: report the number of Dolby Vision tracks
> - BD-J: Implement HAVI text and graphic look & feel components
> - BD-J: Implement navigable and actionable HAVI components
> - BD-J: Fix disabled components being hidden and vertical text alignment
> - BD-J: Lazy-load .bdjo title files for faster startup
> - BD-J: Add S3D and UHD stream types
> - Build: remove the java9 Meson option
>
> 2026-01-26: Version 1.4.1
> - Fix linking on Windows with Freetype enabled
> - Improve compilation with MSVC
> - Cleaning and improvements in Meson build files
> - Fix build with Java 23 for BD-J
> - Add SSIF files support to bd_open_file_dec()
> - Add player setting for UO restriction level
> - Add all UOs to BD_EVENT_UO_MASK_CHANGED
> - Improve resilence against invalid input
> - Fix memory leak in UHD playlists
> - BD-J: Implement TVTimer, TVTimerSpec
> - BD-J: Improve Java 1.4 compatibility
> - BD-J: Fix MediaPresentedEvent event emission on start
> - BD-J: Fix filesystem hooking in Java 25
> - BD-J: Fix locators from org.bluray.ti.[PlayItemImpl,TitleComponentImpl]
> - BD-J: Multiple compability and performance improvements
>
> 2025-08-18: Version 1.4.0
> - Switch build system to Meson.
> - Require libudfread 1.2.0.
> - Use visibility attributes for exported symbols.
> - Fix issues detecting dlfcn
>
> libudfread
>
> 2025-08-18: Version 1.2.0
> - Add Meson build system support.
> - Use visibility attributes for exported symbols.
> - Fix leak
>
> libaacs
>
> 2026-07-14: Version 0.12.0
> - Add aacs2_get_bdj_root_cert_hash().
> - Add a tool to dump the content of a CCI file.
> - Allow overriding the configuration directory with the AACS_HOME environment
> variable.
> - aacs_info: add support for unmounted discs.
> - Honor the configfile_path parameter when reading MK and VID.
> - Error out on discs using an unsupported AACS version
> (AACS_ERROR_UNSUPPORTED_DISC).
> - Improve error handling and resilience (key derivation, MMC and cache
> errors).
> - Fix several memory leaks.
> - Fix incorrect memory allocation for encrypted unit keys.
> - Fix reading drive certificate with some drives.
> - macOS: fix incorrect CDB length parameter.
> - Prefer pkg-config when detecting libgcrypt and gpg-error.
> - Fix Windows linking and out-of-source builds.
>
>
> Index: multimedia/libbluray/Makefile
> ===================================================================
> RCS file: /cvs/ports/multimedia/libbluray/Makefile,v
> retrieving revision 1.27
> diff -u -p -u -p -r1.27 Makefile
> --- multimedia/libbluray/Makefile 1 Nov 2025 11:16:42 -0000 1.27
> +++ multimedia/libbluray/Makefile 9 Nov 2026 04:27:56 -0000
> @@ -1,33 +1,28 @@
> COMMENT = library supporting Blu-ray playback
>
> -V = 1.3.4
> +V = 1.5.0
> DISTNAME = libbluray-${V}
> CATEGORIES = multimedia
> -REVISION = 1
>
> HOMEPAGE = https://www.videolan.org/developers/libbluray.html
>
> -SITES =
> https://download.videolan.org/pub/videolan/libbluray/${V}/
> -EXTRACT_SUFX = .tar.bz2
> +SITES =
> https://download.videolan.org/pub/videolan/libbluray/${V}/
> +EXTRACT_SUFX = .tar.xz
>
> # LGPL v2.1
> PERMIT_PACKAGE = Yes
>
> -WANTLIB += c expat fontconfig freetype iconv m pthread
> -WANTLIB += udfread xml2 z
> +WANTLIB += c fontconfig freetype pthread udfread xml2
>
> -SHARED_LIBS += bluray 3.2 # 11.0
> +SHARED_LIBS += bluray 3.3
>
> -LIB_DEPENDS = converters/libiconv \
> - multimedia/libudfread \
> +MODULES = devel/meson
> +
> +LIB_DEPENDS = multimedia/libudfread>=1.2.0 \
> textproc/libxml
> -BUILD_DEPENDS = devel/bison
>
> -SEPARATE_BUILD = Yes
> -CONFIGURE_STYLE = gnu
> -YACC = ${LOCALBASE}/bin/bison -y
> -CONFIGURE_ARGS += --disable-bdjava-jar \
> - --disable-doxygen-doc \
> - --disable-optimizations
> +CONFIGURE_ARGS += -Dbdj_jar=disabled
> +
> +NO_TEST = Yes
>
> .include <bsd.port.mk>
> Index: multimedia/libbluray/distinfo
> ===================================================================
> RCS file: /cvs/ports/multimedia/libbluray/distinfo,v
> retrieving revision 1.12
> diff -u -p -u -p -r1.12 distinfo
> --- multimedia/libbluray/distinfo 4 Dec 2022 19:52:53 -0000 1.12
> +++ multimedia/libbluray/distinfo 9 Nov 2026 04:27:56 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libbluray-1.3.4.tar.bz2) =
> R4/9aKD13ejvbKmJt/A1taCiLFmRQuXNP/ewO76+Xys=
> -SIZE (libbluray-1.3.4.tar.bz2) = 756323
> +SHA256 (libbluray-1.5.0.tar.xz) =
> 9nZAjpGl0yGr+LjU39rjYgXCl9q1xUw+xRljkCX0dKI=
> +SIZE (libbluray-1.5.0.tar.xz) = 473072
> Index: multimedia/libbluray/pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/multimedia/libbluray/pkg/PLIST,v
> retrieving revision 1.6
> diff -u -p -u -p -r1.6 PLIST
> --- multimedia/libbluray/pkg/PLIST 11 Mar 2022 19:39:20 -0000 1.6
> +++ multimedia/libbluray/pkg/PLIST 9 Nov 2026 04:27:56 -0000
> @@ -12,6 +12,5 @@ include/libbluray/meta_data.h
> include/libbluray/overlay.h
> include/libbluray/player_settings.h
> @static-lib lib/libbluray.a
> -lib/libbluray.la
> @lib lib/libbluray.so.${LIBbluray_VERSION}
> lib/pkgconfig/libbluray.pc
> Index: multimedia/libudfread/Makefile
> ===================================================================
> RCS file: /cvs/ports/multimedia/libudfread/Makefile,v
> retrieving revision 1.3
> diff -u -p -u -p -r1.3 Makefile
> --- multimedia/libudfread/Makefile 27 Sep 2023 10:10:21 -0000 1.3
> +++ multimedia/libudfread/Makefile 9 Nov 2026 04:27:56 -0000
> @@ -1,18 +1,18 @@
> COMMENT= library for reading UDF from raw devices and image files
>
> -DISTNAME= libudfread-1.1.2
> +DISTNAME= libudfread-1.2.0
> CATEGORIES= multimedia devel
> SITES= https://download.videolan.org/videolan/libudfread/
> -EXTRACT_SUFX= .tar.bz2
> +EXTRACT_SUFX= .tar.xz
>
> -SHARED_LIBS= udfread 0.0
> +SHARED_LIBS= udfread 0.1
>
> HOMEPAGE= https://code.videolan.org/videolan/libudfread/
>
> # LGPLv2.1
> PERMIT_PACKAGE= Yes
>
> -CONFIGURE_STYLE=gnu
> +MODULES= devel/meson
>
> NO_TEST= Yes
>
> Index: multimedia/libudfread/distinfo
> ===================================================================
> RCS file: /cvs/ports/multimedia/libudfread/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -u -p -r1.1.1.1 distinfo
> --- multimedia/libudfread/distinfo 18 Oct 2021 04:12:14 -0000 1.1.1.1
> +++ multimedia/libudfread/distinfo 9 Nov 2026 04:27:56 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libudfread-1.1.2.tar.bz2) =
> 1ZRvGbJyiM4JEesR/lg8E2dnQhIg7OO6/JYkXv0giRU=
> -SIZE (libudfread-1.1.2.tar.bz2) = 268559
> +SHA256 (libudfread-1.2.0.tar.xz) =
> u0d8vUz7/HeH2dBbce5ecEMPXP6/EpdJf36DVHlYBQ8=
> +SIZE (libudfread-1.2.0.tar.xz) = 28732
> Index: multimedia/libudfread/pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/multimedia/libudfread/pkg/PLIST,v
> retrieving revision 1.2
> diff -u -p -u -p -r1.2 PLIST
> --- multimedia/libudfread/pkg/PLIST 11 Mar 2022 19:39:22 -0000 1.2
> +++ multimedia/libudfread/pkg/PLIST 9 Nov 2026 04:27:56 -0000
> @@ -3,6 +3,5 @@ include/udfread/blockinput.h
> include/udfread/udfread-version.h
> include/udfread/udfread.h
> @static-lib lib/libudfread.a
> -lib/libudfread.la
> @lib lib/libudfread.so.${LIBudfread_VERSION}
> lib/pkgconfig/libudfread.pc
> Index: multimedia/libaacs/Makefile
> ===================================================================
> RCS file: /cvs/ports/multimedia/libaacs/Makefile,v
> retrieving revision 1.21
> diff -u -p -u -p -r1.21 Makefile
> --- multimedia/libaacs/Makefile 21 Jul 2025 15:55:57 -0000 1.21
> +++ multimedia/libaacs/Makefile 9 Nov 2026 04:27:56 -0000
> @@ -1,29 +1,32 @@
> COMMENT = AACS support library for Blu-ray playback
>
> -V = 0.11.1
> +V = 0.12.0
> DISTNAME = libaacs-${V}
> -REVISION = 0
>
> CATEGORIES = multimedia
>
> HOMEPAGE = https://www.videolan.org/developers/libaacs.html
> -SITES =
> https://download.videolan.org/pub/videolan/libaacs/${V}/ \
> - ftp://ftp.videolan.org/pub/videolan/libaacs/${V}/
> -EXTRACT_SUFX = .tar.bz2
> +SITES =
> https://download.videolan.org/pub/videolan/libaacs/${V}/
> +EXTRACT_SUFX = .tar.xz
>
> # LGPL v2.1
> PERMIT_PACKAGE = Yes
>
> -WANTLIB = c gcrypt gpg-error iconv intl pthread
> +WANTLIB = c gcrypt gpg-error iconv intl udfread
>
> -SHARED_LIBS += aacs 3.1 # 5.1
> +SHARED_LIBS += aacs 3.2 # 5.1
>
> -LIB_DEPENDS = security/libgcrypt
> +LIB_DEPENDS = multimedia/libudfread \
> + security/libgcrypt
> BUILD_DEPENDS = devel/bison
>
> +AUTOCONF_VERSION = 2.71
> +AUTOMAKE_VERSION = 1.16
> +
> SEPARATE_BUILD = Yes
> -CONFIGURE_STYLE = gnu
> -YACC = ${LOCALBASE}/bin/bison -y
> +CONFIGURE_STYLE = autoreconf
> CONFIGURE_ARGS = --disable-optimizations
> +
> +YACC = ${LOCALBASE}/bin/bison -y
>
> .include <bsd.port.mk>
> Index: multimedia/libaacs/distinfo
> ===================================================================
> RCS file: /cvs/ports/multimedia/libaacs/distinfo,v
> retrieving revision 1.6
> diff -u -p -u -p -r1.6 distinfo
> --- multimedia/libaacs/distinfo 28 Feb 2022 10:53:49 -0000 1.6
> +++ multimedia/libaacs/distinfo 9 Nov 2026 04:27:56 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (libaacs-0.11.1.tar.bz2) =
> qIqg6+TJinf3rv/ZKrPvZKxUjGuCLoJIqLkmclvqCjk=
> -SIZE (libaacs-0.11.1.tar.bz2) = 325669
> +SHA256 (libaacs-0.12.0.tar.xz) = ln5cpAisePDQq+XAV1OwTK/MToaO/R1eLLXcYOHE9OA=
> +SIZE (libaacs-0.12.0.tar.xz) = 332836
> Index: multimedia/libaacs/patches/patch-Makefile_am
> ===================================================================
> RCS file: multimedia/libaacs/patches/patch-Makefile_am
> diff -N multimedia/libaacs/patches/patch-Makefile_am
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ multimedia/libaacs/patches/patch-Makefile_am 9 Nov 2026 04:27:56
> -0000
> @@ -0,0 +1,37 @@
> +- Fix building aacs_info with libudfread outside default include paths
> +- Add OpenBSD MMC device backend using SCIOCCOMMAND
> +
> +Index: Makefile.am
> +--- Makefile.am.orig
> ++++ Makefile.am
> +@@ -60,13 +60,21 @@ libaacs_la_SOURCES+= \
> + src/file/file_win32.c \
> + src/file/mmc_device_win32.c
> + else
> ++if HAVE_OPENBSD
> + libaacs_la_SOURCES+= \
> ++ src/file/dirs_xdg.c \
> ++ src/file/file_posix.c \
> ++ src/file/mmc_device_openbsd.c \
> ++ src/file/path.c
> ++else
> ++libaacs_la_SOURCES+= \
> + src/file/dirs_xdg.c \
> + src/file/file_posix.c \
> + src/file/mmc_device_linux.c \
> + src/file/path.c
> + endif
> + endif
> ++endif
> +
> + pkginclude_HEADERS = \
> + src/libaacs/aacs.h \
> +@@ -127,7 +135,7 @@ cci_dump_SOURCES = \
> + cci_dump_CFLAGS = -std=c99
> +
> + aacs_info_SOURCES = src/examples/aacs_info.c
> +-aacs_info_CFLAGS = -std=c99
> ++aacs_info_CFLAGS = -std=c99 $(LIBUDFREAD_CFLAGS)
> + aacs_info_LDADD = libaacs.la $(LIBUDFREAD_LIBS)
> + if HAVE_WIN32
> + else
> Index: multimedia/libaacs/patches/patch-configure_ac
> ===================================================================
> RCS file: multimedia/libaacs/patches/patch-configure_ac
> diff -N multimedia/libaacs/patches/patch-configure_ac
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ multimedia/libaacs/patches/patch-configure_ac 9 Nov 2026 04:27:56
> -0000
> @@ -0,0 +1,24 @@
> +- Add OpenBSD MMC device backend using SCIOCCOMMAND
> +
> +Index: configure.ac
> +--- configure.ac.orig
> ++++ configure.ac
> +@@ -54,6 +54,10 @@ case "${host_os}" in
> + LDFLAGS="${LDFLAGS} -lobjc
> -Wl,-framework,IOKit,-framework,Cocoa,-framework,DiskArbitration"
> + SET_FEATURES="${SET_FEATURES} -D_DARWIN_C_SOURCE"
> + ;;
> ++ *openbsd*)
> ++ SYS=openbsd
> ++ SET_FEATURES="${SET_FEATURES} -D_BSD_SOURCE"
> ++ ;;
> + *)
> + SYS="${host_os}"
> + ;;
> +@@ -61,6 +65,7 @@ esac
> +
> + AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32")
> + AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin")
> ++AM_CONDITIONAL(HAVE_OPENBSD, test "${SYS}" = "openbsd")
> +
> + dnl configure options
> + AC_ARG_ENABLE([werror],
> Index: multimedia/libaacs/patches/patch-src_file_mmc_device_openbsd_c
> ===================================================================
> RCS file: multimedia/libaacs/patches/patch-src_file_mmc_device_openbsd_c
> diff -N multimedia/libaacs/patches/patch-src_file_mmc_device_openbsd_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ multimedia/libaacs/patches/patch-src_file_mmc_device_openbsd_c 9 Nov
> 2026 04:27:56 -0000
> @@ -0,0 +1,184 @@
> +- Add OpenBSD MMC device backend using SCIOCCOMMAND
> +
> +Index: src/file/mmc_device_openbsd.c
> +--- src/file/mmc_device_openbsd.c.orig
> ++++ src/file/mmc_device_openbsd.c
> +@@ -0,0 +1,178 @@
> ++/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
> ++/*
> ++ * This file is part of libaacs
> ++ * Copyright (C) 2026 VideoLAN
> ++ *
> ++ * This library is free software; you can redistribute it and/or
> ++ * modify it under the terms of the GNU Lesser General Public
> ++ * License as published by the Free Software Foundation; either
> ++ * version 2.1 of the License, or (at your option) any later version.
> ++ */
> ++
> ++#if HAVE_CONFIG_H
> ++#include "config.h"
> ++#endif
> ++
> ++#include "mmc_device.h"
> ++#include "path.h"
> ++
> ++#include "util/logging.h"
> ++#include "util/macro.h"
> ++#include "util/strutl.h"
> ++
> ++#include <sys/types.h>
> ++#include <sys/param.h>
> ++#include <sys/mount.h>
> ++#include <sys/stat.h>
> ++#include <sys/scsiio.h>
> ++#include <sys/ioctl.h>
> ++
> ++#include <errno.h>
> ++#include <fcntl.h>
> ++#include <stdint.h>
> ++#include <stdio.h>
> ++#include <stdlib.h>
> ++#include <string.h>
> ++#include <unistd.h>
> ++
> ++#define MMC_CDB_LEN 12
> ++#define MMC_TIMEOUT_MS 5000
> ++
> ++struct mmcdev {
> ++ int fd;
> ++};
> ++
> ++static int _open_device(const char *path)
> ++{
> ++ struct stat st;
> ++ char raw_path[PATH_MAX];
> ++ int fd, path_len;
> ++
> ++ fd = open(path, O_RDONLY | O_NONBLOCK);
> ++ if (fd >= 0) {
> ++ if (fstat(fd, &st) == 0) {
> ++ if (S_ISCHR(st.st_mode)) {
> ++ return fd;
> ++ }
> ++ }
> ++ if (fstat(fd, &st) == 0 && S_ISBLK(st.st_mode) &&
> ++ strncmp(path, "/dev/", 5) == 0 && strncmp(path, "/dev/r", 6) !=
> 0) {
> ++ path_len = snprintf(raw_path, sizeof(raw_path), "/dev/r%s",
> path + 5);
> ++ if (path_len >= 0 && (size_t)path_len < sizeof(raw_path)) {
> ++ close(fd);
> ++ fd = open(raw_path, O_RDONLY | O_NONBLOCK);
> ++ if (fd >= 0 && fstat(fd, &st) == 0 && S_ISCHR(st.st_mode)) {
> ++ return fd;
> ++ }
> ++ }
> ++ }
> ++ if (fd >= 0) {
> ++ close(fd);
> ++ }
> ++ }
> ++ return -1;
> ++}
> ++
> ++MMCDEV *device_open(const char *path)
> ++{
> ++ struct statfs *mounts;
> ++ char *resolved_path;
> ++ int fd = -1;
> ++ int i, nmounts;
> ++
> ++ resolved_path = aacs_resolve_path(path);
> ++ if (!resolved_path) {
> ++ BD_DEBUG(DBG_MMC | DBG_CRIT, "Failed resolving path %s\n", path ?
> path : "(null)");
> ++ return NULL;
> ++ }
> ++
> ++ /* The caller may pass either the raw/block device or its mount point.
> */
> ++ fd = _open_device(resolved_path);
> ++ if (fd < 0) {
> ++ nmounts = getmntinfo(&mounts, MNT_NOWAIT);
> ++ for (i = 0; i < nmounts; i++) {
> ++ if (strcmp(mounts[i].f_mntonname, resolved_path) == 0) {
> ++ fd = _open_device(mounts[i].f_mntfromname);
> ++ if (fd >= 0) {
> ++ break;
> ++ }
> ++ BD_DEBUG(DBG_MMC | DBG_CRIT,
> ++ "Failed opening MMC device %s mounted at %s\n",
> ++ mounts[i].f_mntfromname, resolved_path);
> ++ }
> ++ }
> ++ }
> ++
> ++ X_FREE(resolved_path);
> ++
> ++ if (fd < 0) {
> ++ BD_DEBUG(DBG_MMC | DBG_CRIT, "No OpenBSD MMC device found for
> %s\n", path);
> ++ return NULL;
> ++ }
> ++
> ++ MMCDEV *dev = calloc(1, sizeof(*dev));
> ++ if (!dev) {
> ++ close(fd);
> ++ return NULL;
> ++ }
> ++
> ++ dev->fd = fd;
> ++ return dev;
> ++}
> ++
> ++void device_close(MMCDEV **pp)
> ++{
> ++ if (pp && *pp) {
> ++ if ((*pp)->fd >= 0) {
> ++ close((*pp)->fd);
> ++ }
> ++ X_FREE(*pp);
> ++ }
> ++}
> ++
> ++int device_send_cmd(MMCDEV *dev, const uint8_t *cmd, uint8_t *buf,
> ++ size_t tx, size_t rx)
> ++{
> ++ scsireq_t req;
> ++ size_t len;
> ++ char str[512];
> ++
> ++ if (!dev || !cmd || (tx && rx) || ((tx || rx) && !buf)) {
> ++ return 0;
> ++ }
> ++
> ++ len = tx ? tx : rx;
> ++ memset(&req, 0, sizeof(req));
> ++ memcpy(req.cmd, cmd, MMC_CDB_LEN);
> ++ req.cmdlen = MMC_CDB_LEN;
> ++ req.timeout = MMC_TIMEOUT_MS;
> ++ req.senselen = SENSEBUFLEN;
> ++ if (len) {
> ++ req.databuf = (caddr_t)buf;
> ++ req.datalen = (u_long)len;
> ++ req.flags = tx ? SCCMD_WRITE : SCCMD_READ;
> ++ }
> ++
> ++ BD_DEBUG(DBG_MMC, "Send OpenBSD MMC cmd %s:\n", str_print_hex(str, cmd,
> MMC_CDB_LEN));
> ++ if (tx) {
> ++ BD_DEBUG(DBG_MMC, " Buffer: %s ->\n", str_print_hex(str, buf, tx >
> 255 ? 255 : tx));
> ++ } else if (rx) {
> ++ BD_DEBUG(DBG_MMC, " Buffer: %s <-\n", str_print_hex(str, buf, rx >
> 255 ? 255 : rx));
> ++ }
> ++
> ++ if (ioctl(dev->fd, SCIOCCOMMAND, &req) < 0) {
> ++ BD_DEBUG(DBG_MMC, " SCIOCCOMMAND failed: %s\n", strerror(errno));
> ++ return 0;
> ++ }
> ++
> ++ if (req.retsts != SCCMD_OK) {
> ++ BD_DEBUG(DBG_MMC, " SCSI command failed (status %u, return %u)\n",
> ++ req.status, req.retsts);
> ++ return 0;
> ++ }
> ++
> ++ BD_DEBUG(DBG_MMC, " Send succeeded! transferred %lu bytes\n",
> ++ req.datalen_used);
> ++ return 1;
> ++}
> ++
>
>