Package Details: mpv-git 0.37.0_114_g17be6e1990-1

Git Clone URL: https://aur.archlinux.org/mpv-git.git (read-only, click to copy)
Package Base: mpv-git
Description: Video player based on MPlayer/mplayer2 (git version)
Upstream URL: https://mpv.io
Keywords: media player video
Licenses: GPL
Conflicts: mpv
Provides: libmpv.so, mpv
Submitter: rpolzer
Maintainer: qmega
Last Packager: qmega
Votes: 226
Popularity: 0.88
First Submitted: 2012-12-04 09:21 (UTC)
Last Updated: 2023-12-20 08:54 (UTC)

Required by (377)

Sources (2)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 37 Next › Last »

nadanke commented on 2022-07-07 17:58 (UTC) (edited on 2022-07-07 18:00 (UTC) by nadanke)

According to the wiki, "Dependencies should normally include the requirements for building all optional features of a package. Alternatively, any feature whose dependencies are not included should be explicitly disabled via a configure option."

https://wiki.archlinux.org/title/PKGBUILD#depends

The mpv package in the community repo has 72 dependencies, including luajit and it will presumably depend on libxpresent once a new official version will be released.

I do think it makes sense to at least add those two here - I reckon most people want OSC and X support, instead of having them rebuild the package after installing it the first time those who don't want those features can edit the PKGBUILD themselves. just my 2 cents

C0rn3j commented on 2022-07-07 13:19 (UTC)

Would be nice to add libxpresent to optdepends at least.

Batou commented on 2022-06-21 02:41 (UTC)

@qmega THANK YOU!! Installing libxpresent fixed it for me. Everything's working well. Thanks for doing an awesome job maintaining this package! I know it's not easy.

qmega commented on 2022-06-20 23:41 (UTC) (edited on 2022-06-20 23:49 (UTC) by qmega)

@legionnaire That looks like most likely the same issue as previous comment. You probably just need to install libxpresent (or uncomment "x11" in _opt_features near the top of the PKGBUILD) and rebuild the package. My guess it that you had been using X11 for your video output, x11 support is no longer getting compiled for you due to the new dependency on libxpresent which you don't have installed, and the errors you actually see are from mpv attempting to automatically fallback to a drm-based output or something similar and failing to do that too.

Also, using sudo with mpv sounds like a pretty bad idea (huge attack surface, and shouldn't be much need). There might be something else wrong if you find yourself having to do that.

EDIT: Did you rebuild mpv-git (e.g. makepkg -f) after installing libxpresent, or just reinstall the already-built package? The latter would not be enough.

If you really did rebuild with libxpresent available and you're still getting that same error message, that's rather suspicious given the timing and the particular messages, but the next thing would be to check the "List of enabled features" returned by mpv --v and ensure that x11 is in there, assuming that you do use X11. If you don't use X11, please provide more details about your environment.

legionnaire commented on 2022-06-20 23:32 (UTC) (edited on 2022-06-20 23:35 (UTC) by legionnaire)

This is crashing on open after I updated:

(+) Video --vid=1 () (h264 1920x1080 29.970fps) (+) Audio --aid=1 --alang=eng () (aac 2ch 48000Hz) Subs --sid=1 --slang=eng (subrip) error: XDG_RUNTIME_DIR not set in the environment. [vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device [vo/gpu/opengl] Failed to set up VT switcher. Terminal switching will be unavailable. [vo/gpu] Failed to commit ModeSetting atomic request (-13) [vo/gpu/opengl] Failed to set CRTC for connector 95: Permission denied error: XDG_RUNTIME_DIR not set in the environment. [ao/alsa] Playback open error: Host is down [ao/jack] cannot open server [ao] Failed to initialize audio driver 'pipewire' Could not open/initialize audio device -> no sound. Audio: no audio VO: [gpu] 1920x1080 yuv420p [vo/gpu/vulkan/libplacebo] vk->CreateSwapchainKHR(vk->dev, &sinfo, PL_VK_ALLOC, &p->swapchain): VK_ERROR_UNKNOWN (../src/vulkan/swapchain.c:583) [vo/gpu/vulkan/libplacebo] Failed (re)creating swapchain! Could not initialize video chain. Video: no video

Exiting... (Errors when loading file)

I've never opened MPV through bash (I just used "sudo mpv media.mkv") but I wanted to have some sort of log to paste here. If I just click on the executable from the start menu it opens (with the loading icon) for a few seconds then crashes.

EDIT: I installed libxpresent and then reinstalled mpv-git but it still crashes

qmega commented on 2022-06-20 22:07 (UTC)

@Batou You probably need to install libxpresent and rebuild the package. If you updated your PKGBUILD in the last few hours, there was supposed to be a message to that effect when pacman installed the package.

Batou commented on 2022-06-20 22:02 (UTC)

mpv-git does not work for me anymore. I'm now getting:

[vo/gpu] VT_GETMODE failed: Inappropriate ioctl for device
[vo/gpu] Failed to commit ModeSetting atomic request (-22)
[vo/gpu/opengl] Failed to set CRTC for connector 79: Invalid argument
[vo/gpu/vulkan/libplacebo] vk->CreateSwapchainKHR(vk->dev, &sinfo, PL_VK_ALLOC, &p->swapchain): VK_ERROR_UNKNOWN (../src/vulkan/swapchain.c:583)
[vo/gpu/vulkan/libplacebo] Failed (re)creating swapchain!
[cplayer] Could not initialize video chain.

every time I start the mpv. I only get the audio. I've tried everything. Even if you don't use mpv.conf file, it doesn't display anything. Non git mpv from Arch does work. No idea what's going on.

qmega commented on 2022-06-20 15:08 (UTC)

@DEC05EBA Sorry, I didn't seem to get an email notification for your comment. Currently I do see mpv_stream_cb_add_ro exported with this package on my system. I'd guess it was fixed by https://github.com/mpv-player/mpv/issues/9971 Let me know if you still have the issue. If it does still happen to you but only with this package, it may have to do with build flags.

qmega commented on 2022-06-20 15:02 (UTC) (edited on 2022-06-20 15:50 (UTC) by qmega)

I already added that if you uncomment the x11 feature in _opt_features (as usual it'll be enabled automatically if it's already installed when you build).

Maybe I'll try to add a note of some kind if you have libxrandr but not libxpresent installed, since that will unexpectedly disable x11 support. EDIT: Added a warning on install if you are upgrading from a version before the commit adding xpresent and you have the previous x11 depends installed but not libxpresent.

haawda commented on 2022-06-20 10:19 (UTC)

New dependency libxpresent, see https://github.com/mpv-player/mpv/commit/3d459832a88a9bd2835b339cf6ca98f84aad0115