mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Cannot use mpv in X if a Wayland compositor is running in another VT.

Open lovelacehq opened this issue 12 years ago • 5 comments

I was testing out mpv in Weston on another VT, which worked wonderfully. I CTRL+ALT+F1'd back to X and tried to play mpv there for a moment, while Weston was still running. I got this:

Playing: [Filename Redacted].mkv
[stream] Video (+) --vid=1 'H.264 720p BD' (h264)
[stream] Audio (+) --aid=1 --alang=jpn (*) 'AAC LC 2.0 200Kbps' (aac)
[stream] Subs  (+) --sid=1 --slang=eng (*) 'Styled Subtitles' (ass)
File tags:
 TITLE: [Title Redacted]
wl_drm@20: error 0: authenicate failed
[vo/opengl] OpenGL context creation failed!
Segmentation fault

After exiting Weston and switching back to X, mpv worked again. I guess if authentication fails, it doesn't try to use the X backend?

Also, curiously, there is a typo in that authentication error. It says "authenicate".

lovelacehq avatar Aug 29 '14 15:08 lovelacehq

I can confirm this, exact same problem for me.

pinumbernumber avatar Aug 29 '14 19:08 pinumbernumber

In the config file specify a backend for the opengl output.

vo=opengl-hq:backend=x11

wl_drm@20: error 0: authenicate failed

Thats an error from the wayland library:

giselher avatar Aug 30 '14 07:08 giselher

Commit: 593e5e4a25812662478d830e1effbc1bb5f3b97e should fix this but note that it executes vdpau after opengl.

giselher avatar Aug 30 '14 08:08 giselher

Does it work like expected now? I will close this issue. If there are still some questions or problems feel free to comment and to reopen this issue.

giselher avatar Sep 01 '14 04:09 giselher

Woah, that was unexpected. I have the same problem on debian unstable with mpv version 0.20.0-1+b1 and weston 1.11.0-1 running. Fortunately killing the weston sesssion fixes this problem.

Playing: <any file>
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (aac)
wl_drm@15: error 0: authenicate failed
Segmentation fault

nkuttler avatar Oct 17 '16 15:10 nkuttler