[packages/mpv] up to 0.42.0

atler atler at pld-linux.org
Thu Nov 5 13:54:45 CET 2026


commit 0c5c0525adc4ddcb99a293b2ee63abf3a1d3c0c6
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Nov 5 13:54:01 2026 +0100

    up to 0.42.0

 mpv.spec              |  36 ++++++-------
 vapoursynth-r74.patch | 140 --------------------------------------------------
 yt-dlp-delay.patch    |  91 --------------------------------
 3 files changed, 18 insertions(+), 249 deletions(-)
---
diff --git a/mpv.spec b/mpv.spec
index e7da4c5..bce1dc4 100644
--- a/mpv.spec
+++ b/mpv.spec
@@ -24,25 +24,24 @@
 Summary:	Movie player based on MPlayer and mplayer2
 Summary(pl.UTF-8):	Odtwarzacz filmów oparty na projektach MPlayer i mplayer2
 Name:		mpv
-Version:	0.41.0
-Release:	14
+Version:	0.42.0
+Release:	1
 License:	GPL v2+
 Group:		Applications/Multimedia
 #Source0Download: http://github.com/mpv-player/mpv/releases
 Source0:	https://github.com/mpv-player/mpv/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	fa40a0fedeaf0a77127e238a39b9d4c4
+# Source0-md5:	7d97fa20fd67f8d71be640a6b1e1d434
 Source1:	%{name}.conf
 Patch0:		v4lrequest.patch
-Patch1:		yt-dlp-delay.patch
-Patch2:		vapoursynth-r74.patch
 URL:		http://mpv.io/
 BuildRequires:	EGL-devel
 BuildRequires:	Mesa-libgbm-devel >= 17.1.0
 BuildRequires:	OpenAL-devel >= 1.13
 BuildRequires:	OpenGL-devel
 BuildRequires:	SDL2-devel
-BuildRequires:	Vulkan-Loader-devel >= 1.3.238
+BuildRequires:	Vulkan-Loader-devel >= 1.4.309
 BuildRequires:	alsa-lib-devel >= 1.0.18
+BuildRequires:	curl-devel >= 7.88.0
 BuildRequires:	docutils
 BuildRequires:	ffmpeg-devel >= 6.1
 BuildRequires:	jack-audio-connection-kit-devel
@@ -52,17 +51,18 @@ BuildRequires:	libass-devel >= 0.12.2
 %ifnarch %arch_with_atomics64
 BuildRequires:	libatomic-devel
 %endif
-BuildRequires:	libbluray-devel >= 0.5.0
+BuildRequires:	libbluray-devel >= 1.0.2
 %{?with_caca:BuildRequires:	libcaca-devel >= 0.99-0.beta18.1}
 BuildRequires:	libcdio-devel >= 0.90
 BuildRequires:	libcdio-paranoia-devel
 BuildRequires:	libdisplay-info-devel >= 0.1.1
-BuildRequires:	libdrm-devel >= 2.4.105
+BuildRequires:	libdrm-devel >= 2.4.114
 %if %{with dvdnav}
-BuildRequires:	libdvdnav-devel >= 4.2.0
+BuildRequires:	libdvdnav-devel >= 6.1.0
 %endif
+BuildRequires:	libdvdread-devel >= 7.1.1
 BuildRequires:	libjpeg-devel
-BuildRequires:	libplacebo-devel >= 6.338.2
+BuildRequires:	libplacebo-devel >= 7.387.0
 %{?with_sixel:BuildRequires:	libsixel-devel >= 1.5}
 BuildRequires:	libva-devel >= 1.4.0
 BuildRequires:	libva-glx-devel >= 1.4.0
@@ -82,9 +82,9 @@ BuildRequires:	rpmbuild(macros) >= 2.042
 %{?with_rubberband:BuildRequires:	rubberband-devel >= 1.8.0}
 BuildRequires:	uchardet-devel
 %{?with_vapoursynth:BuildRequires:	vapoursynth-devel >= 56}
-BuildRequires:	wayland-devel >= 1.21.0
+BuildRequires:	wayland-devel >= 1.23.0
 BuildRequires:	wayland-egl-devel
-BuildRequires:	wayland-protocols >= 1.44
+BuildRequires:	wayland-protocols >= 1.48
 BuildRequires:	xorg-lib-libX11-devel >= 1.0.0
 BuildRequires:	xorg-lib-libXScrnSaver-devel >= 1.0.0
 BuildRequires:	xorg-lib-libXdamage-devel
@@ -102,18 +102,20 @@ Requires(post,postun):	gtk-update-icon-cache
 Requires:	OpenAL%{?_isa} >= 1.13
 Requires:	OpenGL
 Requires:	alsa-lib%{?_isa} >= 1.0.18
+Requires:	curl-libs%{?_isa} >= 7.88.0
 Requires:	hicolor-icon-theme
 %requires_eq_to	ffmpeg-libs%{?_isa} ffmpeg-devel
 Requires:	lcms2%{?_isa} >= 2.6
 Requires:	libarchive%{?_isa} >= 3.4.0
 Requires:	libass%{?_isa} >= 0.12.2
-Requires:	libbluray%{?_isa} >= 0.5.0
+Requires:	libbluray%{?_isa} >= 1.0.2
 %{?with_caca:Requires:	libcaca%{?_isa} >= 0.99-0.beta18.1}
 Requires:	libdisplay-info%{?_isa} >= 0.1.1
-Requires:	libdrm%{?_isa} >= 2.4.105
+Requires:	libdrm%{?_isa} >= 2.4.114
 %if %{with dvdnav}
-Requires:	libdvdnav%{?_isa} >= 4.2.0
+Requires:	libdvdnav%{?_isa} >= 6.1.0
 %endif
+Requires:	libdvdread%{?_isa} >= 7.1.1
 Requires:	pipewire-libs%{?_isa} >= 0.3.48
 %requires_ge_to	libplacebo%{?_isa} libplacebo-devel
 %{?with_sixel:Requires:	libsixel%{?_isa} >= 1.5}
@@ -124,7 +126,7 @@ Requires:	libvdpau%{?_isa} >= 0.2
 Requires:	pulseaudio-libs%{?_isa} >= 1.0
 %{?with_rubberband:Requires:	rubberband-libs%{?_isa} >= 1.8.0}
 %{?with_vapoursynth:Requires:	vapoursynth%{?_isa} >= 56}
-Requires:	wayland%{?_isa} >= 1.21.0
+Requires:	wayland%{?_isa} >= 1.23.0
 Requires:	xorg-lib-libX11%{?_isa} >= 1.0.0
 Requires:	xorg-lib-libXScrnSaver%{?_isa} >= 1.0.0
 Requires:	xorg-lib-libXext%{?_isa} >= 1.0.0
@@ -208,8 +210,6 @@ Dopełnianie parametrów mpv dla powłoki ZSH.
 %prep
 %setup -q
 %{?with_v4l2_request:%patch -P0 -p1}
-%patch -P1 -p1
-%patch -P2 -p1
 
 %build
 %meson \
diff --git a/vapoursynth-r74.patch b/vapoursynth-r74.patch
deleted file mode 100644
index d464022..0000000
--- a/vapoursynth-r74.patch
+++ /dev/null
@@ -1,140 +0,0 @@
-From 75b2ccfeb1ce4ed5a40ac9860fa74f3d1265e13f Mon Sep 17 00:00:00 2001
-From: Crend King <975235+CrendKing at users.noreply.github.com>
-Date: Thu, 9 Apr 2026 21:53:16 -0700
-Subject: [PATCH] vf_vapoursynth: update for VapourSynth R74
-
-VapourSynth R74 changed two things relevant to mpv build process:
-
-1) VSScript no longer has static library to link to, and only support runtime loading.
-This is reflected on the new VSScript example in VapourSynth SDK.
-2) The VSScript library name is changed from libvapoursynth-script to libvsscript for Linux
-and MacOS.
-
-The new VSScript initialization code is modified from their SDK example to utilize
-mpv's mechanisms. Build dependency is also updated accordingly.
----
- meson.build                   |  6 ++---
- osdep/io.h                    |  5 ++--
- video/filter/vf_vapoursynth.c | 49 ++++++++++++++++++++++++++++++++---
- 3 files changed, 51 insertions(+), 9 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index a40e4f1aec520..d7bfd5f3a3311 100644
---- a/meson.build
-+++ b/meson.build
-@@ -772,11 +772,9 @@ if features['uchardet']
- endif
- 
- vapoursynth = dependency('vapoursynth', version: '>= 56', required: get_option('vapoursynth'))
--vapoursynth_script = dependency('vapoursynth-script', version: '>= 56',
--                                required: get_option('vapoursynth'))
--features += {'vapoursynth': vapoursynth.found() and vapoursynth_script.found()}
-+features += {'vapoursynth': vapoursynth.found()}
- if features['vapoursynth']
--    dependencies += [vapoursynth, vapoursynth_script]
-+    dependencies += vapoursynth.partial_dependency(compile_args: true, includes: true)
-     sources += files('video/filter/vf_vapoursynth.c')
- endif
- 
-diff --git a/osdep/io.h b/osdep/io.h
-index cc72e22473a54..bf672224e78a7 100644
---- a/osdep/io.h
-+++ b/osdep/io.h
-@@ -247,12 +247,13 @@ locale_t newlocale(int, const char *, locale_t);
- locale_t uselocale(locale_t);
- void freelocale(locale_t);
- 
--#else /* __MINGW32__ */
-+#else /* _WIN32 */
- 
-+#include <dlfcn.h>
- #include <sys/mman.h>
- 
- extern char **environ;
- 
--#endif /* __MINGW32__ */
-+#endif /* _WIN32 */
- 
- #endif
-diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
-index d2ab916220edf..22bfa646581e9 100644
---- a/video/filter/vf_vapoursynth.c
-+++ b/video/filter/vf_vapoursynth.c
-@@ -22,7 +22,6 @@
- #include <limits.h>
- #include <assert.h>
- 
--#include <VapourSynth4.h>
- #include <VSScript4.h>
- 
- #include <libavutil/rational.h>
-@@ -37,11 +36,24 @@
- #include "filters/user_filters.h"
- #include "options/m_option.h"
- #include "options/path.h"
-+#include "osdep/io.h"
- #include "osdep/threads.h"
- #include "video/img_format.h"
- #include "video/mp_image.h"
- #include "video/sws_utils.h"
- 
-+static const char *const vsscript_lib_names[] = {
-+#ifdef _WIN32
-+    "VSScript.dll",
-+#elif defined(__APPLE__)
-+    "libvsscript.dylib",
-+    "libvapoursynth-script.dylib",
-+#else
-+    "libvsscript.so",
-+    "libvapoursynth-script.so",
-+#endif
-+};
-+
- struct vapoursynth_opts {
-     char *file;
-     int maxbuffer;
-@@ -804,11 +816,42 @@ static const m_option_t vf_opts_fields[] = {
- 
- static int drv_vss_init(struct priv *p)
- {
--    p->vs_script_api = getVSScriptAPI(VSSCRIPT_API_VERSION);
-+    const char *vsscript_path = getenv("VSSCRIPT_PATH");
-+    const int dl_mode = RTLD_NOW | RTLD_LOCAL;
-+    void *vsscript_lib = NULL;
-+
-+    if (vsscript_path) {
-+        vsscript_lib = dlopen(vsscript_path, dl_mode);
-+    } else {
-+        for (size_t i = 0; i < MP_ARRAY_SIZE(vsscript_lib_names) && !vsscript_lib; ++i) {
-+            vsscript_lib = dlopen(vsscript_lib_names[i], dl_mode);
-+        }
-+    }
-+
-+    VS_CC const VSSCRIPTAPI *(*getVSScriptAPI_func)(int) = NULL;
-+    VS_CC const char *(*getVSScriptAPILastError_func)(void) = NULL;
-+    const char *unknown_error_msg = "Last error unknown";
-+
-+    if (vsscript_lib) {
-+        getVSScriptAPI_func = (void *) dlsym(vsscript_lib, "getVSScriptAPI");
-+        getVSScriptAPILastError_func = (void *) dlsym(vsscript_lib, "getVSScriptAPILastError");
-+    }
-+
-+    if (!getVSScriptAPI_func) {
-+        const char *dl_error_msg = dlerror();
-+        const char *last_error_msg = dl_error_msg ? dl_error_msg : unknown_error_msg;
-+        MP_FATAL(p, "Failed to load VapourSynth VSScript library: %s\n", last_error_msg);
-+        return -1;
-+    }
-+
-+    p->vs_script_api = getVSScriptAPI_func(VSSCRIPT_API_VERSION);
-     if (!p->vs_script_api) {
--        MP_FATAL(p, "Could not initialize VapourSynth scripting.\n");
-+        const char *vs_error_msg = getVSScriptAPILastError_func ? getVSScriptAPILastError_func() : NULL;
-+        const char *last_error_msg = vs_error_msg ? vs_error_msg : unknown_error_msg;
-+        MP_FATAL(p, "Failed to initialize VapourSynth VSScript library: %s\n", last_error_msg);
-         return -1;
-     }
-+
-     return 0;
- }
- 
diff --git a/yt-dlp-delay.patch b/yt-dlp-delay.patch
deleted file mode 100644
index dca6b88..0000000
--- a/yt-dlp-delay.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-From ff5657999d16823adc2629ec0550236bf752c9a2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93 at gmail.com>
-Date: Sat, 27 Jun 2026 00:35:21 +0200
-Subject: [PATCH] ytdl_hook: defer loading until the formats become available
-
-yt-dlp can provide time at which formats become available
-`available_at`. Sleep until the requested time.
-
-Fixes: #18192
----
- player/lua/ytdl_hook.lua | 30 +++++++++++++++++++++++++++---
- 1 file changed, 27 insertions(+), 3 deletions(-)
-
-diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
-index 0ceb1715cfad7..701bc2ae61e4d 100644
---- a/player/lua/ytdl_hook.lua
-+++ b/player/lua/ytdl_hook.lua
-@@ -29,6 +29,7 @@ local chapter_list = {}
- local chapter_list = {}
- local playlist_cookies = {}
- local playlist_metadata = {}
-+local stream_delay = 0
- 
- local function Set (t)
-     local set = {}
-@@ -635,6 +636,17 @@ local function formats_to_edl(json, formats, use_all_formats)
-     return res
- end
- 
-+-- Seconds to wait before the formats become available
-+local function get_stream_delay(formats)
-+    local available_at = 0
-+    for _, track in ipairs(formats or {}) do
-+        if type(track.available_at) == "number" then
-+            available_at = math.max(available_at, track.available_at)
-+        end
-+    end
-+    return available_at > 0 and math.max(0, available_at - os.time()) or 0
-+end
-+
- local function add_single_video(json)
-     local streamurl = ""
-     local format_info = ""
-@@ -648,6 +660,9 @@ local function add_single_video(json)
-                     and requested_formats[1].cookies
-                     or json.cookies
- 
-+    stream_delay = math.max(stream_delay,
-+        get_stream_delay(has_requested_formats and requested_formats or {json}))
-+
-     if o.use_manifests and valid_manifest(json) then
-         -- prefer manifest_url if present
-         format_info = "manifest"
-@@ -868,6 +883,7 @@ end
- 
- local function run_ytdl_hook(url)
-     local start_time = os.clock()
-+    stream_delay = 0
- 
-     -- strip ytdl://
-     if url:find("ytdl://") == 1 then
-@@ -1153,7 +1169,7 @@ local function run_ytdl_hook(url)
-     msg.debug('script running time: '..os.clock()-start_time..' seconds')
- end
- 
--local function on_load_hook(load_fail)
-+local function on_load_hook(load_fail, hook)
-     local url = mp.get_property("stream-open-filename", "")
-     local force = url:find("^ytdl://") ~= nil
-     local early = force or o.try_ytdl_first or is_whitelisted(url)
-@@ -1164,10 +1180,18 @@ local function on_load_hook(load_fail)
-         return
-     end
-     run_ytdl_hook(url)
-+
-+    -- defer loading until the formats become available
-+    if stream_delay > 0 then
-+        msg.info(("Waiting %.2f seconds for the stream to become available...")
-+                 :format(stream_delay))
-+        hook:defer()
-+        mp.add_timeout(stream_delay, function() hook:cont() end)
-+    end
- end
- 
--mp.add_hook("on_load", 10, function() on_load_hook(false) end)
--mp.add_hook("on_load_fail", 10, function() on_load_hook(true) end)
-+mp.add_hook("on_load", 10, function(hook) on_load_hook(false, hook) end)
-+mp.add_hook("on_load_fail", 10, function(hook) on_load_hook(true, hook) end)
- 
- mp.add_hook("on_load", 20, function ()
-     msg.verbose('playlist hook')
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpv.git/commitdiff/0c5c0525adc4ddcb99a293b2ee63abf3a1d3c0c6



More information about the pld-cvs-commit mailing list