head 1.6; access; symbols pkgsrc-2026Q1:1.6.0.2 pkgsrc-2026Q1-base:1.6 pkgsrc-2025Q4:1.5.0.6 pkgsrc-2025Q4-base:1.5 pkgsrc-2025Q3:1.5.0.4 pkgsrc-2025Q3-base:1.5 pkgsrc-2025Q2:1.5.0.2 pkgsrc-2025Q2-base:1.5 pkgsrc-2025Q1:1.4.0.4 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.2 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.3.0.4 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.2 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.2.0.2 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.1.0.4 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.2 pkgsrc-2023Q3-base:1.1; locks; strict; comment @# @; 1.6 date 2025.12.24.15.34.23; author leot; state Exp; branches; next 1.5; commitid LrPUp0JgSE8mXFnG; 1.5 date 2025.04.24.10.26.30; author leot; state Exp; branches; next 1.4; commitid BxKdAz1rV8Mi6iSF; 1.4 date 2024.10.20.09.28.29; author leot; state Exp; branches; next 1.3; commitid hQMWwI0b1z6YKnuF; 1.3 date 2024.05.15.20.37.20; author wiz; state Exp; branches; next 1.2; commitid ZsGA4C3VWgbix8aF; 1.2 date 2024.01.01.15.50.14; author leot; state Exp; branches; next 1.1; commitid 8Xdg6DWBCukThLSE; 1.1 date 2023.08.15.19.17.10; author leot; state Exp; branches; next ; commitid KoJeHfNDfezSTUAE; desc @@ 1.6 log @mpv: Update to 0.41.0 Changes: 0.41.0 - The libplacebo based gpu-next is now the default, instead of gpu - Vulkan hardware decoding is preferred over other APIs - New context_menu.lua script for right-click context menus - AAudio backend for modern, JNI-free audio output on Android - Improved default color management for gpu-next, and handling on Wayland - Color representation protocol support for Wayland - Tablet input support for Wayland - Clipboard writing support for Wayland and a clipboard backend for X11 - Ambient light support on Linux (using sysfs ALS) - Built-in helpers to register mpv as a media app on Windows This release requires FFmpeg 6.1 or newer and libplacebo 6.338.2 or newer. @ text @$NetBSD: patch-meson.build,v 1.5 2025/04/24 10:26:30 leot Exp $ - Instruct about NetBSD pthread_setname_np(3). Maybe pthread_setname_np(3) should be checked in order to distinguish based on the argument supported instead of special-casing based on the platform... workaround that for the moment in the simplest way. - Enable support for DRM on NetBSD. --- meson.build.orig 2025-12-21 19:08:20.000000000 +0000 +++ meson.build @@@@ -313,6 +313,7 @@@@ if cc.get_id() == 'gcc' endif darwin = host_machine.system() == 'darwin' +netbsd = host_machine.system() == 'netbsd' win32 = host_machine.system() == 'cygwin' or host_machine.system() == 'windows' posix = not win32 @@@@ -559,14 +560,17 @@@@ features += {'wsdisplay-usl-io.h': cc.ha # macOS's pthread_setname_np is a special snowflake and differs from literally every other platform. features += {'mac-thread-name': darwin} +# NetBSD pthread_setname_np differs from macOS and Linux +features += {'netbsd-thread-name': netbsd} + features += {'glibc-thread-name': false} -if not features['mac-thread-name'] +if not features['mac-thread-name'] and not features['netbsd-thread-name'] features += {'glibc-thread-name': posix and cc.has_function('pthread_setname_np', args: '-D_GNU_SOURCE', dependencies: pthreads, prefix: '#include ')} endif features += {'bsd-thread-name': false} -if not features['mac-thread-name'] and not features['glibc-thread-name'] +if not features['mac-thread-name'] and not features['glibc-thread-name'] and not features['netbsd-thread-name'] features += {'bsd-thread-name': posix and cc.has_function('pthread_set_name_np', dependencies: pthreads, prefix: '#include \n#include ')} endif @ 1.5 log @mpv: Update to 0.40.0 Changes: 0.40.0 ====== We are excited to announce the release of mpv 0.40.0. Key highlights: * Console: Enhanced autocompletion and visual styling * OSC: New selection menu accessible by right-clicking common buttons * HDR is now natively supported when using direct rendering (DRM), as well as dmabuf-wayland on Linux * Native clipboard access for scripts via new `clipboard` property * New command menu, with common actions easily accessible * Enhanced select.lua with new selection options for watch history, editions, DVD/Blu-Ray titles * New positioning.lua script script for cursor-centric zooming and drag to pan * Better stream support for Blu-ray, DVD and CDDA * Track selection improvements and better metadata display * Added osd-box / sub-box / box profiles to easily enable box styled OSD/OSC * Windows support in umpv helper script This release requires FFmpeg 6.1 or newer and libplacebo 6.338.2 or newer. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.4 2024/10/20 09:28:29 leot Exp $ a7 1 - Install configuration files to examples, per pkgsrc conventions. d9 1 a9 1 --- meson.build.orig 2025-03-25 17:33:27.000000000 +0000 d11 1 a11 1 @@@@ -312,6 +312,7 @@@@ if cc.get_id() == 'gcc' d19 1 a19 1 @@@@ -555,14 +556,17 @@@@ features += {'wsdisplay-usl-io.h': cc.ha a38 9 @@@@ -1803,7 +1807,7 @@@@ if get_option('cplayer') install_data('etc/mpv.fish', install_dir: fish_install_dir, rename: 'mpv.fish') install_data('etc/mpv.metainfo.xml', install_dir: join_paths(datadir, 'metainfo')) - install_data('etc/encoding-profiles.conf', install_dir: join_paths(confdir, 'mpv')) + install_data('etc/encoding-profiles.conf', install_dir: join_paths(datadir, 'examples/mpv')) foreach size: ['16x16', '32x32', '64x64', '128x128'] icon_dir = join_paths(datadir, 'icons', 'hicolor', size, 'apps') @ 1.4 log @mpv: Update to 0.39.0 Changes: 0.39.0 ====== We are excited to announce the release of mpv 0.39.0, with more than 5 months of development since the last version. This release brings numerous improvements and fixes across nearly all components. Key highlights: * A new select.lua script, allowing users to easily choose files from playlists, tracks, chapters, output devices, and more. * A native replacement for autoload.lua has been implemented. See --autocreate-playlist in the manual. * NVIDIA RTX and Intel VSR scaling are now supported via the d3d11va filter. * Media controls are now supported on Windows. * Track selection has been improved, especially for multi-component languages like fr-CA. * A new fifth page has been added to stats.lua, displaying track information. * Compatibility with dmabuf-wayland has been significantly enhanced. * Multi-touch support has been introduced. This release requires FFmpeg 6.1 or newer and libplacebo 6.338.2 or newer. @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.3 2024/05/15 20:37:20 wiz Exp $ d10 1 a10 1 --- meson.build.orig 2024-09-23 17:36:41.000000000 +0000 d12 1 a12 1 @@@@ -300,6 +300,7 @@@@ if cc.has_multi_arguments('-Wformat', '- d20 1 a20 1 @@@@ -552,14 +553,17 @@@@ features += {'wsdisplay-usl-io.h': cc.ha d40 2 a41 2 @@@@ -1798,7 +1802,7 @@@@ if get_option('cplayer') install_data('etc/_mpv.zsh', install_dir: zsh_install_dir, rename: '_mpv') @ 1.3 log @mpv: update to 0.38.0. Release 0.38.0 ============== Features -------- New ~~~ - scripting: add mp.input() - player: add an option to automatically turn on deinterlacing - mac: add more Now Playing information and functionality - osxbundle: automatically include MoltenVK to enable Vulkan support - input.conf: bind Ctrl+WHEEL_UP/DOWN to video-zoom - ao_avfoundation: initial support for AVFoundation audio driver (macOS) - vo: add context menu support on win32 Changed ~~~~~~~ - osc: allow disabling special mouse wheel behavior - mac: add support for dynamic change of geometry, autofit - x11_common: allow DPI scale in unit of 0.5 and prefer the value from Xft.dpi - vo_gpu_next: save cache to separate files - mac: large amounts of refactoring, internal improvements and cleanups - builtin.conf: remove debanding from the high-quality profile Removed ~~~~~~~ - player: remove legacy, non-standard Raspberry Pi-specific support code Options and Commands -------------------- Added ~~~~~ - options: add secondary-sub-delay - options: add --osd-bar-border-size - filter_sdh: add --sub-filter-sdh-enclosures option - options: add --secondary-sub-ass-override - audio: add --volume-gain option to control volume in decibels - command: export current-gpu-context property - sub: add --sub-lavc-o option - command: add load-config-file and load-input-conf - input: add --input-preprocess-wheel option - player: add loadfile/loadlist insert-next commands - input: rework window dragging to be command controllable - options: add --deinterlace-field-parity option - vo: add video-target-params property - options: add --input-commands that runs commands at startup Changed ~~~~~~~ - player/command: add ability to scale overlay - mac: add support for window-id property and --drag-and-drop - command: support passing scale to `keypress` - mac: add support for --auto-window-resize, --input-cursor-passthrough options - win32: add support for --input-cursor-passthrough option - x11_common: support --title-bar - sub: allow setting special page numbers via --teletext_page - player: set --hidpi-window-scale to no by default - osd_libass: update the OSD bar's dent and border size - player: remove --alpha and rename --background to --background-color - options: remove --focus-on-open and add --focus-on Removed ~~~~~~~ - player: remove --term-remaining-playtime option Fixes and Minor Enhancements ---------------------------- - vaapi: add support for vaapi-win32 - ao/coreaudio_exclusive: fix segfault when changing formats - mac: fix libmpv usage without embedding - build: only directly link shaderc and spirv-cross on windows - build: enable dvbin by default again - playloop: use a 16:9 ratio with --force-window - mac: report modifier keys on precise scrolling - input: fix double click handling - input: add missing forward media key ('GO_FORWARD') - sub: don't busy loop if the player is paused for cache - playlist: correctly populate playlist-path with the --playlist option - win32: opt in to the windows segment heap - demux_lavf: remove fix_editlists hack for mp4 - wayland: fix key modifier handling again - win32: re-enable IME - wayland_common: guard against negative configure sizes - demux_lavf: detect ico as images - bash-completion: parse the mpv options lazily - f_auto_filters: use bwdif_cuda for deinterlacing with cuda hwdec - command: do a normal seek instead of a refresh seek when switching vo - ad_spdif: fix DTS 44.1khz passthrough playback - vo_dmabuf_wayland: scale smarter in hidpi situations - hwdec_drmprime: add P010 and P210 support - wayland: look for "default" cursor as well as "left_ptr" - wayland_common: properly handle high resolution scrolling - vo_vdpau: fix timing for nanoseconds - demux_mkv: add tags for A_MPEG/L1 (mp1) audio and FFV1 video - osdep: fix infinite loop when cancelling subprocess - dec_sub: expand sub packet caching - player/sub: avoid wasteful subtitle redraws - ao_pipewire: add support for SPDIF formats - wayland_common: implement multi-seat support - vo: make libmpv last in the auto-probing order for cocoa-cb only - player/loadfile: rewrite sub autoselection logic - meson: add custom target for macOS App bundling - image_writer: cleanup leftover files if image writing fails - sub: fix LRC lines with multiple timestamps - ao: don't clip floating point formats at non-unity gain - wayland: remove old sway/wlroots hack - hwdec/dmabuf_interop_gl: migrate to EXT_EGL_image_storage on desktop GL - sd_ass: don't wrongly recognize \pos as \p - ao_audiotrack: fix missing check for passthrough support - wayland_common: log if Drag-and-Drop fails - vo_gpu_next: render subtitles at video colorspace - swresample: stop using deprecated {in,out}_channel_layout options - path: don't load any files if --no-config is passed (incl. cache and state) - vo_gpu/vo_gpu_next: fix transparency with GLX - wayland_common: require WAYLAND_DISPLAY to be set for initialization - vo_drm: add support for BGR formats and YUYV - stream: enable caching for sockets, pipes and FIFOs - ao_coreaudio: stop audio unit after idle timeout - vo_gpu_next: add support for --dither-depth=auto - vo_gpu_next: don't render ASS subtitles at HDR colorspace - video/image_writer: attach MDVC metadata and CLLI metadata - win32: resolve dropped shell links (Windows shortcuts) - af_lavcac3enc: fix memory leak on 2ch audio - win32: increase hires timer resolution - input: raise maximum key down limit to 16 - input: remove max active section limit - video/egl_helpers: fix fallback logic for EGL_KHR_create_context - ao_pulse: reenable latency hacks by default - hwdec/vulkan: enable the stable AV1 extension - af_scaletempo2: fix false reporting of frame availability - win32: fix native key repeat support - ao_pipewire: fix some buffer size / timing calculations - audio: pause handling improvements for pull-based AOs - ad_spdif: specify missing media type and sample rate - mac/vulkan: add support for frame timing via presentation feedback - demux_mkv: corrected direction of ProjectionPoseRoll rotation - demux_mkv: add support for BCP 47 language tags - player: avoid busy looping during subtitle track switches @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.2 2024/01/01 15:50:14 leot Exp $ d10 1 a10 1 --- meson.build.orig 2024-04-17 19:18:44.000000000 +0000 d12 1 a12 1 @@@@ -303,6 +303,7 @@@@ if cc.get_id() == 'clang' d20 1 a20 6 @@@@ -527,17 +528,22 @@@@ features += {'vt.h': cc.has_header_symbo features += {'consio.h': not features['vt.h'] and cc.has_header_symbol('sys/consio.h', 'VT_GETMODE')} +features += {'wsdisplay_usl_io.h': not features['vt.h'] and not features['consio.h'] and cc.has_header_symbol('dev/wscons/wsdisplay_usl_io.h', 'VT_GETMODE')} + d40 2 a41 10 @@@@ -922,7 +928,7 @@@@ if features['direct3d'] endif drm = dependency('libdrm', version: '>= 2.4.105', required: get_option('drm')) -features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'])} +features += {'drm': drm.found() and (features['vt.h'] or features['consio.h'] or features['wsdisplay_usl_io.h'])} if features['drm'] dependencies += drm sources += files('video/drmprime.c', @@@@ -1758,7 +1764,7 @@@@ if get_option('cplayer') a42 1 install_data('etc/mpv.desktop', install_dir: join_paths(datadir, 'applications')) @ 1.2 log @mpv: Update to 0.37.0 pkgsrc changes: - Remove bits that were applied upstream in patch-osdep_threads-posix.h - Adjust patch-osdep_threads.c logic to patch-osdep_threads-posix.h - Add dependency to libplacebo (thanks to for help in packaging!) Changes: 0.37.0 ====== This release requires FFmpeg 4.4 or newer and libplacebo 6.338.0 or newer. This is the first release to unconditionally require libplacebo, but note that the new improved renderer (vo_gpu_next) is not yet the default. Features -------- New ~~~ - ao_oss: add SPDIF passthrough support - hwtransfer: implement support for HW->HW format conversions - stream/dvbin: add support for delivery system ISDB-T - audio/chmap: support up to 64 channels (including 22.2 layout) - libmpv: add mpv_time_ns() - vo_gpu, vo_gpu_next: add Vulkan support for macOS - meson: make libplacebo a required dependency - hwdec: support videotoolbox hwdec with libplacebo Changed ~~~~~~~ - msg: print warning and error messages to stderr - options: restore old default subtitle selection behavior - input.conf: swap wheel up/down with wheel left/right Removed ~~~~~~~ - waf: remove waf as a build system - osc.lua: remove toggle for forced only subpictures (appeared as [F]) - mac: remove runtime checks and compatibility for macOS older than 10.15 - cocoa: remove deprecated OpenGL cocoa backend Options and Commands -------------------- Added ~~~~~ - vo_gpu_next: add --hdr-peak-percentile - player: add --term-remaining-playtime option - x11: add --x11-wid-title option - vo_gpu_next: add --libplacebo-opts - player: add --subs-match-os-language option (replaces 'auto' option) - vo: add --video-crop - win32: add --window-corners, --window-affinity, --title-bar, --backdrop-type - sub: add --sub-stretch-durations option Changed ~~~~~~~ - builtin.conf: add --hdr-peak-percentile=99.995 to gpu-hq profile - player: add 'always' option to --subs-fallback-forced - demux_playlist: default to --directory-mode=lazy - builtin.conf: add --allow-delayed-peak-detect=no to gpu-hq profile - vo_gpu, vo_gpu_next: support --icc-3dlut-size=auto - demux: prepend some cache options with --demuxer- - builtin.conf: modernize internal profiles for higher quality rendering by default, rename 'gpu-hq' profile to 'high-quality', add 'fast' profile - vo_gpu, vo_gpu_next: default to dscale=hermite - builtin.conf: remove deprecated 'opengl-hq' profile - options: remove a bunch of old option fallbacks/deprecated ones - vo_gpu: allow --deband-iterations to be 0 - stream_cdda: deprecate --cdda-toc-bias and always check for offsets - options: disable --allow-delayed-peak-detect by default - options: adjust default of --watch-later-options Deprecated ~~~~~~~~~~ - command: deprecate shared-script-properties - demux_cue: deprecate --demuxer-cue-codepage for --metadata-codepage Removed ~~~~~~~ - player: remove special 'auto' option from alang/slang/vlang (previous default) - vo_gpu: remove --tone-mapping-mode - vo_gpu: remove --scale-wblur, --scale-cutoff etc. - vo_gpu: remove --scaler-lut-size - m_option: drop support for -del for list options Fixes and Minor Enhancements ---------------------------- - build: remove unneeded libdl requirement for vaapi - zimg: fix abort on subsampled input with odd heights - video_writer: fix gamma for YUV screenshots - player/video: fix possible crash when changing lavfi-complex - ad_spdif: fix segfault due to early deallocation - ao_pipewire: fix race conditon with setting the media role - draw_bmp: fix overflowing coordinates in mark_rcs - ao_sndio: use sio_flush() to improve controls responsiveness - vo_vdpau: fix hwdec for this vo - vo_gpu, vo_gpu_next: fix setting an empty dscale - vd_lavc: repeatedly attempt to fallback if hwdec fails in reinit - options: fix relative time parsing on negative input - win32: signal DPI changes correctly - mp_image: properly infer color levels for some pixfmts - vo_gpu_next: add ability to use named hook params - vo_gpu_next: take into account PAR when taking screenshots - ao_audiotrack: support more channel layouts - osc.lua: support speed-independent time-remaining display - sub: fix switching tracks while paused - audio: fix clipping with gapless audio enabled - player/video: avoid spamming logs with EOF - player/command: detect aspect ratio name and show it in stats.lua - wayland: keyboard input fixes - demux_playlist: remove len restriction on headerless m3u - win32: fix display resolution calculation on mulitple monitors - vo_gpu_next: multiple adjustments and fixes to interpolation - loadfile: avoid infinite playlist loading loops - context_drm_egl: don't free EGL properties if they are null - x11: require xrandr 1.4, remove xinerama support - drm_common: skip cards that don't have connected outputs - win32_common: fixes minimized window being focused on launch - ao/jack: set device_buffer to JACK buffer size - meson: rename all features with underscores - input: add new keys: Back, Tools, ZoomIn, ZoomOut - win32: don't ignore --screen and --fs-screen - input: add missing keypad key defines and Windows multimedia keys - player: use audio pts corresponding to playing audio on EOF - command: add sub-ass-extradata property - vo_dmabuf_wayland: unmap osd surface when not needed - player: always write redirect entries for resuming playback - stats.lua: reorganize how video params are displayed - stats.lua: display HDR metadata - osc.lua: add scrolling to the seekbar - demux_lavf: prefer track durations over container durations to determine total - vo: vulkan: allow picking devices by UUID - video: allow overriding container crop if it is present - vo_gpu, vo_gpu_next, screenshot: support applying crop for screenshots - sd_lavc: account for floating point inaccuracy, fix sub PTS - stream: accept dav:// and davs:// urls - filter_kernels: refine some constants - filter_kernels: add ewa_lanczos4sharpest - osc.lua: add scrolling to audio/sub buttons - demux_mkv: support cropping and rotation - vo_dmabuf_wayland: support 90 degree rotations - filter_kernels: add hermite filter - vo: avoid unnecessary redraws when the OSD shows - scripting: support DLL cplugins - af_scaletempo2: various bug fixes - sdl_gamepad: fix button detection on modern controllers - vo_dmabuf_wayland: support osd rendering when there's no video - demux_playlist: add --directory-mode=auto - vo_gpu_next: use proper color for subtitles - win32: add an option to change window affinity and control title bar state - win32: reduce top border thickness to imitate DWM invisible borders - wayland: remove gnome-specific idle-inhibit warning - win32: pass window handle to the window-id property - osc.lua: fix calculation for slider's min-max average - recorder: fix a couple of memory leaks - af_scaletempo2: raise max playback rate to 8.0 - osc.lua: move the idle logo behind other overlays - hwdec_drmprime: add nv16 support - various: change internal timing code to work in nanoseconds instead of microseconds - vo: increase display refresh rate estimation limit from 99 Hz to 400 Hz - external_files: base cover-art-whitelist on cover-art-auto-exts - path: don't override cache and state paths with --config-dir - codec_tags: map some more image mimetypes - af/vf-command: add ability to target a specific lavfi filter - win32: prevent white window flash on startup - demux_playlist: use --metacode-codepage when parsing playlist files - video: revert racey change that led to stutter and deadlocking - console.lua: various improvements - command: add playlist-next-playlist and playlist-prev-playlist - ytdl_hook.lua: set metadata with single tracks - defaults.lua: add a disabled parameter to timer constructors - terminal-unix: race condition fixes - af_scaletempo2: better defaults - hwtransfer: handle hwcontexts that don't implement frame constraints - stream_cdda: remove fallback for ancient libcdio versions - osdep: drop support for C11 without atomics - dvbin: do a big cleanup on code style and functions - ytdl_hook.lua: parse the separate cookies field - sub: update subtitles if current track is an image - javascript: use --js-memory-report option instead of MPV_LEAK_REPORT - ao_coreaudio: signal buffer underruns - ytdl_hook.lua: support thumbnails - demux: make hysteresis-secs respect cache-secs - mp_image: pass rotation correctly to/from AVFrame correctly - various: add new internal mp_thread abstraction and use it - drm: use present_sync mechanism for presentation feedback - vo_gpu: apply ICC profile and dithering only to window screenshots - audio: introduce ao_read_data_nonblocking() and use it in relevant backends - wayland: obey initial size hints set by the compositor - command: export storage aspect ratio (sar) properties - vo: delay vsync samples by at least 10 refreshes to improve convergence time - vo_sdl: fix broken mouse wheel multiplier - vo_gpu_next: simplify cache code and don't re-save when unmodified @ text @d1 1 a1 1 $NetBSD: patch-meson.build,v 1.1 2023/08/15 19:17:10 leot Exp $ d10 1 a10 1 --- meson.build.orig 2023-11-21 18:47:46.000000000 +0000 d12 1 a12 1 @@@@ -297,6 +297,7 @@@@ if cc.get_id() == 'clang' d20 1 a20 1 @@@@ -515,17 +516,22 @@@@ features += {'vt.h': cc.has_header_symbo d27 1 a27 1 features += {'osx-thread-name': darwin} d33 2 a34 2 -if not features['osx-thread-name'] +if not features['osx-thread-name'] and not features['netbsd-thread-name'] d40 2 a41 2 -if not features['osx-thread-name'] and not features['glibc-thread-name'] +if not features['osx-thread-name'] and not features['glibc-thread-name'] and not features['netbsd-thread-name'] d45 1 a45 1 @@@@ -900,7 +906,7 @@@@ if features['direct3d'] d54 1 a54 1 @@@@ -1734,7 +1740,7 @@@@ if get_option('cplayer') @ 1.1 log @mpv: Update to 0.36.0 pkgsrc changes: - Switch to meson: waf build system will be deprecated (and started to be problematic). Try to adjust all patches that we had to meson and switch to meson. - Remove patches/patch-player-lua-ytdl__hook.lua, no longer needed (was backported from upstream) - Remove all waf related patches: all of them should be adjusted for meson and are no longer used. Changes: Release 0.36.0 ============== This release requires FFmpeg 4.4 or newer. This is the last release to contain the waf build system. Meson is the primary and actively supported build system while waf is considered deprecated. Features -------- New ~~~ - player: add window-id property - vo_kitty: introduce modern sixel alternative - wayland: add wp-fractional-scale-v1 support - player/command: add `user-data` property (replacement for `shared-script-properties`) - vo_gpu_next: support mapping HDR10+ dynamic metadata - vo_gpu_next: allow screenshots in native colorspace - vo_gpu_next: parse Dolby Vision metadata for dynamic scene brightness - video: allow csp equalizer adjustments with floating point precision - command: add platform property - demux_mkv: support ARIB captions - hwdec_vulkan: add support for Vulkan-based hardware decoding - player: better handling of forced-only subtitles and a toggle in the OSC - vo_dmabuf_wayland: add osd support Changed ~~~~~~~ - TOOLS/umpv: prefer $XDG_RUNTIME_DIR - ffmpeg: increase minimum required version to 4.4 - player: choose speed of smallest acceptable factor for display sync - player: don't force saving `start` in watch-later-options - build: officially deprecate waf - vf_sub: undeprecate - player: set playlist title to media title if not set already - player: use and respect XDG_STATE_HOME and XDG_CACHE_HOME by default - wayland: bump required version to 1.20 and wayland-protocols to 1.25 - ao_pipewire: require at least libpipewire 0.3.48 - vo: hwdec: prioritise drmprime over drmprime_overlay - vo_gpu/vo_gpu_next: enable gpu shader and icc cache by default Removed ~~~~~~~ - drm: remove support for legacy (non-atomic) API - stream/dvb: drop support for DVB API before Linux 3.7 - hwdec_cuda: drop support for PL_HANDLE_WIN32_KMT (Windows 7 only) - vo_dmabuf_wayland: drop linux-dmabuf-v2 support Options and Commands -------------------- Added ~~~~~ - player: add --force-render option - demux: add --demuxer-hysteresis-secs option to save power with caching - ao_pipewire: allow usage of global volume control via --pipewire-volume-mode - vo_gpu_next: add --tone-mapping-visualize - sub: add --sub-fonts-dir and --osd-fonts-dir options - player: add --auto-window-resize - console.lua: add a script-opt for the border size - player: add --drag-and-drop option - vo_gpu_next: add --corner-rounding option - player: add more precise sub fallback options --subs-fallback and --subs-fallback-forced - player: add --input-cursor-passthrough option - TOOLS/lua/autoload: allow extending ext sets from script-opts - demux_playlist: add --directory-mode option to control recursive directory loading - vo_gpu_next: add --target-contrast and --hdr-contrast-recovery/smoothness Changed ~~~~~~~ - vd_lavc: add "auto" choice for --vd-lavc-dr and make it the default (notably this change was also backported to v0.35.1) - wayland: add auto choice to --wayland-configure-bounds - image_writer: change --screenshot-tag-colorspace default to yes - vo_gpu_next: expose --tone-mapping=st2094-40 and st2094-10 - wayland: make --wayland-edge-pixels-pointer default to 16 - options: enable scripts related opts also with cplugins - player/screenshot: add filename return field - options: set --subs-with-matching-audio to off by default - options: default --slang to auto, which uses the settings of the user's OS - vd_lavc: allow user to specify a priority list in --hwdec - vd_lavc: map hwdec=yes to hwdec=auto-safe and change ctrl+h to use auto-safe Deprecated ~~~~~~~~~~ - drm: deprecate `--drm-atomic` (now always enabled) Removed ~~~~~~~ - vo_gpu_next: remove --tone-mapping-crosstalk Fixes and Minor Enhancements ---------------------------- - ao_pipewire: log version and other useful debug info - wayland: error out if essential protocol support is missing - wayland: add support for content-type protocol - wayland: also log refresh rate on surface entrance - vo_gpu_next: fix undefined behavior on alpha-first formats - meson: prepend MPV_CONFDIR path with prefix - meson: unbreak dl check on BSDs without libdl - lcms: fix crash with lcms2-related options if lcms is disabled - meson: fix stdatomic detection on bsd - osc: don't spam window-controls bindings on every render - wayland: check for resize/move in touch event first - ao_coreaudio: use device's nominal sample rate for latency properties - hwdec_drmprime: support yuv420p format - ao_pipewire: properly clean up resources - vo/{sixel,tct}: use the alternate buffer to restore terminal - vo_sixel: add option to skip clear while drawing - filter_kernels: fix kaiser - hwdec/d3d11va: fix a possible memory leak - external_files: set log level for potential files to trace - external_files: recognize webp files as cover art - vo_opengl: do not blindly reject all Microsoft's OpenGL implementations - ao_coreaudio: use AudioUnitReset as ao_driver.reset to prevent long restart - hwdec_drmprime: fix memory leak - vo: hwdec: fix libdrm-related memory leak - draw_bmp: ensure last slice width is less than total width - demux: boost read EBU R128 gain values to ReplayGain's reference level - version.py: bump copyright year - TOOLS/umpv: support shell-quotes in $MPV - vulkan: fix build error for 32bit builds with clang - TOOLS/lua/autoload: improve and optimize the natural sorting - vo_wlshm: properly support video panscan - vo_dmabuf_wayland: support panscan and panning - ra_d3d11: fix incorrect type - meson: also search for rst2html with .py extension - audio: fix crash during uninit with ao_lavc - wayland: only warn about GNOME when actually missing idle inhibit support - mp_image: fix XYZ primaries default - msg: preserve early messages when log-file is set in mpv.conf - x11: fix issue with xpresent timing feedback - meson: reuse libmpv objects for cplayer to save 50% of compile steps - player/client: support observing sub-properties - m_property: implement new deletion operation on properties - vo_lavc: set frame rate on encoder to fix non-conforming outputs - player/video: don't resync audio if video is an image - stream: accept webdav:// and webdavs:// urls - video/image_writer: avoid stripping colorspace info when writing image - stats.lua: display HDR peak in nits - image_pool: fix memory leak with frames - options: transition from OPT_FLAG to OPT_BOOL - vd_lavc: sort hwdecs without hwdevices last for autoprobing - ytdl_hook: don't overwrite force-media-title - lua: use user-data for interop between osc.lua and console.lua - vo: fix race condition with redraw requests - various: more fixes to ensure correct playback of XYZ colorspace - ytdl_hook: fix fragment-related issue that broke YouTube DASH playback - command: expose hls-bitrate and program-id as track-list subproperties - ao_pipewire: use realtime scheduling for data thread - auto_profiles: check for non-existent properties - d3d11: retry device creation without debug, if SDK is not available - win32: follow Windows settings and update dark mode state - ytdl_hook.lua: fix clip start and end - hwdec_drmprime: support custom rpi4_8 and rpi4_10 formats - sub: fix UPDATE_SUB_HARD for converted and external subtitles - charset_conv: fix memory corruption in mp_iconv_to_utf8 - options: read config file as stream - wayland: improve guessing when mpv is focused - player: always try to detect subtitle language from file name - vo: fix mp_frame_perf thread safety - lua: read_options: find script-opts prefix at index 1 exactly - path: handle URLs consistently in mp_basename - ao_wasapi: remove infinite loop hack in AOCONTROL_UPDATE_STREAM_TITLE - ao_wasapi: use client name instead of hardcoded string - vd_lavc: fix crash if hwdec devices fail to create - vo_drm: fix null dereference and using closed fd - image_writer: respect jpeg-quality when using ffmpeg for writing - image_writer: add support for AVIF - TOOLS/lua/autoload: avoid unnecessary playlist manipulation, performance - various: correctly ignore cache files with --no-config - terminal-unix: better error detection logic - json: raise parse depth to 50 for the sake of utils.parse_json() - player: delete watch_later file only after successful load - wayland: fix memory leak with multiple monitors - vd_lavc: prefer d3d11va-copy over dxva2-copy - vd_lavc: fix hwdec for videos with less than less than 3 frames - wayland: add support for suspended toplevel state - draw_bmp: ensure last slice is less than total width (again) - console.lua: sort the output from the help command - vd_lavc: try other hwdecs when falling back after an hwdec failure - sd_ass: don't reconfigure ass on every frame (performance regression) - sd_ass: fix converted subtitles having too-wide borders - loadfile: compute audio language for sub selection when using lavfi-complex - wayland: fix modifier keys in certain situations - vd_lavc: corrections towards hwdec and swdec fallback - zimg: fix broken sig_peak (HDR) handling - screenshot: implement `screenshot window` in sw for most VOs - osc: don't add margins to osc-deadzonesize - vo_vaapi: fix segfault in draw_osd - vo_dmabuf_wayland: correctly handle force-window - ao_pipewire: fix error with pipewire 0.3.75 or later @ text @d1 1 a1 1 $NetBSD$ a7 3 - Also check for SNDCTL_DSP_HALT. NetBSD ossaudio(3) has SNDCTL_DSP_SETPLAYVOL but not SNDCTL_DSP_HALT. Consistent with the same check that is present in wscript. d10 1 a10 1 --- meson.build.orig 2023-07-23 17:10:36.000000000 +0000 d12 1 a12 1 @@@@ -293,6 +293,7 @@@@ if cc.get_id() == 'clang' d20 1 a20 1 @@@@ -521,17 +522,22 @@@@ features += {'vt.h': cc.has_header_symbo d45 1 a45 10 @@@@ -827,6 +833,8 @@@@ oss_opt = get_option('oss-audio').requir error_message: 'the build is not GPL!', ) features += {'oss-audio': cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_SETPLAYVOL', + required: oss_opt) and + cc.has_header_symbol('sys/soundcard.h', 'SNDCTL_DSP_HALT', required: oss_opt)} if features['oss-audio'] sources += files('audio/out/ao_oss.c') @@@@ -894,7 +902,7 @@@@ if features['direct3d'] d48 1 a48 1 drm = dependency('libdrm', version: '>= 2.4.75', required: get_option('drm')) d54 1 a54 1 @@@@ -1744,7 +1752,7 @@@@ if get_option('cplayer') @