mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.84k stars 2.85k forks source link

Drag & Drop into mpv not working on Wayland/Sway #13498

Closed alterNERDtive closed 5 months ago

alterNERDtive commented 5 months ago

Important Information

Reproduction steps

Try to reproduce your issue with --no-config first. If it isn't reproducible with --no-config try to first find out which option or script causes your issue.

It is reproducible with --no-config.

Describe the reproduction steps as precise as possible. It's very likely that the bug you experience wasn't reproduced by the developer because the workflow differs from your own.

  1. start mpv
  2. drag a random media file from your file manager onto mpv

Expected behavior

mpv plays the dragged file.

Actual behavior

Nothing happens.

Drag & drop works from file manager (I use Thunar, but at this point have tried basically anything in the Fedora repos to make sure it’s not a Thunar bug) into any other Wayland or XWayland window I’ve tried.

Thunar forced to run on XWayland into mpv does not work, neither does Thunar (Wayland) into mpv (XWayland). Thunar (XWayland) into mpv (XWayland) does!

Also, and this is the really funny part, if I drag the file from Thunar (Wayland) over the Streamlink Twitch GUI window (Xwayland) I have on the same desktop and then into mpv (Wayland), it works.

Log file

(This is Wayland → Wayland)

[cplayer] Command line options: '--no-config' '--idle' '--force-window' '-v'
[cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] libplacebo version: v6.292.1
[cplayer] FFmpeg version: 6.0.1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.2.100
[cplayer]    libavcodec      60.3.100
[cplayer]    libavformat     60.3.100
[cplayer]    libswscale      7.1.100
[cplayer]    libavfilter     9.3.100
[cplayer]    libswresample   4.10.100
[cplayer] 
[cplayer] Configuration: -Dalsa=enabled -Dbuild-date=false -Dcaca=enabled -Dcdda=enabled -Dcplayer=true -Dcplugins=enabled -Dcuda-hwaccel=enabled -Dcuda-interop=enabled -Ddmabuf-wayland=enabled -Ddrm=enabled -Ddvbin=enabled -Ddvdnav=enabled -Degl-drm=enabled -Degl-wayland=enabled -Degl-x11=enabled -Degl=enabled -Dgbm=enabled -Dgl-x11=enabled -Dgl=enabled -Dhtml-build=enabled -Diconv=enabled -Djack=enabled -Djavascript=enabled -Djpeg=enabled -Dlcms2=enabled -Dlibarchive=enabled -Dlibavdevice=enabled -Dlibbluray=enabled -Dlibmpv=true -Dlibplacebo-next=enabled -Dlibplacebo=enabled -Dlua=enabled -Dmanpage-build=enabled -Dopenal=enabled -Dopensles=disabled -Doss-audio=disabled -Dpipewire=enabled -Dplain-gl=enabled -Dpulse=enabled -Drubberband=enabled -Dsdl2-audio=enabled -Dsdl2-gamepad=enabled -Dsdl2-video=enabled -Dsdl2=enabled -Dshaderc=enabled -Dsndio=disabled -Dspirv-cross=disabled -Dstdatomic=enabled -Duchardet=enabled -Dvaapi-drm=enabled -Dvaapi-wayland=enabled -Dvaapi-x-egl=enabled -Dvaapi-x11=enabled -Dvaapi=enabled -Dvapoursynth=enabled -Dvdpau-gl-x11=enabled -Dvdpau=enabled -Dvector=enabled -Dvulkan-interop=disabled -Dvulkan=enabled -Dwayland=enabled -Dwerror=false -Dx11=enabled -Dxv=enabled -Dzimg=enabled -Dzlib=enabled -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib64 -Dlibexecdir=/usr/libexec -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/sbin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif_muxer caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gpl html-build iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs lua-5.1 manpage-build memfd_create noexecstack openal pipewire posix posix_shm pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vk_khr_display vt.h vulkan wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zimg zlib
[cplayer] Setting option 'config' = 'no' (flags = 8)
[cplayer] Setting option 'idle' = '' (flags = 8)
[cplayer] Setting option 'force-window' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.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: user-data/osc/visibility="auto" -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] Done loading scripts.
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/wayland] Registered for protocol wl_shm
[vo/gpu/wayland] Registered for protocol zwp_linux_dmabuf_v1
[vo/gpu/wayland] Registered for protocol wl_compositor
[vo/gpu/wayland] Registered for protocol wl_subcompositor
[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 xdg_wm_base
[vo/gpu/wayland] Registered for protocol zxdg_decoration_manager_v1
[vo/gpu/wayland] Registered for protocol wp_presentation
[vo/gpu/wayland] Registered for protocol wp_viewporter
[vo/gpu/wayland] Registered for protocol wp_single_pixel_buffer_manager_v1
[vo/gpu/wayland] Registered for protocol wl_seat
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Compositor doesn't support the wp_content_type_manager_v1 protocol!
[vo/gpu/wayland] Compositor doesn't support the wp_fractional_scale_manager_v1 protocol!
[vo/gpu/wayland] Registered output BNQ G2420HDBL (0x2c):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (530mm), h: 1080px (290mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 60.000000
[vo/gpu/wayland] Registered output Iiyama North America PL2730H (0x2d):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (600mm), h: 1080px (340mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 74.973000
[vo/gpu/wayland] Registered output BNQ G2420HDBL (0x2f):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (530mm), h: 1080px (290mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 60.000000
[vo/gpu/wayland] Registered output AOC 27B2 (0x32):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (600mm), h: 1080px (340mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 74.973000
[vo/gpu/wayland] Enabling server decorations
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=Mesa Project
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/wayland] GL_VERSION='4.6 (Core Profile) Mesa 23.3.5'
[vo/gpu/wayland] Detected desktop OpenGL 4.6.
[vo/gpu/wayland] GL_VENDOR='AMD'
[vo/gpu/wayland] GL_RENDERER='AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 17.0.6, DRM 3.57, 6.7.3-200.fc39.x86_64)'
[vo/gpu/wayland] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu/wayland] Loaded extension GL_NV_vdpau_interop.
[vo/gpu/wayland] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] reconfig to 960x480 yuv444p auto/auto/auto/auto/auto CL=unknown
[vo/gpu/wayland] Reconfiguring!
[vo/gpu] Resize: 960x480
[vo/gpu] Window size: 960x480 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 960x480
[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] Texture for plane 0: 960x480
[vo/gpu] Texture for plane 1: 960x480
[vo/gpu] Texture for plane 2: 960x480
[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 egl side
[vo/gpu] Resize: 960x480
[vo/gpu] Window size: 960x480 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 960x480
[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] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf, 0, NotoSansArabic-Regular
[osd/libass] Glyph 0x44 not found, selecting one more font for (sans-serif, 400, 0)
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSans[wght].ttf, 0, NotoSans-Regular
[vo/gpu] Reallocating OSD texture to 512x256.
[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.
[vo/gpu/wayland] Resizing due to xdg from 960x480 to 959x524
[vo/gpu/wayland] Handling resize on the egl side
[vo/gpu] Resize: 959x524
[vo/gpu] Window size: 959x524 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 22) 959x479
[vo/gpu] Video scale: 0.998958/0.997917
[vo/gpu] OSD borders: l=0 t=22 r=0 b=23
[vo/gpu] Video borders: l=0 t=22 r=0 b=23
[vo/gpu] Reported display depth: 8
[vo/gpu/wayland] Surface entered output BNQ G2420HDBL (0x2c), scale = 1.000000, refresh rate = 60.000000 Hz
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vo/gpu/wayland] Given DND offer with mime type text/uri-list
[vo/gpu/wayland] Accepting DND offer with mime type text/uri-list
[vo/gpu/wayland] DND action is DND_REPLACE
[vo/gpu/wayland] Releasing DND offer with mime type text/uri-list
[vo/gpu/wayland] Given DND offer with mime type text/uri-list
[vo/gpu/wayland] Accepting DND offer with mime type text/uri-list
[vo/gpu/wayland] DND action is DND_REPLACE
[vo/gpu/wayland] Releasing DND offer with mime type text/uri-list
[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.
[vo/gpu/wayland] Given DND offer with mime type text/uri-list
[vo/gpu/wayland] Accepting DND offer with mime type text/uri-list
[vo/gpu/wayland] DND action is DND_REPLACE
[vo/gpu/wayland] Receiving DND offer with mime text/uri-list
[vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
[vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/wayland] Deregistering output AOC 27B2 (0x32)
[vo/gpu/wayland] Deregistering output BNQ G2420HDBL (0x2f)
[vo/gpu/wayland] Deregistering output Iiyama North America PL2730H (0x2d)
[vo/gpu/wayland] Deregistering output BNQ G2420HDBL (0x2c)

(This is Wayland → Wayland, but dragged over the mentioned XWayland window first)

[cplayer] Command line options: '--no-config' '--idle' '--force-window' '-v'
[cplayer] mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
[cplayer]  built on UNKNOWN
[cplayer] libplacebo version: v6.292.1
[cplayer] FFmpeg version: 6.0.1
[cplayer] FFmpeg library versions:
[cplayer]    libavutil       58.2.100
[cplayer]    libavcodec      60.3.100
[cplayer]    libavformat     60.3.100
[cplayer]    libswscale      7.1.100
[cplayer]    libavfilter     9.3.100
[cplayer]    libswresample   4.10.100
[cplayer] 
[cplayer] Configuration: -Dalsa=enabled -Dbuild-date=false -Dcaca=enabled -Dcdda=enabled -Dcplayer=true -Dcplugins=enabled -Dcuda-hwaccel=enabled -Dcuda-interop=enabled -Ddmabuf-wayland=enabled -Ddrm=enabled -Ddvbin=enabled -Ddvdnav=enabled -Degl-drm=enabled -Degl-wayland=enabled -Degl-x11=enabled -Degl=enabled -Dgbm=enabled -Dgl-x11=enabled -Dgl=enabled -Dhtml-build=enabled -Diconv=enabled -Djack=enabled -Djavascript=enabled -Djpeg=enabled -Dlcms2=enabled -Dlibarchive=enabled -Dlibavdevice=enabled -Dlibbluray=enabled -Dlibmpv=true -Dlibplacebo-next=enabled -Dlibplacebo=enabled -Dlua=enabled -Dmanpage-build=enabled -Dopenal=enabled -Dopensles=disabled -Doss-audio=disabled -Dpipewire=enabled -Dplain-gl=enabled -Dpulse=enabled -Drubberband=enabled -Dsdl2-audio=enabled -Dsdl2-gamepad=enabled -Dsdl2-video=enabled -Dsdl2=enabled -Dshaderc=enabled -Dsndio=disabled -Dspirv-cross=disabled -Dstdatomic=enabled -Duchardet=enabled -Dvaapi-drm=enabled -Dvaapi-wayland=enabled -Dvaapi-x-egl=enabled -Dvaapi-x11=enabled -Dvaapi=enabled -Dvapoursynth=enabled -Dvdpau-gl-x11=enabled -Dvdpau=enabled -Dvector=enabled -Dvulkan-interop=disabled -Dvulkan=enabled -Dwayland=enabled -Dwerror=false -Dx11=enabled -Dxv=enabled -Dzimg=enabled -Dzlib=enabled -Dprefix=/usr -Dbindir=/usr/bin -Ddatadir=/usr/share -Dincludedir=/usr/include -Dinfodir=/usr/share/info -Dlibdir=/usr/lib64 -Dlibexecdir=/usr/libexec -Dlocaledir=/usr/share/locale -Dlocalstatedir=/var -Dmandir=/usr/share/man -Dsbindir=/usr/sbin -Dsharedstatedir=/var/lib -Dsysconfdir=/etc -Dauto_features=auto -Dbuildtype=plain -Dwrap_mode=nodownload
[cplayer] List of enabled features: alsa av-channel-layout avif_muxer caca cdda cplugins cuda-hwaccel cuda-interop dmabuf-interop-gl dmabuf-interop-pl dmabuf-wayland drm drm-is-kms dvbin dvdnav egl egl-drm egl-helpers egl-x11 ffmpeg ffnvcodec gbm gl gl-wayland gl-x11 glibc-thread-name glob glob-posix gpl html-build iconv jack javascript jpeg jpegxl lcms2 libarchive libass libavdevice libbluray libdl libm libplacebo libplacebo-next librt linux-fstatfs lua-5.1 manpage-build memfd_create noexecstack openal pipewire posix posix_shm pulse rubberband rubberband-3 sdl2 sdl2-audio sdl2-gamepad sdl2-video shaderc stdatomic threads uchardet vaapi vaapi-drm vaapi-egl vaapi-libplacebo vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vdpau vdpau-gl-x11 vector vk_khr_display vt.h vulkan wayland wayland_protocols_1_27 wayland_protocols_1_31 wayland_protocols_1_32 x11 xv zimg zlib
[cplayer] Setting option 'config' = 'no' (flags = 8)
[cplayer] Setting option 'idle' = '' (flags = 8)
[cplayer] Setting option 'force-window' = '' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Waiting for scripts...
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.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: user-data/osc/visibility="auto" -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] Done loading scripts.
[vo/gpu] Probing for best GPU context.
[vo/gpu/opengl] Initializing GPU context 'wayland'
[vo/gpu/wayland] Registered for protocol wl_shm
[vo/gpu/wayland] Registered for protocol zwp_linux_dmabuf_v1
[vo/gpu/wayland] Registered for protocol wl_compositor
[vo/gpu/wayland] Registered for protocol wl_subcompositor
[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 xdg_wm_base
[vo/gpu/wayland] Registered for protocol zxdg_decoration_manager_v1
[vo/gpu/wayland] Registered for protocol wp_presentation
[vo/gpu/wayland] Registered for protocol wp_viewporter
[vo/gpu/wayland] Registered for protocol wp_single_pixel_buffer_manager_v1
[vo/gpu/wayland] Registered for protocol wl_seat
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Registered for protocol wl_output
[vo/gpu/wayland] Compositor doesn't support the wp_content_type_manager_v1 protocol!
[vo/gpu/wayland] Compositor doesn't support the wp_fractional_scale_manager_v1 protocol!
[vo/gpu/wayland] Registered output BNQ G2420HDBL (0x2c):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (530mm), h: 1080px (290mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 60.000000
[vo/gpu/wayland] Registered output Iiyama North America PL2730H (0x2d):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (600mm), h: 1080px (340mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 74.973000
[vo/gpu/wayland] Registered output BNQ G2420HDBL (0x2f):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (530mm), h: 1080px (290mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 60.000000
[vo/gpu/wayland] Registered output AOC 27B2 (0x32):
[vo/gpu/wayland]    x: 0px, y: 0px
[vo/gpu/wayland]    w: 1920px (600mm), h: 1080px (340mm)
[vo/gpu/wayland]    scale: 1
[vo/gpu/wayland]    Hz: 74.973000
[vo/gpu/wayland] Enabling server decorations
[vo/gpu/opengl] EGL_VERSION=1.5
[vo/gpu/opengl] EGL_VENDOR=Mesa Project
[vo/gpu/opengl] EGL_CLIENT_APIS=OpenGL OpenGL_ES 
[vo/gpu/opengl] Trying to create Desktop OpenGL context.
[vo/gpu/wayland] GL_VERSION='4.6 (Core Profile) Mesa 23.3.5'
[vo/gpu/wayland] Detected desktop OpenGL 4.6.
[vo/gpu/wayland] GL_VENDOR='AMD'
[vo/gpu/wayland] GL_RENDERER='AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 17.0.6, DRM 3.57, 6.7.3-200.fc39.x86_64)'
[vo/gpu/wayland] GL_SHADING_LANGUAGE_VERSION='4.60'
[vo/gpu/wayland] Loaded extension GL_NV_vdpau_interop.
[vo/gpu/wayland] Loaded extension GL_KHR_debug.
[vo/gpu] Testing FBO format rgba16f
[vo/gpu] Using FBO format rgba16f.
[vo/gpu] No advanced processing required. Enabling dumb mode.
[vo/gpu] reconfig to 960x480 yuv444p auto/auto/auto/auto/auto CL=unknown
[vo/gpu/wayland] Reconfiguring!
[vo/gpu] Resize: 960x480
[vo/gpu] Window size: 960x480 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 960x480
[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] Texture for plane 0: 960x480
[vo/gpu] Texture for plane 1: 960x480
[vo/gpu] Texture for plane 2: 960x480
[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 egl side
[vo/gpu] Resize: 960x480
[vo/gpu] Window size: 960x480 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 0) 960x480
[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] Reported display depth: 8
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf, 0, NotoSansArabic-Regular
[osd/libass] Glyph 0x44 not found, selecting one more font for (sans-serif, 400, 0)
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSans[wght].ttf, 0, NotoSans-Regular
[vo/gpu] Reallocating OSD texture to 512x256.
[vo/gpu/wayland] Given DND offer with mime type text/plain
[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.
[vo/gpu/wayland] Resizing due to xdg from 960x480 to 959x524
[vo/gpu/wayland] Handling resize on the egl side
[vo/gpu] Resize: 959x524
[vo/gpu] Window size: 959x524 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 960x480 (1:1)
[vo/gpu] Video display: (0, 0) 960x480 -> (0, 22) 959x479
[vo/gpu] Video scale: 0.998958/0.997917
[vo/gpu] OSD borders: l=0 t=22 r=0 b=23
[vo/gpu] Video borders: l=0 t=22 r=0 b=23
[vo/gpu] Reported display depth: 8
[vo/gpu/wayland] Surface entered output BNQ G2420HDBL (0x2c), scale = 1.000000, refresh rate = 60.000000 Hz
[vo/gpu] Assuming 60.000000 FPS for display sync.
[vo/gpu/wayland] Given DND offer with mime type text/uri-list
[vo/gpu/wayland] Accepting DND offer with mime type text/uri-list
[vo/gpu/wayland] DND action is DND_REPLACE
[vo/gpu/wayland] Receiving DND offer with mime text/uri-list
[vo/gpu/wayland] Received a new DND offer. Releasing the previous offer.
[vo/gpu/wayland] Read 96 bytes from the DND fd
[cplayer] Running hook: ytdl_hook/on_load
[ytdl_hook] ytdl:// hook 
[ytdl_hook] not a ytdl:// url 
[ifo_dvdnav] Opening /share/videos/inbox/Viva_La_Dirt_League-20240217-Adam_has_a_new_role...-yV-hYXn3gHk.mkv
[bdmv/bluray] Opening /share/videos/inbox/Viva_La_Dirt_League-20240217-Adam_has_a_new_role...-yV-hYXn3gHk.mkv
[file] Opening /share/videos/inbox/Viva_La_Dirt_League-20240217-Adam_has_a_new_role...-yV-hYXn3gHk.mkv
[demux] Trying demuxers for level=normal.
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[demux] Detected file format: Matroska
[cplayer] Opening done: /share/videos/inbox/Viva_La_Dirt_League-20240217-Adam_has_a_new_role...-yV-hYXn3gHk.mkv
[find_files] Loading external files in /share/videos/inbox/
[cplayer] Running hook: ytdl_hook/on_preloaded
[mkv] select track 0
[mkv] select track 1
[cplayer]  (+) Video --vid=1 (*) (h264 1080x1920 25.000fps)
[cplayer]  (+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
[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]     libopenh264 (h264) - OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder
[vd] Opening decoder h264
[vd] No hardware decoding requested.
[vd] Using software decoding.
[vd] Detected 16 logical cores.
[vd] Requesting 16 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]     opus - Opus
[ad]     libopus (opus) - libopus Opus
[ad] Opening decoder opus
[ad] Requesting 1 threads for decoding.
[ad] Selected codec: opus (Opus)
[af] User filter list:
[af]   (empty)
[cplayer] Starting playback...
[vd] Using software decoding.
[vd] Decoder format: 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/auto CL=mpeg2/4/h264
[vd] Using container aspect ratio.
[vf] [in] 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [userdeint] (disabled)
[vf] [autorotate] 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [autorotate] (disabled)
[vf] [convert] 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vf] [convert] (disabled)
[vf] [out] 1080x1920 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 'pipewire'
[ao/pipewire] requested format: 48000 Hz, stereo channels, floatp
[ao/pipewire] Headers version: 0.3.75
[ao/pipewire] Library version: 1.0.3
[ao/pipewire] Core user: daniel
[ao/pipewire] Core host: wash.vandenhorz.de
[ao/pipewire] Core version: 1.0.3
[ao/pipewire] Core name: pipewire-0
[ao/pipewire] using soft-buffer of 9600 samples.
[cplayer] AO: [pipewire] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: PipeWire audio output
[af] [convert] (disabled)
[af] [out] 48000Hz stereo 2ch floatp
[cplayer] VO: [gpu] 1080x1920 yuv420p
[cplayer] VO: Description: Shader-based GPU Renderer
[vo/gpu] reconfig to 1080x1920 yuv420p bt.709/bt.709/bt.1886/limited/display SP=1.000000 CL=mpeg2/4/h264
[vo/gpu/wayland] Reconfiguring!
[vo/gpu] Resize: 1080x1920
[vo/gpu] Window size: 1080x1920 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1080x1920 (1:1)
[vo/gpu] Video display: (0, 0) 1080x1920 -> (0, 0) 1080x1920
[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] Reported display depth: 8
[vo/gpu] Texture for plane 0: 1080x1920
[vo/gpu] Texture for plane 1: 540x960
[vo/gpu] Texture for plane 2: 540x960
[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 egl side
[vo/gpu] Resize: 959x524
[vo/gpu] Window size: 959x524 (Borders: l=0 t=0 r=0 b=0)
[vo/gpu] Video source: 1080x1920 (1:1)
[vo/gpu] Video display: (0, 0) 1080x1920 -> (332, 0) 294x524
[vo/gpu] Video scale: 0.272222/0.272917
[vo/gpu] OSD borders: l=332 t=0 r=333 b=0
[vo/gpu] Video borders: l=332 t=0 r=333 b=0
[vo/gpu] Reported display depth: 8
[vo/gpu] DR enabled: yes
[cplayer] first video frame after restart shown
[cplayer] audio ready
[cplayer] delaying audio start 0.001000 vs. 0.000000, diff=0.001000
[cplayer] playback restart complete @ 0.000000, audio=ready, video=playing
[cplayer] starting audio playback
[vo/gpu/wayland] Enabling idle inhibitor
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[cplayer] Set property: shared-script-properties -> 1
[cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[mkv] EOF reached.
[cplayer] Starting screenshot: 'mpv-shot0003.jpg'
[screenshot] using 14 threads for scaling
[screenshot] Using zimg.
[cplayer] Screenshot: 'mpv-shot0003.jpg'
[osd/libass] libass API version: 0x1701000
[osd/libass] libass source: tarball: 0.17.1
[osd/libass] Shaper: FriBidi 1.0.13 (SIMPLE) HarfBuzz-ng 8.2.1 (COMPLEX)
[osd/libass] Setting up fonts...
[osd/libass] Using font provider fontconfig
[osd/libass] Done.
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf, 0, NotoSansArabic-Regular
[osd/libass] Glyph 0x53 not found, selecting one more font for (sans-serif, 400, 0)
[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/google-noto-vf/NotoSans[wght].ttf, 0, NotoSans-Regular
[vo/gpu] Reallocating OSD texture to 512x128.
[cplayer] EOF code: 5  
[vo/gpu/wayland] Disabling the idle inhibitor
[cplayer] finished playback, success (reason 3)
[cplayer] 
[cplayer] Exiting... (Quit)
[cplayer] Set property: shared-script-properties -> 1
[vo/gpu/wayland] Deregistering output AOC 27B2 (0x32)
[vo/gpu/wayland] Deregistering output BNQ G2420HDBL (0x2f)
[vo/gpu/wayland] Deregistering output Iiyama North America PL2730H (0x2d)
[vo/gpu/wayland] Deregistering output BNQ G2420HDBL (0x2c)

(Ignore the screenshot, I’m too used to s → stop 😬)

Sample files

Literally any file mpv can play.

Dudemanguy commented 5 months ago

This is most likely a duplicate of #9789. The tl;dr is that it should work if you use a qt application instead of a gtk one (like Dolphin) or disable focus_follows_mouse in sway. Nobody ever figured out whose bug this is and where to fix it.