MPV does not work on X11

  • Done
  • quality assurance status badge
Details
5 participants
  • Jorge P. de Morais Neto
  • Kaelyn
  • Ludovic Courtès
  • Markus Nilsson
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Jorge P. de Morais Neto
Severity
normal
Merged with
J
J
Jorge P. de Morais Neto wrote on 14 Nov 2022 19:54
MPV does not work on X11 on Debian
(address . bug-guix@gnu.org)
87wn7xwem5.fsf@disr.it
Hi. MPV stopped working on my Debian bullseye since the upgrade to
version 0.35. I have locally fixed the problem by adding libxpresent
input to mpv recipe.

Regards
--
- Many people hate injustice but few check the facts; this causes more
injustice. Ask me about https://stallmansupport.org
- Please adopt free/libre formats like PDF, Org, LaTeX, ODF, Opus, WebM and 7z.
- Libre apps for AOSP (Replicant, LineageOS, etc.) and Android: F-Droid
M
M
Markus Nilsson wrote on 17 Nov 2022 01:08
Mpv also won't play video on Guix System
(address . 59279@debbugs.gnu.org)
CA+phM3LQyaV0KLE=82KMjH_qrk+T9R2YoRLgnr8Muj5YfPQ5YA@mail.gmail.com
I can confirm that on Guix System mpv also fails after the upgrade to 0.35

Mpv won't play videos but it can play audio in the terminal. When trying to
play videos it will give the following error:

"[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be
unavailable.
amdgpu_device_initialize: amdgpu_query_info(ACCEL_WORKING) failed (-13)
amdgpu: amdgpu_device_initialize failed.
[vo/gpu] Failed to commit ModeSetting atomic request (-13)
[vo/gpu/opengl] Failed to set CRTC for connector 66: Permission denied
Error opening/initializing the selected video_out (--vo) device.
Video: no video

Exiting... (Errors when loading file)"

This also sometimes causes the desktop environment to crash and go to the
login screen.

A quick google search indicates that this seems to happen because mpv now
needs libxpresent to work with x11 (just like Jorge P. de Morais said above
):

Mpv Issue no.
10327
Arch Linux package mpv-git
Mpv Issue no. 9773

I would submit a patch to fix this if I was better at guile. Is someone out
there up to the task?

Cheers
Markus
Attachment: file
T
T
Tobias Geerinckx-Rice wrote on 18 Nov 2022 14:08
Re: bug#59339: mpv: possible misconfiguration
(name . Kristian Lein-Mathisen)(address . kristianlein@gmail.com)
874juwcst2.fsf@nckx
retitle 59279 MPV does not work on X11
merge 59279 59339
thanks

Kristian Lein-Mathisen ???
Toggle quote (2 lines)
> Is it possible that mpv's default configuration has changed

Yes, that seems to be the case. Thanks for the report!

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY3eEKQ0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15olQBAOO6yJerT0I0g/N1qJ3jjWfOJ6G5pgxVpSIA7nxG
QQR4AQCwW0x/XwANN31UEidzesJpOma4ZaK2vNPa6n8HHotlDQ==
=GoWh
-----END PGP SIGNATURE-----

T
T
Tobias Geerinckx-Rice wrote on 19 Nov 2022 10:53
Re: bug#59279: MPV does not work on X11
(address . 59279@debbugs.gnu.org)
87k03r9sm4.fsf@nckx
Hi,

Could someone test the patch at

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY3in4w0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW1598EBAMKaGNlwQC1N6XGY1ibiJdKp73INy6MVdoD+comC
fzXZAQDa/7O6+K1/pPsEDrFYftKlOwYshd1KDsuV6Q5jFy3gAw==
=7mMW
-----END PGP SIGNATURE-----

K
K
Kaelyn wrote on 19 Nov 2022 21:57
(name . 59279@debbugs.gnu.org)(address . 59279@debbugs.gnu.org)(name . 59378@debbugs.gnu.org)(address . 59378@debbugs.gnu.org)
GeDUKx5fYRcxGeL0MgkNpKrc7m4KW4s91hSt1SwIlihw3xKEi58ERhBMbTmX5eMtNHU-2o7fwGIhmof9A6zb9tdRaR12t9XIZEm_A6i19tM=@protonmail.com
Hi,

I recently encountered the same error with mpv 0.35 on X11, and can confirm that the patch in https://issues.guix.gnu.org/59378fixes the playback error.

Cheers,
Kaelyn
L
L
Ludovic Courtès wrote on 22 Nov 2022 08:51
Re: bug#59378: [PATCH] gnu: mpv: Add libxpresent input.
(name . Martin Marshall)(address . law@martinmarshall.com)
87v8n7ig01.fsf@gnu.org
Hi,

Martin Marshall <law@martinmarshall.com> skribis:

Toggle quote (4 lines)
> Fixes issue 59279 "MPV does not work on X11".
>
> * gnu/packages/video.scm (mpv)[inputs]: Add libxpresent.

Works for me too. Applied, thanks!

Ludo’.
Closed
?