You are not logged in.
I have an Intel only desktop: VGA compatible controller: Intel Corporation UHD Graphics 630 (Desktop)
And whenever I start mpv, i get errors about the Nvidia driver:
mpv Videos/TV/The.Kingdom/The\ Kingdom.S01E01.avi
(+) Video --vid=1 (mpeg4 512x384 25.000fps)
(+) Audio --aid=1 (mp3 2ch 22050Hz)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] No Xvideo support found.
[vaapi] libva: /usr/lib/dri/i965_drv_video.so init failed
[vaapi] Failed to initialize VAAPI: unknown libva error
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
AO: [pulse] 22050Hz stereo 2ch float
VO: [x11] 512x384 yuv420p
AV: 00:00:00 / 01:03:12 (0%) A-V: 0.000
Exiting... (Quit)My mpv conf does not specify a hardware driver:
no-border
fullscreen=yes
stop-screensaver=yes
ao=pulse
sid=noI have folowed the wiki with setting up vaapi: so I export the env variable export LIBVA_DRIVER_NAME="i965" and I have the requisite package installed:
libva 2.9.1-1
libva-intel-driver 2.4.1-1
libva-utils 2.9.1-1Why is mpv looking for the Nvidia driver? And why am I spammed with error messages about the driver failing? It is listed under /usr/lib/dri...
Last edited by jasonwryan (2020-11-27 21:30:33)
Offline
There must be something configuring mpv to ask for the nvidia driver, no?
I have an Intel only system with the same video card, and mpv plays fine with avi or mp4 files.
I'm running a non configured mpv, playing OOTB.
FYI not setup vaapi.
Installed files:
libcaca-0.99.beta19-3-x86_64 libdvdread-6.1.1-1-x86_64
libdvdnav-6.1.0-2-x86_64 spirv-tools-2020.4-1-x86_64
glslang-11.0.0-1-x86_64 shaderc-2020.3-1-x86_64
libplacebo-2.72.2-1-x86_64 uchardet-0.0.7-1-x86_64
mujs-1.0.9-1-x86_64 vamp-plugin-sdk-2.10.0-1-x86_64
rubberband-1.9-1-x86_64 mpv-1:0.33.0-3-x86_64Offline
I can find any conf or evironment variable referencing vdpau... Removing the config entirely makes no difference. I'm stumped.
Offline
What happens, when you start mpv with VDPAU_DRIVER=va_gl ?
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
I'm suspecting the underlying issue is that the initially attempted vo opengl fails and then it starts to search for not failing candidates.
Likely due to
build: disable GLX by default
https://github.com/mpv-player/mpv/releases/tag/v0.33.0 so the question is why is EGL initialization failing.
Offline
What happens, when you start mpv with VDPAU_DRIVER=va_gl ?
No difference:
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
Failed to open VDPAU backend libvdpau_va_gl.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] No Xvideo support found.
[vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[vaapi] Failed to initialize VAAPI: unknown libva error
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.I'm suspecting the underlying issue is that the initially attempted vo opengl fails and then it starts to search for not failing candidates.
Likely due to
mpv release notes wrote:
build: disable GLX by defaulthttps://github.com/mpv-player/mpv/releases/tag/v0.33.0 so the question is why is EGL initialization failing.
My older laptop, running [testing], and with an Intel card, has no issues.
I suppose I just add reallyquiet to the conf file and ignore it...
Offline
You're sure it isn't the file?, just checking.
edit: homebrew mp4 first, second is drop.avi
I downloaded an avi from https://www.engr.colostate.edu/me/facil … s/avis.htm (drop.avi) to test with hardware accel. vaapi
output;
mpv --hwdec=auto Templates/20190426_031023.mp4
(+) Video --vid=1 (*) (h264 1920x1080 30.009fps)
(+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:09 / 00:00:09 (97%) A-V: 0.000
Exiting... (End of file)
-->asterope@18:30--mpv --hwdec=auto Downloads/drop.avi
(+) Video --vid=1 (indeo4 256x240 30.000fps)
VO: [gpu] 256x240 yuv410p
V: 00:00:05 / 00:00:06 (95%)
Exiting... (End of file)edit: drop.avi
mpv --hwdec=auto Downloads/drop.avi
(+) Video --vid=1 (indeo4 256x240 30.000fps)
VO: [gpu] 256x240 yuv410p
V: 00:00:06 / 00:00:06 (99%)
Exiting... (End of file)Last edited by qinohe (2020-11-26 18:01:31)
Offline
mpv --hwdec=auto drop.avi
(+) Video --vid=1 (indeo4 256x240 30.000fps)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] No Xvideo support found.
[vaapi] libva: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[vaapi] Failed to initialize VAAPI: unknown libva error
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
VO: [x11] 256x240 yuv410p
V: 00:00:00 / 00:00:06 (14%)Offline
Issue with mesa's iris ? What vo is the older laptop ending up using? Give https://wiki.archlinux.org/index.php/In … ver_(i965) a shot? Any xorg conf enforcing DRI2 ? Is glxinfo fine? From what I'm reading the narrative it shouldn't end up trying all of these other methods (... if you don't pass an explicit hwdec) unless the OGL one fails for some reason.
Offline
Thanks V1del. The mesa driver override variable makes no difference. The output of glxinfo is here: http://ix.io/2FzI My only xorg conf is to set the dpi of the monitor.
Offline
What do you get when 'playing';
mpv --vo=gpu --hwdec=vaapi drop.avi
?
Offline
What do you get when 'playing';
mpv --vo=gpu --hwdec=vaapi drop.avi
?
Nothing good ![]()
mpv --vo=gpu --hwdec=vaapi drop.avi
(+) Video --vid=1 (indeo4 256x240 30.000fps)
libEGL warning: DRI2: failed to authenticate
[vo/gpu/opengl] Suspected software renderer or indirect context.
[vo/gpu] Failed initializing any suitable GPU context!
Error opening/initializing the selected video_out (--vo) device.
Video: no video
No video or audio streams selected.
Exiting... (Errors when loading file)Offline
Hmm, I don;t have an answer right away, but it seems something is awry with the X env. (like your drivers)
edit: I don't know if plays a role really, but could you remove the vaapi export you created? ; 'export LIBVA_DRIVER_NAME="i965"'
I didn't create this variable ITFP ![]()
Last edited by qinohe (2020-11-26 19:51:57)
Offline
I removed it last night and have since rebooted. I am working from as vanilla a setup as possible to try and narrow down the issue.
I also noticed that on my laptop, my user is in the video group. I didn't think this was necessary anymore, but to be sure I tried adding my desktop user to that group: no change.
# edit: Xorg log http://ix.io/2FA1
Last edited by jasonwryan (2020-11-26 20:15:18)
Offline
That's right yes, you don't need to be part of that group anymore.
Well, something is setting it that's for sure.
Though I think you're able to troubleshoot yourself, you could leave 'env' output here so 'others can take a look;)
edit:
[ 33.457] (II) LoadModule: "intel"
[ 33.458] (WW) Warning, couldn't open module intel
[ 33.458] (EE) Failed to load module "intel" (module does not exist, 0)mine:
[ 12.453] (II) LoadModule: "intel"
[ 12.453] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 12.454] (II) Module intel: vendor="X.Org Foundation"
[ 12.454] compiled for 1.20.9, module version = 2.99.917
[ 12.454] Module class: X.Org Video Driver
[ 12.454] ABI class: X.Org Video Driver, version 24.1
[ 12.454] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 12.454] (II) intel: Driver for Intel(R) HD Graphics
[ 12.454] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[ 12.454] (II) intel: Driver for Intel(R) Iris(TM) Pro GraphicsLast edited by qinohe (2020-11-26 20:24:06)
Offline
Yep, I don't use the intel driver on either machine; native modesetting works better for me.
Offline
Okay, but it seems like it isn't right it still tries to find the Intel module?
When I set my env. 'native modesetting', X doesn't refer to the Intel module that doesn't exist.
So I don't know if that's also the problem for video not playing, but mine plays on modesetting.
I think there's a glitch in your config somehow.
If you wish I upload my X log;)
BTW the only xf86 tools installed are; xf86-input-evdev & xf86-input-libinput
Last edited by qinohe (2020-11-27 02:31:24)
Offline
Thanks. I get the same errors in the laptop's log. Maybe I'll install the intel driver and see if that makes any difference.
I agree that something is wrong, but I'll be damned if I can find it.
Offline
Probably related? https://bbs.archlinux.org/viewtopic.php?id=261047
I'm still suffering that issue.
Excuse my poor English.
Offline
I downgraded mpv and libplacebo and got the same errors, and a couple more.
Offline
So the next thing would be where that file or incorrect config would hide itself.
Let's first see in one of these 3 dirs,; modprobe.d modules-load.d or xorg.conf.d.
& nothing strange in xinitrc?
Offline
No, I have been through all of them:
┌─[Centurion ~: «SSH»]
└─╼ ls /etc/modprobe.d/ /etc/modules-load.d/ /usr/lib/modprobe.d/ /etc/X11/xorg.conf.d/
/etc/X11/xorg.conf.d/:
20-monitor.conf
/etc/modprobe.d/:
/etc/modules-load.d/:
/usr/lib/modprobe.d/:
nvdimm-security.conf systemd.confOffline
What strikes me most about your X log is these many errors for things it tries to load that may not even be there in the first place.
For now I don't have a clue, I even took the liberty & went through your .dotfiles on Centurion but it 'seems' there's nothing wrong there too...:-(
Offline
Thanks for all the suggestions. I've been trying all sorts of things and, with my limited knowledge of the graphics stack, it is a complete crapshoot.
I'm just going to live with the errors for the time being because I don't want to waste any more of my, or the community's , time on this.
Offline
Your glxinfo shows that you are using llvmpipe and thus your graphics acceleration is broken for all intents and purposes.
The xorg log shows it's loading swrast right out of the gate, might also be the old race condition that popped up quite prevalently with 5.9 and you might want to give https://wiki.archlinux.org/index.php/Ke … _KMS_start a shot (though it seems to be able to access the DRM device just fine). Also unintentional global export of e.g. LIBGL_ALWAYS_SOFTWARE=1 or so? What's your output for
LIBGL_DEBUG=1 glxinfo -B
dmesg | grep i915Assuming you still want to indulge us here of course, but right now you don't have a proper acceleration setup.
Offline