mpv Information
mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
built on Jan 1 1980 00:00:00
libplacebo version: v7.351.0
FFmpeg version: 7.1.1
FFmpeg library versions:
libavcodec 61.19.101
libavdevice 61.3.100
libavfilter 10.4.100
libavformat 61.7.100
libavutil 59.39.100
libswresample 5.3.100
libswscale 8.3.100
Other Information
- Linux version: NixOS 25.11 (Xantusia)
- Kernel Version: 6.12.31
- GPU Model: NVIDIA RTX 4060
- Mesa/GPU Driver Version: 575.57.08
- Window Manager and Version: KDE PLASMA 6.3.5
- Source of mpv: NIXPKGS
- Latest known working version: UNDEFINED
- Issue started after the following happened: UNDEFINED
Reproduction Steps
install MPV from NIXPKGs
add files i.e mpv.conf in /etc
MPV is fails to find the files in /etc
Expected Behavior
MPV is able to read and write files in /etc
Actual Behavior
MPV is unable to read or write files in /etc
Log File
[ 0.001][v][cplayer] mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
[ 0.001][v][cplayer] built on Jan 1 1980 00:00:00
[ 0.001][v][cplayer] libplacebo version: v7.351.0
[ 0.001][v][cplayer] FFmpeg version: 7.1.1
[ 0.001][v][cplayer] FFmpeg library versions:
[ 0.001][v][cplayer] libavcodec 61.19.101
[ 0.001][v][cplayer] libavdevice 61.3.100
[ 0.001][v][cplayer] libavfilter 10.4.100
[ 0.001][v][cplayer] libavformat 61.7.100
[ 0.001][v][cplayer] libavutil 59.39.100
[ 0.001][v][cplayer] libswresample 5.3.100
[ 0.001][v][cplayer] libswscale 8.3.100
[ 0.001][v][cplayer] Configuration:
[ 0.001][v][cplayer] List of enabled features: alsa build-date caca cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv javascript lcms2 libarchive libass libavdevice libbluray libdl libplacebo linux-fstatfs lua memfd-create memrchr openal pipewire posix posix-shm ppoll pthread-condattr-setclock pulse rubberband rubberband-3 uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vdpau vector vk-khr-display vt.h vulkan wayland wayland-protocols-1-32 wayland-protocols-1-38 wayland-protocols-1-39 wayland-protocols-1-41 x11 zimg zimg-st428 zlib
[ 0.001][v][cplayer] Command line options: '--script=/nix/store/0zj1wmqdiv0bfascz5mnrlb767h27kmc-visualizer-0-unstable-2025-04-12/share/mpv/scripts/visualizer.lua' '--script=/nix/store/xsbxz1d1yh6bdqgxs5z5l1hfhddq2w6y-mpv-thumbfast-0-unstable-2025-02-04/share/mpv/scripts/thumbfast.lua' '--script=/nix/store/y4dd1hvbg1nsjmqnkjdfx1b0ay8m5iz2-mpv_sponsorblock_minimal-0-unstable-2023-08-20/share/mpv/scripts/sponsorblock_minimal.lua' '--script=/nix/store/chh6izxc99rpkc97xsy48mgdvramjv0j-mpv-quality-menu-4.2.0/share/mpv/scripts/quality-menu.lua' '--script=/nix/store/7ahcn2zdg4sigpajmgllp0yxn18mcdb8-mpv-playlistmanager-0-unstable-2025-03-16/share/mpv/scripts/playlistmanager.lua' '--script=/nix/store/6lpmdnfiw0xlx3m3i5is4p9p35smc67w-mpv-mpris-1.1/share/mpv/scripts/mpris.so' '--script=/nix/store/2rp5h94cd4ai4liilkv89savi347p3ff-uosc-5.10.0/share/mpv/scripts/uosc' '--script=/nix/store/123j3bwijdaxjv2qkw5k3gwwwy6czlmf-memo-0-unstable-2024-09-03/share/mpv/scripts/memo.lua' '--script=/nix/store/2jwc7xphhvjvds8hpn4zg2wc08vlki3g-youtube-upnext-1.1/share/mpv/scripts/youtube-upnext.lua' '--script=/nix/store/apj0vy79scacjdsbm458619w7m4fnxxm-mpv-quack-0-unstable-2020-05-27/share/mpv/scripts/quack.lua' '--script=/nix/store/5gak862nkg2kir2grnz358vx1m32jiim-smart-copy-paste-2-0-unstable-2025-05-08/share/mpv/scripts/SmartCopyPaste_II.lua' '--gpu-debug' '--log-file=output.txt'
[ 0.001][v][cplayer] mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
[ 0.001][v][cplayer] built on Jan 1 1980 00:00:00
[ 0.001][v][cplayer] libplacebo version: v7.351.0
[ 0.001][v][cplayer] FFmpeg version: 7.1.1
[ 0.001][v][cplayer] FFmpeg library versions:
[ 0.001][v][cplayer] libavcodec 61.19.101
[ 0.001][v][cplayer] libavdevice 61.3.100
[ 0.001][v][cplayer] libavfilter 10.4.100
[ 0.001][v][cplayer] libavformat 61.7.100
[ 0.001][v][cplayer] libavutil 59.39.100
[ 0.001][v][cplayer] libswresample 5.3.100
[ 0.001][v][cplayer] libswscale 8.3.100
[ 0.001][v][cplayer] Configuration:
[ 0.001][v][cplayer] List of enabled features: alsa build-date caca cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-wayland drm dvbin dvdnav egl egl-drm egl-wayland egl-x11 ffmpeg ffnvcodec gbm gl glibc-thread-name glob glob-posix gpl iconv javascript lcms2 libarchive libass libavdevice libbluray libdl libplacebo linux-fstatfs lua memfd-create memrchr openal pipewire posix posix-shm ppoll pthread-condattr-setclock pulse rubberband rubberband-3 uchardet vaapi vaapi-drm vaapi-wayland vaapi-x11 vdpau vector vk-khr-display vt.h vulkan wayland wayland-protocols-1-32 wayland-protocols-1-38 wayland-protocols-1-39 wayland-protocols-1-41 x11 zimg zimg-st428 zlib
[ 0.001][d][global] home path: '' -> '/home/[USERNAME]/.config/mpv'
[ 0.001][d][global] user path: '~~home/' -> '/home/[USERNAME]/.config/mpv'
[ 0.001][d][global] user path: '~~old_home/' -> '/home/[USERNAME]/.mpv'
[ 0.001][d][global] config path: 'encoding-profiles.conf' -/-> '/home/[USERNAME]/.config/mpv/encoding-profiles.conf'
[ 0.001][d][global] config path: 'encoding-profiles.conf' -/-> '/home/[USERNAME]/.mpv/encoding-profiles.conf'
[ 0.001][d][global] config path: 'encoding-profiles.conf' -> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/encoding-profiles.conf'
[ 0.001][v][cplayer] Reading config file /nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/encoding-profiles.conf
[ 0.001][v][ifo_dvdnav] Opening /nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/encoding-profiles.conf
[ 0.001][v][bdmv/bluray] Opening /nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/encoding-profiles.conf
[ 0.001][v][file] Opening /nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/encoding-profiles.conf
[ 0.001][d][file] resize stream to 131072 bytes, drop 0 bytes
[ 0.001][d][file] Stream opened successfully.
[ 0.002][v][cplayer] Applying profile 'default'...
[ 0.002][d][global] config path: 'mpv.conf' -> '/home/[USERNAME]/.config/mpv/mpv.conf'
[ 0.002][d][global] config path: 'config' -/-> '/home/[USERNAME]/.config/mpv/config'
[ 0.002][d][global] config path: 'mpv.conf' -/-> '/home/[USERNAME]/.mpv/mpv.conf'
[ 0.002][d][global] config path: 'config' -/-> '/home/[USERNAME]/.mpv/config'
[ 0.002][d][global] config path: 'mpv.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/mpv.conf'
[ 0.002][d][global] config path: 'config' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/config'
[ 0.002][v][cplayer] Reading config file /home/[USERNAME]/.config/mpv/mpv.conf
[ 0.002][v][ifo_dvdnav] Opening /home/[USERNAME]/.config/mpv/mpv.conf
[ 0.002][v][bdmv/bluray] Opening /home/[USERNAME]/.config/mpv/mpv.conf
[ 0.002][v][file] Opening /home/[USERNAME]/.config/mpv/mpv.conf
[ 0.002][d][file] resize stream to 131072 bytes, drop 0 bytes
[ 0.002][d][file] Stream opened successfully.
[ 0.002][v][cplayer] Applying profile 'default'...
[ 0.002][v][cplayer] Setting option 'af' = 'lavfi=[dynaudnorm=f=75:g=25:p=0.55]' (flags = 4)
[ 0.002][v][cplayer] Setting option 'cache' = 'yes' (flags = 4)
[ 0.002][v][cplayer] Setting option 'cache-on-disk' = 'yes' (flags = 4)
[ 0.002][v][cplayer] Setting option 'cache-secs' = '3600' (flags = 4)
[ 0.003][v][cplayer] Setting option 'deband' = 'no' (flags = 4)
[ 0.003][v][cplayer] Setting option 'deband-grain' = '48' (flags = 4)
[ 0.003][v][cplayer] Setting option 'deband-iterations' = '4' (flags = 4)
[ 0.003][v][cplayer] Setting option 'demuxer-max-back-bytes' = '512M' (flags = 4)
[ 0.003][v][cplayer] Setting option 'demuxer-max-bytes' = '512M' (flags = 4)
[ 0.003][v][cplayer] Setting option 'dither-depth' = '8' (flags = 4)
[ 0.003][v][cplayer] Setting option 'geometry' = '70%' (flags = 4)
[ 0.003][v][cplayer] Setting option 'gpu-api' = 'opengl' (flags = 4)
[ 0.003][v][cplayer] Setting option 'gpu-context' = 'wayland' (flags = 4)
[ 0.003][v][cplayer] Setting option 'hwdec' = 'auto-safe' (flags = 4)
[ 0.003][v][cplayer] Setting option 'hwdec-codecs' = 'all' (flags = 4)
[ 0.003][v][cplayer] Setting option 'keep-open' = 'yes' (flags = 4)
[ 0.003][v][cplayer] Setting option 'osd-bar' = 'no' (flags = 4)
[ 0.003][v][cplayer] Setting option 'osd-font' = 'Manrope Medium' (flags = 4)
[ 0.003][v][cplayer] Setting option 'osd-font-size' = '20' (flags = 4)
[ 0.003][v][cplayer] Setting option 'osd-level' = '0' (flags = 4)
[ 0.003][v][cplayer] Setting option 'profile' = 'gpu-hq' (flags = 4)
[ 0.003][v][cplayer] Applying profile 'gpu-hq'...
[ 0.003][v][cplayer] Setting option 'profile' = 'high-quality' (flags = 4)
[ 0.003][v][cplayer] Applying profile 'high-quality'...
[ 0.003][v][cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4)
[ 0.003][v][cplayer] Setting option 'hdr-peak-percentile' = '99.995' (flags = 4)
[ 0.003][v][cplayer] Setting option 'hdr-contrast-recovery' = '0.30' (flags = 4)
[ 0.003][v][cplayer] Setting option 'screenshot-directory' = '/home/[USERNAME]/Picture/mpv' (flags = 4)
[ 0.003][v][cplayer] Setting option 'script-opts' = 'ytdl_hook-ytdl_path=yt-dlp' (flags = 4)
[ 0.003][v][cplayer] Setting option 'stream-buffer-size' = '32MiB' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-ass-override' = 'force' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-ass-style-overrides' = 'playresx=1920,playresy=1080,Kerning=yes' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-auto' = 'fuzzy' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-bold' = 'yes' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-border-color' = '#FF000000' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-border-size' = '2.400000' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-color' = '#FFFFFF' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-font' = 'Manrope Medium' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-font-size' = '30' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-pos' = '90' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-shadow-color' = '#A0000000' (flags = 4)
[ 0.003][v][cplayer] Setting option 'sub-shadow-offset' = '0.750000' (flags = 4)
[ 0.003][v][cplayer] Setting option 'title' = '${media-title} - mpv' (flags = 4)
[ 0.003][v][cplayer] Setting option 'video-sync' = 'display-resample' (flags = 4)
[ 0.003][v][cplayer] Setting option 'vo' = 'gpu-next' (flags = 4)
[ 0.003][v][cplayer] Setting option 'ytdl-format' = 'bestvideo[height<=?1080]+bestaudio/best' (flags = 4)
[ 0.003][v][cplayer] Setting option 'ytdl-raw-options' = 'ignore-config=,sub-lang="en,ar",write-sub=,write-auto-sub=,force-ipv4=' (flags = 4)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/0zj1wmqdiv0bfascz5mnrlb767h27kmc-visualizer-0-unstable-2025-04-12/share/mpv/scripts/visualizer.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/xsbxz1d1yh6bdqgxs5z5l1hfhddq2w6y-mpv-thumbfast-0-unstable-2025-02-04/share/mpv/scripts/thumbfast.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/y4dd1hvbg1nsjmqnkjdfx1b0ay8m5iz2-mpv_sponsorblock_minimal-0-unstable-2023-08-20/share/mpv/scripts/sponsorblock_minimal.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/chh6izxc99rpkc97xsy48mgdvramjv0j-mpv-quality-menu-4.2.0/share/mpv/scripts/quality-menu.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/7ahcn2zdg4sigpajmgllp0yxn18mcdb8-mpv-playlistmanager-0-unstable-2025-03-16/share/mpv/scripts/playlistmanager.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/6lpmdnfiw0xlx3m3i5is4p9p35smc67w-mpv-mpris-1.1/share/mpv/scripts/mpris.so' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/2rp5h94cd4ai4liilkv89savi347p3ff-uosc-5.10.0/share/mpv/scripts/uosc' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/123j3bwijdaxjv2qkw5k3gwwwy6czlmf-memo-0-unstable-2024-09-03/share/mpv/scripts/memo.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/2jwc7xphhvjvds8hpn4zg2wc08vlki3g-youtube-upnext-1.1/share/mpv/scripts/youtube-upnext.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/apj0vy79scacjdsbm458619w7m4fnxxm-mpv-quack-0-unstable-2020-05-27/share/mpv/scripts/quack.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'scripts-append' = '/nix/store/5gak862nkg2kir2grnz358vx1m32jiim-smart-copy-paste-2-0-unstable-2025-05-08/share/mpv/scripts/SmartCopyPaste_II.lua' (flags = 8)
[ 0.003][v][cplayer] Setting option 'gpu-debug' = '' (flags = 8)
[ 0.003][v][cplayer] Setting option 'log-file' = 'output.txt' (flags = 8)
[ 0.005][d][global] config path: 'input.conf' -> '/home/[USERNAME]/.config/mpv/input.conf'
[ 0.005][d][global] config path: 'input.conf' -/-> '/home/[USERNAME]/.mpv/input.conf'
[ 0.005][d][global] config path: 'input.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/input.conf'
[ 0.005][v][ifo_dvdnav] Opening /home/[USERNAME]/.config/mpv/input.conf
[ 0.005][v][bdmv/bluray] Opening /home/[USERNAME]/.config/mpv/input.conf
[ 0.005][v][file] Opening /home/[USERNAME]/.config/mpv/input.conf
[ 0.005][d][file] resize stream to 33554432 bytes, drop 0 bytes
[ 0.005][d][file] Stream opened successfully.
[ 0.005][v][input] Parsing input config file /home/[USERNAME]/.config/mpv/input.conf
[ 0.005][v][input] Input config file /home/[USERNAME]/.config/mpv/input.conf parsed: 12 binds
[ 0.005][d][osc] Loading lua script @osc.lua...
[ 0.005][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[ 0.005][d][stats] Loading lua script @stats.lua...
[ 0.005][d][console] Loading lua script @console.lua...
[ 0.005][d][osc] loading mp.defaults
[ 0.005][d][auto_profiles] Loading lua script @auto_profiles.lua...
[ 0.005][d][ytdl_hook] loading mp.defaults
[ 0.005][d][select] Loading lua script @select.lua...
[ 0.005][d][stats] loading mp.defaults
[ 0.005][d][console] loading mp.defaults
[ 0.005][d][positioning] Loading lua script @positioning.lua...
[ 0.005][d][commands] Loading lua script @commands.lua...
[ 0.005][d][auto_profiles] loading mp.defaults
[ 0.005][d][select] loading mp.defaults
[ 0.005][d][positioning] loading mp.defaults
[ 0.005][d][commands] loading mp.defaults
[ 0.006][d][stats] loading @stats.lua
[ 0.006][d][osc] loading @osc.lua
[ 0.006][d][ytdl_hook] loading @ytdl_hook.lua
[ 0.006][d][auto_profiles] loading @auto_profiles.lua
[ 0.006][d][select] loading @select.lua
[ 0.006][d][positioning] loading @positioning.lua
[ 0.007][d][commands] loading @commands.lua
[ 0.007][d][positioning] reading options for positioning
[ 0.007][d][global] config path: 'script-opts/positioning.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/positioning.conf'
[ 0.007][d][global] config path: 'script-opts/positioning.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/positioning.conf'
[ 0.007][d][global] config path: 'script-opts/positioning.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/positioning.conf'
[ 0.007][d][positioning] script-opts/positioning.conf not found.
[ 0.007][d][global] config path: 'lua-settings/positioning.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/positioning.conf'
[ 0.007][d][global] config path: 'lua-settings/positioning.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/positioning.conf'
[ 0.007][d][global] config path: 'lua-settings/positioning.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/positioning.conf'
[ 0.007][d][positioning] lua-settings/positioning.conf not found.
[ 0.007][d][ytdl_hook] reading options for ytdl_hook
[ 0.007][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/ytdl_hook.conf'
[ 0.007][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/ytdl_hook.conf'
[ 0.007][d][global] config path: 'script-opts/ytdl_hook.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/ytdl_hook.conf'
[ 0.007][d][ytdl_hook] script-opts/ytdl_hook.conf not found.
[ 0.007][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/ytdl_hook.conf'
[ 0.007][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/ytdl_hook.conf'
[ 0.007][d][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/ytdl_hook.conf'
[ 0.007][d][ytdl_hook] lua-settings/ytdl_hook.conf not found.
[ 0.008][d][select] reading options for select
[ 0.008][d][global] config path: 'script-opts/select.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/select.conf'
[ 0.008][d][global] config path: 'script-opts/select.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/select.conf'
[ 0.008][d][global] config path: 'script-opts/select.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/select.conf'
[ 0.008][d][select] script-opts/select.conf not found.
[ 0.008][d][global] config path: 'lua-settings/select.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/select.conf'
[ 0.008][d][global] config path: 'lua-settings/select.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/select.conf'
[ 0.008][d][global] config path: 'lua-settings/select.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/select.conf'
[ 0.008][d][select] lua-settings/select.conf not found.
[ 0.008][d][stats] reading options for stats
[ 0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/stats.conf'
[ 0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/stats.conf'
[ 0.008][d][global] config path: 'script-opts/stats.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/stats.conf'
[ 0.008][d][stats] script-opts/stats.conf not found.
[ 0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/stats.conf'
[ 0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/stats.conf'
[ 0.008][d][global] config path: 'lua-settings/stats.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/stats.conf'
[ 0.008][d][stats] lua-settings/stats.conf not found.
[ 0.011][v][clipboard/wayland] Registered interface wl_seat at version 8
[ 0.011][v][clipboard/wayland] Compositor doesn't support the ext_data_control_manager_v1 protocol!
[ 0.011][v][clipboard/wayland] Deregistering seat 0xa
[ 0.011][v][clipboard] Initialized vo clipboard backend.
[ 0.011][i][cplayer] mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
[ 0.011][i][cplayer] built on Jan 1 1980 00:00:00
[ 0.011][i][cplayer] libplacebo version: v7.351.0
[ 0.011][i][cplayer] FFmpeg version: 7.1.1
[ 0.011][i][cplayer] FFmpeg library versions:
[ 0.011][i][cplayer] libavcodec 61.19.101
[ 0.011][i][cplayer] libavdevice 61.3.100
[ 0.011][i][cplayer] libavfilter 10.4.100
[ 0.011][i][cplayer] libavformat 61.7.100
[ 0.011][i][cplayer] libavutil 59.39.100
[ 0.011][i][cplayer] libswresample 5.3.100
[ 0.011][i][cplayer] libswscale 8.3.100
[ 0.011][i][cplayer] Usage: mpv [options] [url|path/]filename
[ 0.011][i][cplayer]
[ 0.011][i][cplayer] Basic options:
[ 0.011][i][cplayer] --start= seek to given (percent, seconds, or hh:mm:ss) position
[ 0.011][i][cplayer] --no-audio do not play sound
[ 0.011][i][cplayer] --no-video do not play video
[ 0.011][i][cplayer] --fs fullscreen playback
[ 0.011][i][cplayer] --sub-file= specify subtitle file to use
[ 0.011][i][cplayer] --playlist= specify playlist file
[ 0.011][i][cplayer]
[ 0.011][i][cplayer] --list-options list all mpv options
[ 0.011][i][cplayer] --h= print options which contain the given string in their name
[ 0.011][d][cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"]
[ 0.012][d][cplayer] Run command: define-section, flags=64, args=[name="showhide_wc", contents="mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", flags="force"]
[ 0.012][d][positioning] Destroying client handle...
[ 0.012][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.012][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.012][d][ytdl_hook] Destroying client handle...
[ 0.012][d][select] Destroying client handle...
[ 0.012][d][console] loading @console.lua
[ 0.012][d][cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-binding osc/__keybinding5\nmbtn_mid script-binding osc/__keybinding6\nmbtn_right script-binding osc/__keybinding7\nshift+mbtn_left script-binding osc/__keybinding8\nwheel_up script-binding osc/__keybinding9\nwheel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_right_dbl ignore\n", flags="force"]
[ 0.012][d][commands] reading options for commands
[ 0.012][d][stats] Destroying client handle...
[ 0.012][d][global] config path: 'script-opts/commands.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/commands.conf'
[ 0.012][d][global] config path: 'script-opts/commands.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/commands.conf'
[ 0.012][d][global] config path: 'script-opts/commands.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/commands.conf'
[ 0.012][d][commands] script-opts/commands.conf not found.
[ 0.012][d][global] config path: 'lua-settings/commands.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/commands.conf'
[ 0.012][d][global] config path: 'lua-settings/commands.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/commands.conf'
[ 0.012][d][global] config path: 'lua-settings/commands.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/commands.conf'
[ 0.012][d][commands] lua-settings/commands.conf not found.
[ 0.012][d][cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""]
[ 0.012][d][cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"]
[ 0.012][d][cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""]
[ 0.012][d][commands] Destroying client handle...
[ 0.012][d][auto_profiles] Destroying client handle...
[ 0.012][d][osc] reading options for osc
[ 0.012][d][global] config path: 'script-opts/osc.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/osc.conf'
[ 0.012][d][global] config path: 'script-opts/osc.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/osc.conf'
[ 0.012][d][global] config path: 'script-opts/osc.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/osc.conf'
[ 0.012][d][osc] script-opts/osc.conf not found.
[ 0.012][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/osc.conf'
[ 0.012][d][global] config path: 'lua-settings/osc.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/osc.conf'
[ 0.012][d][global] config path: 'lua-settings/osc.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/osc.conf'
[ 0.012][d][osc] lua-settings/osc.conf not found.
[ 0.013][v][cplayer] Set property: user-data/osc/visibility="auto" -> 1
[ 0.013][d][cplayer] Run command: disable-section, flags=64, args=[name="input"]
[ 0.013][d][cplayer] Run command: disable-section, flags=64, args=[name="window-controls"]
[ 0.013][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.013][d][cplayer] Run command: del, flags=64, args=[name="user-data/osc"]
[ 0.013][d][osc] Destroying client handle...
[ 0.014][d][console] reading options for console
[ 0.014][d][global] config path: 'script-opts/console.conf' -/-> '/home/[USERNAME]/.config/mpv/script-opts/console.conf'
[ 0.014][d][global] config path: 'script-opts/console.conf' -/-> '/home/[USERNAME]/.mpv/script-opts/console.conf'
[ 0.014][d][global] config path: 'script-opts/console.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/script-opts/console.conf'
[ 0.014][d][console] script-opts/console.conf not found.
[ 0.014][d][global] config path: 'lua-settings/console.conf' -/-> '/home/[USERNAME]/.config/mpv/lua-settings/console.conf'
[ 0.014][d][global] config path: 'lua-settings/console.conf' -/-> '/home/[USERNAME]/.mpv/lua-settings/console.conf'
[ 0.014][d][global] config path: 'lua-settings/console.conf' -/-> '/nix/store/vxamf5vhr2ih51gd9sd1d4hbz4gwcg21-mpv-0.40.0/etc/mpv/lua-settings/console.conf'
[ 0.014][d][console] lua-settings/console.conf not found.
[ 0.014][d][cplayer] Run command: del, flags=64, args=[name="user-data/mpv/console"]
[ 0.014][d][console] Destroying client handle...
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
[x] I tested with the latest mpv version to validate that the issue is not already fixed.
[x] I provided all required information including system and mpv version.
[x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
[x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
[x] I attached the full, untruncated log file.
[x] I attached the backtrace in the case of a crash.
not fixable on Nixpkg's end without patching the source code: https://github.com/NixOS/nixpkgs/issues/397333#issuecomment-2789358105
install MPV from NIXPKGs
Sound like NixOS specific issue should be fixed in their package. Or if it is possible such package can be upstreamed, but I don't see the responsibility on mpv end to support this. Patches welcome, I don't even know what we would need to change.
The problem is basically that mpv conflates it's install root with the root where to look for config files. So an mpv installed at /nix/store/33jysgc278kkbs678ghmmg6ca3w2yri9-mpv-0.40.0/bin/mpv will try to read its config files from /nix/store/33jysgc278kkbs678ghmmg6ca3w2yri9-mpv-0.40.0/etc/mpv/mpv.conf rather than /etc/mpv/mpv.conf.
So Nix would need some build option to either set the root used for runtime config files or just update mpv to always read it's global config files from /etc not some build/install root.
Shouldn't this work if you just set -Dsysconfidir to explicitly /etc? The installation location of etc/encoding-profiles.conf is bugged though.
I haven't looked closely but according to https://github.com/NixOS/nixpkgs/issues/397333#issuecomment-2789374959 I think that should work once the encoding-profiles bug is fixed. So hopefully it should be good now.
Well with -Dsysconfdir=/etc, encoding-profiles,conf should have already been installed in the right place before (/etc/mpv). The path would be wrong if the option was set to some non-absolute path like something one of the BSDs use.
I looked into it and the problem is as described earlier and hasn't changed. If we don't set sysconfdir it tries to read /etc out of the install prefix at runtime. But if it is set to where it should read at runtime (/etc) then it tries to write /etc/mpv/encoding-profiles.conf doing the build. Like most package managers Nix doesn't want to write to global locations during a build.
Is this file necessary? Since it is being written to /etc I would expect not. Maybe there can be a configuration to not install example/template configs?
If it is necessary it may be nice to have a way to install it to /usr/ (or wherever prefix is) and have it fall back to that location if /etc doesn't contain something.
Huh, Nix doesn't use the --destdir option to install to some local directory for the package manager? Surely we can't be the only thing out there that ships global configuration files.
That said, this file isn't really needed for anything. It's legacy stuff and really could just be shipped as an example config.
No, for Nix the installtime and runtime location is the same so --destdir doesn't apply.
That said, this file isn't really needed for anything. It's legacy stuff and really could just be shipped as an example config.
Good to know. I suspected this so suggested just excluding it as a workaround . So if that should work well we can probably do that. We can find a way to make this file available to users who do want it, and they can add it to their /etc manually.
Huh that seems weird. But regardless I just merged #16527 which stops installing the file in /etc by default. So hopefully it should finally all just work for Nix with that patch.
Thanks, that seems like the ideal solution.