mpv falls back to software deconding
I own a desktop machine with an nVidia video card. I use it with the xf86-video-nouveau driver and occasionally I play videos on it with mpv. An issue I noticed recently is that you can’t use mpv with the opengl (or opengl-hq) output drivers. It works fine if you use it with the xv or x11 video drivers but when you try to use the opengl video drivers you get the following error:
libGL error: MESA-LOADER: could not create udev device for fd 12
libGL error: MESA-LOADER: could not create udev device for fd 12
MESA-LOADER: could not create udev device for fd 13
MESA-LOADER: could not create udev device for fd 13
MESA-LOADER: could not create udev device for fd 15
MESA-LOADER: could not create udev device for fd 15
MESA-LOADER: could not create udev device for fd 15
Using software decoding.
In this case fd 12, 13 and 15 are open file descriptors for `/dev/dri/card0`. I don’t know much about udev and I don’t know why it needs to create a udev device for /dev/dri/card0. In case somebody knows more about this please enlighten me.
If I run mpv as root everything works fine but that’s not the kind of thing I would like to do (and yes, the user I am running mpv as is in the video group). Furthermore the issue also doesn’t show up on my laptop on which I use xf86-video-intel.
(from redmine: issue id 6404, created on 2016-10-28)