You are not logged in.

#1 2019-04-25 10:30:52

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

mpv with hwdec=vaapi. Error "Cannot load libcuda.so.1"

I have a desktop PC with Intel(R) Core(TM) i7-7700 and integrated Intel HD Graphics 630.
I have installed intel-media-driver and libva.
I have defined LIBVA_DRIVER_NAME=iHD.
But when I play a video:

$ mpv --hwdec=vaapi "/multimedia/xxxxxxx.mkv" 
Playing: /multimedia/xxxxxxx.mkv
 (+) Video --vid=1 (*) 'xxxxxxx -BSTD' (hevc 3840x1920 23.976fps)
 (+) Audio --aid=1 --alang=spa (*) 'Castellano DTS-HD MA 5.1 @ 3454 kbps' (dts 6ch 48000Hz)
     Audio --aid=2 --alang=eng 'Inglés TrueHD 7.1 @ 3223 kbps' (truehd 8ch 48000Hz)
     Audio --aid=3 --alang=eng 'Inglés DD-EX 5.1 @ 640 kbps' (ac3 6ch 48000Hz)
     Audio --aid=4 --alang=eng 'Inglés DD 2.0 @ 224 kbps' (ac3 2ch 48000Hz)
     Audio --aid=5 --alang=eng 'Inglés DD 2.0 @ 192 kbps' (ac3 2ch 48000Hz)
     Audio --aid=6 --alang=eng 'Inglés DD 2.0 @ 192 kbps' (ac3 2ch 48000Hz)
 (+) Subs  --sid=1 --slang=spa (*) (f) 'Castellano Forzados [Planos]' (subrip)
     Subs  --sid=2 --slang=eng 'Inglés Completos [Planos]' (subrip)
     Subs  --sid=3 --slang=spa 'Castellano Forzados [PGS]' (hdmv_pgs_subtitle)
     Subs  --sid=4 --slang=spa 'Castellano Completos [PGS]' (hdmv_pgs_subtitle)
     Subs  --sid=5 --slang=eng 'Inglés Completos SDH [PGS]' (hdmv_pgs_subtitle)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
[vo/gpu/vaapi-egl] vaAcquireSurfaceHandle() failed (invalid VASurfaceID)
Cannot load libcuda.so.1
AO: [pulse] 48000Hz 5.1(side) 6ch s32
Using hardware decoding (vaapi).
VO: [gpu] 3840x1920 vaapi[p010]
AV: 00:00:40 / 01:56:50 (0%) A-V:  0.000
Saving state.
...

It plays the video with hardware acceleration but
1) why mpv tries to load "libcuda"?
2) Isn't "libcuda" a library for Nvidia drivers?
3) Should I install that library?

Last edited by j1simon (2019-04-25 10:31:18)

Offline

#2 2019-04-25 10:50:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,415

Re: mpv with hwdec=vaapi. Error "Cannot load libcuda.so.1"

1) Because it is compiled with support for it to use when you actually have nvidia hardware
2) It is.
3) Unlikely to give you any benefit

Offline

#3 2019-04-25 10:55:53

j1simon
Member
From: Denmark
Registered: 2016-01-28
Posts: 189

Re: mpv with hwdec=vaapi. Error "Cannot load libcuda.so.1"

If I specifically set "hwdec=vaapi", I think it should be clear enough for mpv not to try to load that library. IMHO, it looks like an error in the mpv code. Don't you agree?

Offline

#4 2020-05-18 08:49:56

smekkleysa
Member
Registered: 2013-11-18
Posts: 15

Re: mpv with hwdec=vaapi. Error "Cannot load libcuda.so.1"

I noticed this message when I use celluloid. 

It depends how it's implemented. Maybe their code is more efficient if they do dlopen regardless when the option is specified. In my opinion, the message should be info for non nvidia hardware and warning for nvidia hardware.
https://mpv.io/manual/stable/ says that vaapi option is less than ideal.

Offline

#5 2020-05-18 09:39:35

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: mpv with hwdec=vaapi. Error "Cannot load libcuda.so.1"


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB