Package Details: mpv-rpi 1:0.30.0-1

Git Clone URL: https://aur.archlinux.org/mpv-rpi.git (read-only, click to copy)
Package Base: mpv-rpi
Description: mpv with Raspberry Pi support
Upstream URL: https://mpv.io/
Licenses: GPL3
Conflicts: mpv
Provides: mpv
Submitter: fmang
Maintainer: fmang
Last Packager: fmang
Votes: 8
Popularity: 0.000000
First Submitted: 2016-09-14 09:47
Last Updated: 2019-11-06 02:22

Required by (168)

Sources (2)

Pinned Comments

alvearian commented on 2020-02-27 23:58

To sum up, mpv-rpi is not needed for rpi4, and --vo=rpi is not going to be fixed.

mpv --vo=gpu --gpu-context=drm --drm-connector=<card-number>.<connector-name> --hwdec=v4l2m2m-copy (or --hwdec=mmal-copy) does the job and makes use of hardware acceleration

For that to achieve you need the newest ffmpeg-git (for mmal, built like ffmpeg-mmal). Here is all the info https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=266123&p=1618765#p1618765

Latest Comments

1 2 3 4 5 6 Next › Last »

alfrednewman commented on 2020-09-15 05:15

After installing mpv-rpi through here on my Raspberry Pi 3 and trying to play a video with it, it refuses to load any videos. When try to play a video using the terminal, mpv video.mp4 I get this error.

 (+) Video --vid=1 (*) (h264 958x720 29.970fps)
 (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
* failed to add service - already in use?

What can I do to fix this problem? I am completely stumped. I can't tell if this advice given about the Raspberry Pi 4 is applicable here and if this AUR package is obsolete.

fmang commented on 2020-02-28 02:17

@alvearian Thanks for the tip!

alvearian commented on 2020-02-27 23:58

To sum up, mpv-rpi is not needed for rpi4, and --vo=rpi is not going to be fixed.

mpv --vo=gpu --gpu-context=drm --drm-connector=<card-number>.<connector-name> --hwdec=v4l2m2m-copy (or --hwdec=mmal-copy) does the job and makes use of hardware acceleration

For that to achieve you need the newest ffmpeg-git (for mmal, built like ffmpeg-mmal). Here is all the info https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=266123&p=1618765#p1618765

alvearian commented on 2020-02-27 09:23

Reported the issue upstream https://github.com/mpv-player/mpv/issues/7492

alvearian commented on 2020-02-25 17:20

Here is some follow up info on this topic from the pi engineers: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=266123&p=1617098#p1617098

They say that this error means, that mpv-rpi:

is trying to use the old (legacy) firmware GLES driver which does not exist on the Pi4.

alvearian commented on 2020-02-25 09:58

I'm trying to launch mpv-rpi on rpi4, but getting this error:

➜ ~ mpv --drm-mode=highest --hwdec=mmal --vo=rpi movie.mkv
(+) Video --vid=1 (*) (h264 1920x1080 24.000fps)
(+) Audio --aid=1 --alang=eng (*) (eac3 6ch 48000Hz)
(+) Subs --sid=1 --slang=rus (*) 'TeamNotDead' (subrip)
Subs --sid=2 --slang=eng (subrip)
AO: [pulse] 48000Hz 5.1(side) 6ch float
Using hardware decoding (mmal).
VO: [rpi] 1920x1080 mmal
* failed to add service - already in use?

This error seems to come from EGL, as intensive googling suggests. If I change it to --vo=gpu it's the same.

I have dtoverlay=vc4-fkms-v3d in boot/config.txt, if it matters. Also, I have libglvnd & mesa installed in my system as dependencies of smth, maybe some wrong EGL comes from them?

Any ideas?

fmang commented on 2020-01-07 01:18

@ivanich Thanks for the links. I did get the build error caused by the missing typedef EGLAttrib. Looks like even if I had got it to build it wouldn’t have worked anyway though…

I’ll wait and see how the issue 7314 gets solved. If it takes to much time or no satisfying workaround is found, maybe I’ll rollback this package. There’s no point of using mpv-rpi instead of mpv if hardware acceleration doesn’t work.

For anyone preferring to use the older but working mpv-rpi 0.29.1, here’s the previous version: 69b28392d825. (Edit: plain version of the PKGBUILD at https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=mpv-rpi&id=69b28392d825)

ivanich commented on 2020-01-06 22:27

@fmang There is some info from upstream https://github.com/mpv-player/mpv/issues/7314 https://github.com/mpv-player/mpv/issues/6838

fmang commented on 2020-01-05 23:10

@iegubkin @xigurat Someone reported the same issue on GitHub, with a workaround: https://github.com/mpv-player/mpv-build/issues/89#issuecomment-404628857

Disabling GL from raspi-config sounds a bit overkill, but if that works, then at least we’ll have an idea where to look.

I’ve also noticed mpv 0.31 just got released, so I’ll update this package and, who knows, maybe that will fix the issue.

xigurat commented on 2019-12-26 21:54

@iegubkin I'm experiencing exactly the same thing, what i did, clone the mpv-rpi repo, go to the previous commit (69b2839) and compile it

git clone https://aur.archlinux.org/mpv-rpi.git
cd mpv-rpi
git checkout HEAD^
makepkg -si