Bug 20114

Summary: mpv fails to open nvidia driver
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: José Jorge <lists.jjorge>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: marja11
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mpv-0.22.0-2.mga6.src.rpm CVE:
Status comment:

Description Chris Denice 2017-01-13 13:52:51 CET
Just tested mpv under current Cauldon. On the command line, mpv fails opening nvidia driver with this message:


mpv biaggi.avi
Auto-loading profile 'vo.vaapi'
'vo' auto profiles are deprecated.
Playing: biaggi.avi
 (+) Video --vid=1 (indeo3)
 (+) Audio --aid=1 (adpcm_ms)
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
[vaapi] vaInitialize(): unknown libva error


Indeed, the nvidia driver is not located in /usr/lib64/dri.
It seems to be located there:
/usr/lib64/nvidia-current/xorg/nvidia_drv.so


Cheers,
Chris.
Marja Van Waes 2017-01-13 15:50:57 CET

CC: (none) => marja11
Assignee: bugsquad => lists.jjorge

Comment 1 José Jorge 2017-01-13 18:54:30 CET
You are wrong : libva tries to open a VAAPI nvidia driver that does not exist at the moment.

You must use VDPAU to use proprietary nvidia hardware acceleration.

mpv --hwdec=vdpau --vo=vdpau biaggi.avi

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 2 Chris Denice 2017-01-14 16:56:25 CET
Ok, thanks for the info. But I did not do anything else than trying it.

Why is it the default then if the driver does not exist yet?
Comment 3 José Jorge 2017-01-14 17:54:50 CET
(In reply to Chris Denice from comment #2)
> Ok, thanks for the info. But I did not do anything else than trying it.
> 
> Why is it the default then if the driver does not exist yet?

The default is to use vaapi, as with all intel hardware since sandybridge you have a driver. Then it should try vdpau, and at least software decoding.
Comment 4 Chris Denice 2017-01-14 21:43:07 CET
I see, these messages are just warnings then, and most likely the vdpau nvidia driver is actually used.

Sorry for the noise!

cheers.