I agree this is annoying. We would all like to see nice consistent
window decorations. So before reading on, remember we're on the same
side :)

Firstly you should know that choosing Wayland instead of X11 is an
Ubuntu feature and not a bug. We patch that in on Ubuntu in order to
provide hardware-accelerated playback:

https://launchpad.net/ubuntu/+source/mpv/0.26.0-3ubuntu1

But that change is not upstream for reasons such as the missing window
decorations:

https://github.com/mpv-player/mpv/pull/4556

Choosing Wayland and not X11 is necessary because libva (VA-API) only
supports DRI2 and Xwayland only supports DRI3. They are not compatible
with each other so --opengl-backend=x11* will never get acceleration in
a Wayland session.

Hardware-accelerated video playback was a major feature in Ubuntu 17.10.
The problem is we have to choose between having window decorations or
having hardware acceleration. And Ubuntu has chosen hardware
acceleration. In fact, the missing window decorations are not an mpv
bug, but a general problem with all native wayland apps right now. The
app/toolkit has to provide its own window decorations with Wayland. GTK
does that so you won't notice a problem with GTK apps.

Unfortunately using --opengl-backend=x11egl undoes this change, turning
off hardware acceleration. And that's a very big deal because modern 4K
and HEVC videos simply can't be played without hardware acceleration
even on high-end CPUs. So we'll stick with the Ubuntu default of
--opengl-backend=wayland. We need acceleration working.

If mpv 0.28 somehow fixes this then great. But I suspect actually that
PPA only works because it omits the Ubuntu patches which we would like
to keep.

I suggest a better solution you would be happy with is to install gnome-
mpv instead. That will give you window decorations. But that does mean
inefficient playback (see https://community.ubuntu.com/t/hardware-
accelerated-video-playback/304/4).

** Changed in: mpv (Ubuntu)
       Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1739880

Title:
  on wayland, mpv opens without window elements, OSD missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mpv/+bug/1739880/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to