Package Details: mpv-git 0.34.0_373_g0044c19f0d-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: 224
Popularity: 0.94
First Submitted: 2012-12-04 09:21 (UTC)
Last Updated: 2022-07-09 01:09 (UTC)

Required by (282)

Sources (2)

Pinned Comments

qmega commented on 2021-11-15 01:39 (UTC)

This package is now building with meson, which was recently added upstream as an alternative to waf. Please report any issues.

For the time being, waf support is still included upstream, so old versions of the PKGBUILD should still work. However, if the meson build doesn't work for you, please do report the problem.

Latest Comments

1 2 3 4 5 6 .. 33 Next › Last »

nadanke commented on 2022-07-08 07:08 (UTC)

@qmega Agree with all your points. I think this package is fine now, thank you for maintaining!

qmega commented on 2022-07-08 07:00 (UTC)

@nadanke That's a good point, and I think I've been too uptight about minimizing default dependencies. I've enabled luajit, x11, wayland, and libplacebo by default.

I still don't think this package should enable every optional feature. If you want that, there's mpv-full-git. (mpv has an above-average number of optional dependencies and a few are AUR-only, so I believe pulling them all in would be more trouble than it's worth for most users of this package.)

@C0rn3j I don't think optdepend is appropriate since installing it won't make an existing build work, but it's now a hard depend by default.

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.