[525.53] mpv does not work with NVDEC

Playing H264 or H265 video in mpv with NVDEC enabled doesn’t work: the video player window doesn’t open, the player exits after printing the list of audio/video streams in the file and no errors.

Steps to reproduce:

  1. Put this content into ~/.config/mpv/mpv.conf:
vd-lavc-threads=8
hwdec=nvdec
ao=pulse
vo=gpu
deband=yes
scale=ewa_lanczossharp
cache=yes
cache-pause-initial=yes
cache-pause-wait=2
demuxer-readahead-secs=30
  1. Play a video with H264 or H265 content by running mpv file.mp4 in the console.

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-52-lowlatency (64-bit)
mpv: 0.34.1
Graphics Platform: X11
Processors: 16 × 12th Gen Intel® Core™ i7-12700K
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2

This is a regression in 525.53. 515.65.01 and 520.56.06 work as expected on the same system, though with 520.56.06 mpv gives this warning on the console:

[vo/gpu/opengl] before video texture creation: OpenGL error INVALID_OPERATION.

It does proceed to open the player window and play the video.

nvidia-bug-report.log.gz (1.3 MB)

works for me

└───╼  mpv -v BEYOND\ THE\ EARTH\ \(STARDOM\ Remix\)\ _\ BEMANI\ Sound\ Team\ \'Sota\ F.\'-mvxGsuTf2CY.mkv 
[cplayer] Command line options: '-v' 'BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv'
[cplayer] mpv 0.35.0-2-g1e9a2cbebf Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.42.100
[cplayer]    libavcodec      59.52.102
[cplayer]    libavformat     59.34.101
[cplayer]    libswscale      6.8.112
[cplayer]    libavfilter     8.50.100
[cplayer]    libswresample   4.9.100
[cplayer] FFmpeg version: N-109078-g2d25f33a7e
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --htmldir=/usr/share/doc/mpv/html --disable-build-date --lua=luajit --enable-cdda --enable-dvbin --enable-dvdnav --enable-html-build --enable-libarchive --enable-libmpv-shared --enable-openal --enable-sdl2 --enable-shaderc --enable-vulkan --enable-gl-x11 --enable-egl --enable-egl-x11 --enable-egl-drm --enable-gl-wayland --enable-drm --enable-gbm --enable-wayland --enable-vdpau --enable-vdpau-gl-x11 --enable-vaapi --enable-vaapi-x11 --enable-vaapi-wayland --enable-vaapi-drm --enable-vaapi-x-egl --enable-cuda-hwaccel --enable-cuda-interop --color=yes
[cplayer] List of enabled features: alsa asm av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo libplacebo-next librt linux-fstatfs linux-input-event-codes lua luajit memfd_create openal optimize pipewire plain-gl posix posix-or-mingw pthreads pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-shared sixel spirv-cross spirv-cross-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vt.h vulkan wayland wayland-protocols wayland-protocols-1-24 x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /etc/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'gpu-api' = 'vulkan' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'hwdec' = 'nvdec' (flags = 4)
[cplayer] Setting option 'gpu-context' = 'waylandvk' (flags = 4)
[cplayer] Setting option 'spirv-compiler' = 'auto' (flags = 4)
[cplayer] Setting option 'audio-device' = 'pulse' (flags = 4)
[cplayer] Setting option 'audio-channels' = 'auto' (flags = 4)
[cplayer] Setting option 'screenshot-format' = 'png' (flags = 4)
[cplayer] Setting option 'screenshot-high-bit-depth' = 'yes' (flags = 4)
[cplayer] Setting option 'hidpi-window-scale' = 'no' (flags = 4)
[cplayer] Setting option 'cdrom-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'dvd-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'bluray-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'script-opts' = 'osc-layout=bottombar,osc-timems=yes' (flags = 4)
[cplayer] Setting option 'demuxer-mkv-subtitle-preroll' = '' (flags = 4)
[cplayer] Setting option 'sub-ass-vsfilter-blur-compat' = 'yes' (flags = 4)
[cplayer] Setting option 'scripts-append' = '/usr/share/mpv/scripts/mpris.so' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 0.16.0-60-g3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Set property: shared-script-properties -> 1
[ifo_dvdnav] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[bdmv/bluray] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[file] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[demux] Trying demuxers for level=normal.
[cplayer] Set property: shared-script-properties -> 1
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 0.16.0-60-g3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[demux] Detected file format: Matroska
[cplayer] Opening done: BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (vp9 1920x1440 29.970fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vo/gpu/vulkan] Initializing GPU context 'waylandvk'
[vo/gpu/libplacebo] Initialized libplacebo v5.229.1-28-g27e38da (API v233)
[vo/gpu/libplacebo] Creating vulkan instance with extensions:
[vo/gpu/libplacebo]     VK_KHR_get_physical_device_properties2
[vo/gpu/libplacebo]     VK_KHR_surface
[vo/gpu/libplacebo]     VK_KHR_external_memory_capabilities
[vo/gpu/libplacebo]     VK_KHR_external_semaphore_capabilities
[vo/gpu/libplacebo]     VK_KHR_get_surface_capabilities2
[vo/gpu/libplacebo]     VK_KHR_portability_enumeration
[vo/gpu/libplacebo]     VK_KHR_surface
[vo/gpu/libplacebo]     VK_KHR_wayland_surface
[vo/gpu/wayland] Registered for protocol wl_compositor
[vo/gpu/wayland] Registered for protocol xdg_wm_base
[vo/gpu/wayland] Registered for protocol zxdg_decoration_manager_v1
[vo/gpu/wayland] Registered for protocol wp_viewporter
[vo/gpu/wayland] Registered for protocol wl_shm
[vo/gpu/wayland] Registered for protocol wl_seat
[vo/gpu/wayland] Registered for protocol wl_data_device_manager
[vo/gpu/wayland] Registered for protocol zwp_idle_inhibit_manager_v1
[vo/gpu/wayland] Registered for protocol wl_subcompositor
[vo/gpu/wayland] Registered for protocol zwp_linux_dmabuf_v1
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Compositor doesn't support the wp_presentation protocol!
[vo/gpu/wayland] Registered output Ancor Communications Inc ASUS PB287Q/108941 (0x34):
[vo/gpu/wayland]        x: 0px, y: 0px
[vo/gpu/wayland]        w: 3840px (620mm), h: 2160px (340mm)
[vo/gpu/wayland]        scale: 1
[vo/gpu/wayland]        Hz: 59.997000
[vo/gpu/wayland] Enabling server decorations
[vo/gpu/libplacebo] Probing for vulkan devices:
[vo/gpu/libplacebo]     GPU 0: NVIDIA GeForce GTX 1070 Ti (discrete)
[vo/gpu/libplacebo]            uuid: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo] Vulkan device properties:
[vo/gpu/libplacebo]     Device Name: NVIDIA GeForce GTX 1070 Ti
[vo/gpu/libplacebo]     Device ID: 10de:1b82
[vo/gpu/libplacebo]     Device UUID: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo]     Driver version: 834d4000
[vo/gpu/libplacebo]     API version: 1.3.224
[vo/gpu/libplacebo] Using async transfer (queue 1)
[vo/gpu/libplacebo] Using async compute (queue 2)
[vo/gpu/libplacebo] Creating vulkan device with extensions:
[vo/gpu/libplacebo]     VK_KHR_swapchain
[vo/gpu/libplacebo]     VK_KHR_swapchain
[vo/gpu/libplacebo]     VK_KHR_push_descriptor
[vo/gpu/libplacebo]     VK_KHR_external_memory_fd
[vo/gpu/libplacebo]     VK_EXT_external_memory_dma_buf
[vo/gpu/libplacebo]     VK_EXT_external_memory_host
[vo/gpu/libplacebo]     VK_KHR_external_semaphore_fd
[vo/gpu/libplacebo]     VK_EXT_pci_bus_info
[vo/gpu/libplacebo]     VK_EXT_image_drm_format_modifier
[vo/gpu/libplacebo] Memory heaps supported by device:
[vo/gpu/libplacebo]     0: flags 0x1 size 8192M
[vo/gpu/libplacebo]     1: flags 0x0 size   94G
[vo/gpu/libplacebo]     2: flags 0x1 size  246M
[vo/gpu/libplacebo] Memory summary:     0 used     0 res     0 alloc, efficiency 100.00%, utilization 100.00%
[vo/gpu/libplacebo] shaderc SPIR-V version 1.6 rev 1
[vo/gpu/libplacebo] Initialized SPIR-V compiler 'shaderc'
[vo/gpu/libplacebo] DRM format modifier LINEAR of format rgba8 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgra8 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr565 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr5a1 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format rgb10a2 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr10a2 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] GPU information:
[vo/gpu/libplacebo]     GLSL version: 450 (vulkan)
[vo/gpu/libplacebo]       max_shmem_size:            49152
[vo/gpu/libplacebo]       max_group_threads:         1536
[vo/gpu/libplacebo]       max_group_size[0]:         1536
[vo/gpu/libplacebo]       max_group_size[1]:         1024
[vo/gpu/libplacebo]       max_group_size[2]:         64
[vo/gpu/libplacebo]       subgroup_size:             32
[vo/gpu/libplacebo]       min_gather_offset:         -32
[vo/gpu/libplacebo]       max_gather_offset:         31
[vo/gpu/libplacebo]     Limits:
[vo/gpu/libplacebo]       thread_safe:               1
[vo/gpu/libplacebo]       callbacks:                 1
[vo/gpu/libplacebo]       max_buf_size:              18446744073709551615
[vo/gpu/libplacebo]       max_ubo_size:              65536
[vo/gpu/libplacebo]       max_ssbo_size:             4294967295
[vo/gpu/libplacebo]       max_vbo_size:              18446744073709551615
[vo/gpu/libplacebo]       max_mapped_size:           18446744073709551615
[vo/gpu/libplacebo]       max_buffer_texels:         134217728
[vo/gpu/libplacebo]       align_host_ptr:            4096
[vo/gpu/libplacebo]       max_tex_1d_dim:            32768
[vo/gpu/libplacebo]       max_tex_2d_dim:            32768
[vo/gpu/libplacebo]       max_tex_3d_dim:            16384
[vo/gpu/libplacebo]       blittable_1d_3d:           1
[vo/gpu/libplacebo]       buf_transfer:              1
[vo/gpu/libplacebo]       align_tex_xfer_pitch:      1
[vo/gpu/libplacebo]       align_tex_xfer_offset:     4
[vo/gpu/libplacebo]       max_variable_comps:        0
[vo/gpu/libplacebo]       max_constants:             18446744073709551615
[vo/gpu/libplacebo]       max_pushc_size:            256
[vo/gpu/libplacebo]       align_vertex_stride:       1
[vo/gpu/libplacebo]       max_dispatch[0]:           2147483647
[vo/gpu/libplacebo]       max_dispatch[1]:           65535
[vo/gpu/libplacebo]       max_dispatch[2]:           65535
[vo/gpu/libplacebo]       fragment_queues:           1
[vo/gpu/libplacebo]       compute_queues:            1
[vo/gpu/libplacebo]     External API interop:
[vo/gpu/libplacebo]       UUID: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo]       PCI: 0000:03:00:0
[vo/gpu/libplacebo]       buf export caps: 0x19
[vo/gpu/libplacebo]       buf import caps: 0x19
[vo/gpu/libplacebo]       tex export caps: 0x11
[vo/gpu/libplacebo]       tex import caps: 0x11
[vo/gpu/libplacebo]       sync export caps: 0x1
[vo/gpu/libplacebo]       sync import caps: 0x0
[vo/gpu/libplacebo] Available surface configurations:
[vo/gpu/libplacebo]     0: VK_FORMAT_B8G8R8A8_UNORM                 VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu/libplacebo] Picked surface configuration 0: VK_FORMAT_B8G8R8A8_UNORM + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vd] Container reported FPS: 29.970031
[vd] Codec list:
[vd]     vp9 - Google VP9
[vd]     vp9_v4l2m2m (vp9) - V4L2 mem2mem VP9 decoder wrapper
[vd]     vp9_cuvid (vp9) - Nvidia CUVID VP9 decoder
[vd] Opening decoder vp9
[vd] Looking at hwdec vp9-nvdec...
[vo/gpu] Loading hwdec drivers for format: 'cuda'
[vo/gpu] Loading hwdec driver 'cuda'
[vd] Trying hardware decoding via vp9-nvdec.
[vd] Selected codec: vp9 (Google VP9)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: cuda vaapi vdpau yuv420p
[vd] Codec profile: Profile 0 (0x0)
[vd] Requesting pixfmt 'cuda' from decoder.
[vd] Using hardware decoding (nvdec).
[vd] Decoder format: 1920x1440 [0:1] cuda[nv12] bt.709/auto/auto/limited/auto CL=unknown
[vd] Using container aspect ratio.
[vf] [in] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[af] [in] 44100Hz stereo 2ch floatp
[af] [userspeed] 44100Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 44100Hz stereo 2ch floatp
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 44100 Hz, stereo channels, floatp
[ao/pulse] Library version: 16.1.0
[ao/pulse] Proto: 35
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4410 samples.
[ao/pulse] using soft-buffer of 8820 samples.
[cplayer] AO: [pulse] 44100Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 44100Hz stereo floatp -> 44100Hz stereo float
[af] [out] 44100Hz stereo 2ch float
[cplayer] VO: [gpu] 1920x1440 cuda[nv12]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/wayland] Reconfiguring!
[vo/gpu] Resize: 1920x1440
[vo/gpu] Window size: 1920x1440 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1440 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1440 -> (0, 0) 1920x1440
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu/wayland] Handling resize on the vk side
[vo/gpu] Resize: 1920x1440
[vo/gpu] Window size: 1920x1440 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1440 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1440 -> (0, 0) 1920x1440
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu/libplacebo] Spent 120.145 ms translating SPIR-V (slow!)
[vo/gpu/wayland] Surface entered output Ancor Communications Inc ASUS PB287Q/108941 (0x34), scale = 1
[vo/gpu/wayland] Given DND offer with mime type text/plain;charset=utf-8
[vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
[cplayer] first video frame after restart shown
[vo/gpu] Assuming 59.997000 FPS for display sync.
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000, audio=playing, video=playing
[vo/gpu/wayland] Enabling idle inhibitor
[statusline] AV: 00:00:00 / 00:02:09 (0%) A-V:  0.000
[ao/pulse] starting AO
[statusline] AV: 00:00:00 / 00:02:09 (0%) A-V:  0.000
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[statusline] AV: 00:00:00 / 00:02:09 (0%) A-V:  0.000

You seem to be running Wayland, I’m running X11.

let me check tomorrow in xorg

same with Xorg

└───╼  mpv -v BEYOND\ THE\ EARTH\ \(STARDOM\ Remix\)\ _\ BEMANI\ Sound\ Team\ \'Sota\ F.\'-mvxGsuTf2CY.mkv 
[cplayer] Command line options: '-v' 'BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv'
[cplayer] mpv 0.35.0-2-g1e9a2cbebf Copyright © 2000-2022 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       57.42.100
[cplayer]    libavcodec      59.52.102
[cplayer]    libavformat     59.34.101
[cplayer]    libswscale      6.8.112
[cplayer]    libavfilter     8.50.100
[cplayer]    libswresample   4.9.100
[cplayer] FFmpeg version: N-109078-g2d25f33a7e
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --htmldir=/usr/share/doc/mpv/html --disable-build-date --lua=luajit --enable-cdda --enable-dvbin --enable-dvdnav --enable-html-build --enable-libarchive --enable-libmpv-shared --enable-openal --enable-sdl2 --enable-shaderc --enable-vulkan --enable-gl-x11 --enable-egl --enable-egl-x11 --enable-egl-drm --enable-gl-wayland --enable-drm --enable-gbm --enable-wayland --enable-vdpau --enable-vdpau-gl-x11 --enable-vaapi --enable-vaapi-x11 --enable-vaapi-wayland --enable-vaapi-drm --enable-vaapi-x-egl --enable-cuda-hwaccel --enable-cuda-interop --color=yes
[cplayer] List of enabled features: alsa asm av-channel-layout caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo libplacebo-next librt linux-fstatfs linux-input-event-codes lua luajit memfd_create openal optimize pipewire plain-gl posix posix-or-mingw pthreads pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc shaderc-shared sixel spirv-cross spirv-cross-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vt.h vulkan wayland wayland-protocols wayland-protocols-1-24 x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /etc/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'gpu-api' = 'vulkan' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'hwdec' = 'nvdec' (flags = 4)
[cplayer] Setting option 'gpu-context' = 'x11vk' (flags = 4)
[cplayer] Setting option 'spirv-compiler' = 'auto' (flags = 4)
[cplayer] Setting option 'audio-device' = 'pulse' (flags = 4)
[cplayer] Setting option 'audio-channels' = 'auto' (flags = 4)
[cplayer] Setting option 'screenshot-format' = 'png' (flags = 4)
[cplayer] Setting option 'screenshot-high-bit-depth' = 'yes' (flags = 4)
[cplayer] Setting option 'hidpi-window-scale' = 'no' (flags = 4)
[cplayer] Setting option 'cdrom-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'dvd-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'bluray-device' = '/dev/cdrom' (flags = 4)
[cplayer] Setting option 'script-opts' = 'osc-layout=bottombar,osc-timems=yes' (flags = 4)
[cplayer] Setting option 'demuxer-mkv-subtitle-preroll' = '' (flags = 4)
[cplayer] Setting option 'sub-ass-vsfilter-blur-compat' = 'yes' (flags = 4)
[cplayer] Setting option 'scripts-append' = '/usr/share/mpv/scripts/mpris.so' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 0.16.0-60-g3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Set property: shared-script-properties -> 1
[ifo_dvdnav] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[cplayer] Set property: shared-script-properties -> 1
[osd/libass] libass API version: 0x1600010
[osd/libass] libass source: commit: 0.16.0-60-g3df19c2e809b16c9cf7c925fa3bb573e2e6f4fdd
[osd/libass] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 5.3.1 (COMPLEX)
[osd/libass] Setting up fonts...
[bdmv/bluray] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[file] Opening BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: BEYOND THE EARTH (STARDOM Remix) _ BEMANI Sound Team 'Sota F.'-mvxGsuTf2CY.mkv
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (vp9 1920x1440 29.970fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vo/gpu/vulkan] Initializing GPU context 'x11vk'
[vo/gpu/libplacebo] Initialized libplacebo v5.229.1-28-g27e38da (API v233)
[vo/gpu/libplacebo] Creating vulkan instance with extensions:
[vo/gpu/libplacebo]     VK_KHR_get_physical_device_properties2
[vo/gpu/libplacebo]     VK_KHR_surface
[vo/gpu/libplacebo]     VK_KHR_external_memory_capabilities
[vo/gpu/libplacebo]     VK_KHR_external_semaphore_capabilities
[vo/gpu/libplacebo]     VK_KHR_get_surface_capabilities2
[vo/gpu/libplacebo]     VK_KHR_portability_enumeration
[vo/gpu/libplacebo]     VK_KHR_surface
[vo/gpu/libplacebo]     VK_KHR_xlib_surface
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] Display 0 (DP-0): [0, 0, 3840, 2160] @ 59.996625 FPS
[vo/gpu/x11] Current display FPS: 59.996625
[vo/gpu/x11] The XPresent extension was found.
[vo/gpu/x11] XPresent disabled.
[vo/gpu/libplacebo] Probing for vulkan devices:
[vo/gpu/libplacebo]     GPU 0: NVIDIA GeForce GTX 1070 Ti (discrete)
[vo/gpu/libplacebo]            uuid: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo] Vulkan device properties:
[vo/gpu/libplacebo]     Device Name: NVIDIA GeForce GTX 1070 Ti
[vo/gpu/libplacebo]     Device ID: 10de:1b82
[vo/gpu/libplacebo]     Device UUID: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo]     Driver version: 834d4000
[vo/gpu/libplacebo]     API version: 1.3.224
[vo/gpu/libplacebo] Using async transfer (queue 1)
[vo/gpu/libplacebo] Using async compute (queue 2)
[vo/gpu/libplacebo] Creating vulkan device with extensions:
[vo/gpu/libplacebo]     VK_KHR_swapchain
[vo/gpu/libplacebo]     VK_KHR_swapchain
[vo/gpu/libplacebo]     VK_KHR_push_descriptor
[vo/gpu/libplacebo]     VK_KHR_external_memory_fd
[vo/gpu/libplacebo]     VK_EXT_external_memory_dma_buf
[vo/gpu/libplacebo]     VK_EXT_external_memory_host
[vo/gpu/libplacebo]     VK_KHR_external_semaphore_fd
[vo/gpu/libplacebo]     VK_EXT_pci_bus_info
[vo/gpu/libplacebo]     VK_EXT_image_drm_format_modifier
[vo/gpu/libplacebo] Memory heaps supported by device:
[vo/gpu/libplacebo]     0: flags 0x1 size 8192M
[vo/gpu/libplacebo]     1: flags 0x0 size   94G
[vo/gpu/libplacebo]     2: flags 0x1 size  246M
[vo/gpu/libplacebo] Memory summary:     0 used     0 res     0 alloc, efficiency 100.00%, utilization 100.00%
[vo/gpu/libplacebo] shaderc SPIR-V version 1.6 rev 1
[vo/gpu/libplacebo] Initialized SPIR-V compiler 'shaderc'
[vo/gpu/libplacebo] DRM format modifier LINEAR of format rgba8 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgra8 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr565 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr5a1 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format rgb10a2 supports fewer caps (0x1d403) than optimal tiling (0x1dd83), may result in limited capability!
[vo/gpu/libplacebo] DRM format modifier LINEAR of format bgr10a2 supports fewer caps (0x1d401) than optimal tiling (0x1dd81), may result in limited capability!
[vo/gpu/libplacebo] GPU information:
[vo/gpu/libplacebo]     GLSL version: 450 (vulkan)
[vo/gpu/libplacebo]       max_shmem_size:            49152
[vo/gpu/libplacebo]       max_group_threads:         1536
[vo/gpu/libplacebo]       max_group_size[0]:         1536
[vo/gpu/libplacebo]       max_group_size[1]:         1024
[vo/gpu/libplacebo]       max_group_size[2]:         64
[vo/gpu/libplacebo]       subgroup_size:             32
[vo/gpu/libplacebo]       min_gather_offset:         -32
[vo/gpu/libplacebo]       max_gather_offset:         31
[vo/gpu/libplacebo]     Limits:
[vo/gpu/libplacebo]       thread_safe:               1
[vo/gpu/libplacebo]       callbacks:                 1
[vo/gpu/libplacebo]       max_buf_size:              18446744073709551615
[vo/gpu/libplacebo]       max_ubo_size:              65536
[vo/gpu/libplacebo]       max_ssbo_size:             4294967295
[vo/gpu/libplacebo]       max_vbo_size:              18446744073709551615
[vo/gpu/libplacebo]       max_mapped_size:           18446744073709551615
[vo/gpu/libplacebo]       max_buffer_texels:         134217728
[vo/gpu/libplacebo]       align_host_ptr:            4096
[vo/gpu/libplacebo]       max_tex_1d_dim:            32768
[vo/gpu/libplacebo]       max_tex_2d_dim:            32768
[vo/gpu/libplacebo]       max_tex_3d_dim:            16384
[vo/gpu/libplacebo]       blittable_1d_3d:           1
[vo/gpu/libplacebo]       buf_transfer:              1
[vo/gpu/libplacebo]       align_tex_xfer_pitch:      1
[vo/gpu/libplacebo]       align_tex_xfer_offset:     4
[vo/gpu/libplacebo]       max_variable_comps:        0
[vo/gpu/libplacebo]       max_constants:             18446744073709551615
[vo/gpu/libplacebo]       max_pushc_size:            256
[vo/gpu/libplacebo]       align_vertex_stride:       1
[vo/gpu/libplacebo]       max_dispatch[0]:           2147483647
[vo/gpu/libplacebo]       max_dispatch[1]:           65535
[vo/gpu/libplacebo]       max_dispatch[2]:           65535
[vo/gpu/libplacebo]       fragment_queues:           1
[vo/gpu/libplacebo]       compute_queues:            1
[vo/gpu/libplacebo]     External API interop:
[vo/gpu/libplacebo]       UUID: 51:AB:6F:21:79:0F:C4:4C:43:F0:0C:08:9B:0E:25:3B
[vo/gpu/libplacebo]       PCI: 0000:03:00:0
[vo/gpu/libplacebo]       buf export caps: 0x19
[vo/gpu/libplacebo]       buf import caps: 0x19
[vo/gpu/libplacebo]       tex export caps: 0x11
[vo/gpu/libplacebo]       tex import caps: 0x11
[vo/gpu/libplacebo]       sync export caps: 0x1
[vo/gpu/libplacebo]       sync import caps: 0x0
[vo/gpu/libplacebo] Available surface configurations:
[vo/gpu/libplacebo]     0: VK_FORMAT_B8G8R8A8_UNORM                 VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu/libplacebo]     1: VK_FORMAT_B8G8R8A8_SRGB                  VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu/libplacebo] Picked surface configuration 0: VK_FORMAT_B8G8R8A8_UNORM + VK_COLOR_SPACE_SRGB_NONLINEAR_KHR
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] Assuming 59.996625 FPS for display sync.
[vd] Container reported FPS: 29.970031
[vd] Codec list:
[vd]     vp9 - Google VP9
[vd]     vp9_v4l2m2m (vp9) - V4L2 mem2mem VP9 decoder wrapper
[vd]     vp9_cuvid (vp9) - Nvidia CUVID VP9 decoder
[vd] Opening decoder vp9
[vd] Looking at hwdec vp9-nvdec...
[vo/gpu] Loading hwdec drivers for format: 'cuda'
[vo/gpu] Loading hwdec driver 'cuda'
[vd] Trying hardware decoding via vp9-nvdec.
[vd] Selected codec: vp9 (Google VP9)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     aac - AAC (Advanced Audio Coding)
[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)
[ad] Opening decoder aac
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: aac (AAC (Advanced Audio Coding))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Pixel formats supported by decoder: cuda vaapi vdpau yuv420p
[vd] Codec profile: Profile 0 (0x0)
[vd] Requesting pixfmt 'cuda' from decoder.
[af] [in] 44100Hz stereo 2ch floatp
[af] [userspeed] 44100Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 44100Hz stereo 2ch floatp
[vd] Using hardware decoding (nvdec).
[vd] Decoder format: 1920x1440 [0:1] cuda[nv12] bt.709/auto/auto/limited/auto CL=unknown
[vd] Using container aspect ratio.
[vf] [in] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 44100 Hz, stereo channels, floatp
[ao/pulse] Library version: 16.1.0
[ao/pulse] Proto: 35
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4410 samples.
[ao/pulse] using soft-buffer of 8820 samples.
[cplayer] AO: [pulse] 44100Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 44100Hz stereo floatp -> 44100Hz stereo float
[af] [out] 44100Hz stereo 2ch float
[cplayer] VO: [gpu] 1920x1440 cuda[nv12]
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x1440 cuda[nv12] bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu] Resize: 1920x1440
[vo/gpu] Window size: 1920x1440 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1440 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1440 -> (0, 0) 1920x1440
[vo/gpu] Video scale: 1.000000/1.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu/libplacebo] Spent 118.637 ms translating SPIR-V (slow!)
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000, audio=playing, video=playing
[vo/gpu/x11] Disabling screensaver.
[ao/pulse] starting AO
[statusline] AV: 00:00:00 / 00:02:09 (0%) A-V:  0.000

Here is my mpv output (still doesn’t work):

[cplayer] Command line options: '-v' 'Athenes_Theory_of_Everything.mkv'
[cplayer] mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       56.70.100
[cplayer]    libavcodec      58.134.100
[cplayer]    libavformat     58.76.100
[cplayer]    libswscale      5.9.100
[cplayer]    libavfilter     7.110.100
[cplayer]    libswresample   3.9.100
[cplayer] FFmpeg version: 4.4.2-0ubuntu0.22.04.1
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-sdl2 --disable-build-date --enable-dvbin
[cplayer] List of enabled features: alsa asm caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffmpeg-aviocontext-bytes-read ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua lua52 memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross spirv-cross-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland-protocols x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /etc/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 4)
[cplayer] Reading config file /home/lastique/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'vd-lavc-threads' = '8' (flags = 4)
[cplayer] Setting option 'hwdec' = 'nvdec' (flags = 4)
[cplayer] Setting option 'ao' = 'pulse' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'deband' = 'yes' (flags = 4)
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4)
[cplayer] Setting option 'cache' = 'yes' (flags = 4)
[cplayer] Setting option 'cache-pause-initial' = 'yes' (flags = 4)
[cplayer] Setting option 'cache-pause-wait' = '2' (flags = 4)
[cplayer] Setting option 'demuxer-readahead-secs' = '30' (flags = 4)
[cplayer] Setting option 'ytdl' = 'yes' (flags = 4)
[cplayer] Setting option 'script-opts' = 'ytdl_hook-ytdl_path=yt-dlp' (flags = 4)
[cplayer] Setting option 'ytdl-format' = '(bestvideo*[dynamic_range=?SDR][width<=?2560]+bestaudio)/best[dynamic_range=?SDR]' (flags = 4)
[cplayer] Setting option 'ytdl-raw-options' = 'downloader=aria2c,socket-timeout=10,concurrent-fragments=5,buffer-size=256K,http-chunk-size=1M' (flags = 4)
[cplayer] Setting option 'network-timeout' = '10' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[youtube_quality] Opened config file script-opts/youtube-quality.conf. 
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: tarball: 0.15.2
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[cplayer] Set property: shared-script-properties -> 1
[ifo_dvdnav] Opening Athenes_Theory_of_Everything.mkv
[bdmv/bluray] Opening Athenes_Theory_of_Everything.mkv
[file] Opening Athenes_Theory_of_Everything.mkv
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[cplayer] Set property: shared-script-properties -> 1
[demux] Detected file format: Matroska
[cplayer] Opening done: Athenes_Theory_of_Everything.mkv
[find_files] Loading external files in .
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: tarball: 0.15.2
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 2
[cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
[cplayer]      Audio --aid=1 --alang=eng (ac3 2ch 48000Hz)
[cplayer]  (+) Audio --aid=2 --alang=rus (*) (ac3 2ch 48000Hz)
[cplayer]      Subs  --sid=1 --slang=rus (subrip)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] Assuming DPI scale 2 for prescaling. This can be disabled with --hidpi-window-scale=no.
[vo/gpu/x11] Display 0 (HDMI-0): [3840, 0, 5760, 1080] @ 60.000000 FPS
[vo/gpu/x11] Display 1 (DP-0): [0, 0, 3840, 2160] @ 59.996625 FPS
[vo/gpu/x11] Current display FPS: 60.000000
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL_ES OpenGL
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x28, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 525.53'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] Looking at hwdec h264-nvdec...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...

Also, in syslog I can see this message:

kernel: [   46.156549] [drm:nv_drm_fence_context_create_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate fence signaling event

I’m not sure it’s related, though. It was printed once, soon after boot. It is possible I was trying to run mpv right about that time, but there are no other messages related to mpv in the log.

i have the +/- same line in my journalctl (xorg, let me check in wayland)

nov 14 15:47:25 sL1pKn07 kernel: [drm:nv_drm_fence_context_create_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to allocate fence signaling event

but the vide is played without problem

Looks like in your case you’re using Vulkan+DRM for video output, whereas in my case it tries VAAPI+EGL. I have nvidia-vaapi-driver 0.0.7 installed for accelerating video decoding in Firefox, and it looks like this is related to the problem. Uninstalling it allows the player to progress, but with software-only decoding:

[cplayer] Command line options: '-v' 'Athenes_Theory_of_Everything.mkv'
[cplayer] mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       56.70.100
[cplayer]    libavcodec      58.134.100
[cplayer]    libavformat     58.76.100
[cplayer]    libswscale      5.9.100
[cplayer]    libavfilter     7.110.100
[cplayer]    libswresample   3.9.100
[cplayer] FFmpeg version: 4.4.2-0ubuntu0.22.04.1
[cplayer] 
[cplayer] Configuration: ./waf configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu --confdir=/etc/mpv --zshdir=/usr/share/zsh/vendor-completions --enable-cdda --enable-dvdnav --enable-libmpv-shared --enable-sdl2 --disable-build-date --enable-dvbin
[cplayer] List of enabled features: alsa asm caca cdda cplayer cplugins cuda-hwaccel cuda-interop debug-build drm dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffmpeg-aviocontext-bytes-read ffnvcodec gbm gbm.h gl gl-wayland glibc-thread-name glob glob-posix gpl iconv jack javascript jpeg lcms2 libarchive libass libavdevice libbluray libdl libm libmpv-shared libplacebo librt linux-fstatfs linux-input-event-codes lua lua52 memfd_create optimize plain-gl posix posix-or-mingw pthreads pulse rubberband sdl2 sdl2-audio sdl2-gamepad sdl2-video sixel spirv-cross spirv-cross-shared stdatomic uchardet vaapi vaapi-drm vaapi-egl vaapi-vulkan vaapi-wayland vaapi-x-egl vaapi-x11 vdpau vector vt.h vulkan wayland wayland-protocols x11 xv zimg zlib
[cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[cplayer] Applying profile 'default'...
[cplayer] Reading config file /etc/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'hwdec' = 'vaapi' (flags = 4)
[cplayer] Reading config file /home/lastique/.config/mpv/mpv.conf
[cplayer] Applying profile 'default'...
[cplayer] Setting option 'vd-lavc-threads' = '8' (flags = 4)
[cplayer] Setting option 'hwdec' = 'nvdec' (flags = 4)
[cplayer] Setting option 'ao' = 'pulse' (flags = 4)
[cplayer] Setting option 'vo' = 'gpu' (flags = 4)
[cplayer] Setting option 'deband' = 'yes' (flags = 4)
[cplayer] Setting option 'scale' = 'ewa_lanczossharp' (flags = 4)
[cplayer] Setting option 'cache' = 'yes' (flags = 4)
[cplayer] Setting option 'cache-pause-initial' = 'yes' (flags = 4)
[cplayer] Setting option 'cache-pause-wait' = '2' (flags = 4)
[cplayer] Setting option 'demuxer-readahead-secs' = '30' (flags = 4)
[cplayer] Setting option 'ytdl' = 'yes' (flags = 4)
[cplayer] Setting option 'script-opts' = 'ytdl_hook-ytdl_path=yt-dlp' (flags = 4)
[cplayer] Setting option 'ytdl-format' = '(bestvideo*[dynamic_range=?SDR][width<=?2560]+bestaudio)/best[dynamic_range=?SDR]' (flags = 4)
[cplayer] Setting option 'ytdl-raw-options' = 'downloader=aria2c,socket-timeout=10,concurrent-fragments=5,buffer-size=256K,http-chunk-size=1M' (flags = 4)
[cplayer] Setting option 'network-timeout' = '10' (flags = 4)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[youtube_quality] Opened config file script-opts/youtube-quality.conf. 
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: tarball: 0.15.2
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Done loading scripts.
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo_dvdnav] Opening Athenes_Theory_of_Everything.mkv
[cplayer] Set property: shared-script-properties -> 1
[bdmv/bluray] Opening Athenes_Theory_of_Everything.mkv
[file] Opening Athenes_Theory_of_Everything.mkv
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: Athenes_Theory_of_Everything.mkv
[cplayer] Set property: shared-script-properties -> 1
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 2
[cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
[cplayer]      Audio --aid=1 --alang=eng (ac3 2ch 48000Hz)
[cplayer]  (+) Audio --aid=2 --alang=rus (*) (ac3 2ch 48000Hz)
[cplayer]      Subs  --sid=1 --slang=rus (subrip)
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/opengl] Initializing GPU context 'x11egl'
[vo/gpu/x11] X11 opening display: :0
[vo/gpu/x11] Assuming DPI scale 2 for prescaling. This can be disabled with --hidpi-window-scale=no.
[vo/gpu/x11] Display 0 (HDMI-0): [3840, 0, 5760, 1080] @ 60.000000 FPS
[vo/gpu/x11] Display 1 (DP-0): [0, 0, 3840, 2160] @ 59.996625 FPS
[vo/gpu/x11] Current display FPS: 60.000000
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=NVIDIA
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL_ES OpenGL
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/opengl] Choosing visual EGL config 0x28, visual ID 0x2b
[vo/gpu/opengl] GL_VERSION='4.4.0 NVIDIA 525.53'
[vo/gpu/opengl] Detected desktop OpenGL 4.4.
[vo/gpu/opengl] GL_VENDOR='NVIDIA Corporation'
[vo/gpu/opengl] GL_RENDERER='NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2'
[vo/gpu/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vd] Container reported FPS: 25.000000
[vd] Codec list:
[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[vd]     h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] Looking at hwdec h264-nvdec...
[vo/gpu] Loading hwdec driver 'vaapi-egl'
[vo/gpu/vaapi-egl] using VAAPI EGL interop
[vo/gpu/vaapi-egl] Trying to open a x11 VA display...
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'cuda-nvdec'
[vo/gpu/cuda-nvdec] cu->cuGLGetDevices(&device_count, &display_dev, 1, CU_GL_DEVICE_LIST_ALL) failed -> CUDA_ERROR_INVALID_GRAPHICS_CONTEXT: invalid OpenGL or DirectX context
[vo/gpu/cuda-nvdec] CUDA hwdec only works with OpenGL or Vulkan backends.
[vo/gpu] Loading failed.
[vo/gpu] Loading hwdec driver 'drmprime-drm'
[vo/gpu/drmprime-drm] Failed to retrieve DRM fd from native display.
[vo/gpu] Loading failed.
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
[vd] Using software decoding.
[vd] Requesting 8 threads for decoding.
[vd] Selected codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[vf] User filter list:
[vf]   (empty)
[ad] Codec list:
[ad]     ac3 - ATSC A/52A (AC-3)
[ad]     ac3_fixed (ac3) - ATSC A/52A (AC-3)
[ad] Opening decoder ac3
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: ac3 (ATSC A/52A (AC-3))
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[osd/libass] libass API version: 0x1502000
[osd/libass] libass source: tarball: 0.15.2
[osd/libass] Shaper: FriBidi 1.0.8 (SIMPLE) HarfBuzz-ng 2.7.4 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[vd] Using software decoding.
[vd] Decoder format: 1920x1080 yuv420p auto/auto/auto/auto/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[af] [in] 48000Hz stereo 2ch floatp
[af] [userspeed] 48000Hz stereo 2ch floatp
[af] [userspeed] (disabled)
[af] [convert] 48000Hz stereo 2ch floatp
[ao] Trying audio driver 'pulse'
[ao/pulse] requested format: 48000 Hz, stereo channels, floatp
[ao/pulse] Library version: 15.99.0
[ao/pulse] Proto: 35
[ao/pulse] Server proto: 4294967295
[ao/pulse] Channel layouts:
[ao/pulse]  - #fl
[ao/pulse]  - #fr
[ao/pulse]  - #fc
[ao/pulse]  - #lfe
[ao/pulse]  - #bl
[ao/pulse]  - #br
[ao/pulse]  - #flc
[ao/pulse]  - #frc
[ao/pulse]  - #bc
[ao/pulse]  - #sl
[ao/pulse]  - #sr
[ao/pulse]  - #tc
[ao/pulse]  - #tfl
[ao/pulse]  - #tfc
[ao/pulse]  - #tfr
[ao/pulse]  - #tbl
[ao/pulse]  - #tbc
[ao/pulse]  - #tbr
[ao/pulse] result: stereo
[ao/pulse] device buffer: 4800 samples.
[ao/pulse] using soft-buffer of 9600 samples.
[cplayer] AO: [pulse] 48000Hz stereo 2ch float
[cplayer] AO: Description: PulseAudio audio output
[autoconvert] inserting resampler
[swresample] format change, reinitializing resampler
[swresample] 48000Hz stereo floatp -> 48000Hz stereo float
[af] [out] 48000Hz stereo 2ch float
[cplayer] VO: [gpu] 1920x1080 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/x11] Current display FPS: 59.996625
[vo/gpu] Resize: 3840x2160
[vo/gpu] Window size: 3840x2160 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1080 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1080 -> (0, 0) 3840x2160
[vo/gpu] Video scale: 2.000000/2.000000
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Texture for plane 0: 1920x1080
[vo/gpu] Texture for plane 1: 960x540
[vo/gpu] Texture for plane 2: 960x540
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] Resize: 3563x2004
[vo/gpu] Window size: 3563x2004 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1080 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1080 -> (0, 0) 3563x2004
[vo/gpu] Video scale: 1.855729/1.855556
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] Assuming 59.996625 FPS for display sync.
[vo/gpu] DR enabled: yes
[cplayer] first video frame after restart shown
[vo/gpu] Resize: 3563x2004
[vo/gpu] Window size: 3563x2004 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1920x1080 (1:1)
[vo/gpu] Video display: (0, 0) 1920x1080 -> (0, 0) 3563x2004
[vo/gpu] Video scale: 1.855729/1.855556
[vo/gpu] OSD borders: l=0 t=0 r=0 b=0
[vo/gpu] Video borders: l=0 t=0 r=0 b=0
[vo/gpu] Reported display depth: 8
[cplayer] audio ready
[cplayer] starting audio playback
[cplayer] playback restart complete @ 0.000000, audio=playing, video=playing
[ao/pulse] starting AO

e[K[statusline] AV: 00:00:00 / 00:49:30 (0%) A-V:  0.000
[vo/gpu/x11] Disabling screensaver.

e[K[statusline] AV: 00:00:00 / 00:49:30 (0%) A-V:  0.000
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: shared-script-properties -> 1

e[K[statusline] AV: 00:00:00 / 00:49:30 (0%) A-V:  0.000

e[K[statusline] AV: 00:00:01 / 00:49:30 (0%) A-V:  0.000
[cplayer] EOF code: 5  
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/x11] Enabling screensaver.

I should add that video decoding acceleration in Firefox (with nvidia-vaapi-driver installed) also doesn’t work, as indicated by nvidia-smi. So it looks like NVDEC<->EGL interop is broken.

maybe this

2 Likes