Page 1 of 5
vaapi nvidia driver
Posted: 7 September 2012, 19:43
by promeneur
with 2010.2 32 bit
and a nvidia graphical card
there is no graphical hw acceleration for vlc or other app
there is a packet libva wich supplies a vaapi dummy driver, a vaapi intel driver but no vaapi nvidia driver : nvidia_drv_video.so
with 2012 lts there is a packet named "vaapi-driver-vdpau" wich supplies nvidia_drv_video.so
Re: vaapi nvidia driver
Posted: 7 September 2012, 19:57
by promeneur
also there is no hw accel with gstreamer
the vaapi gstreamer module is not supplies
with 2012 lts there is a packet named "gstreamer0.10-vaapi"
please supply the vaapi gstreamer module
thanks
Re: vaapi nvidia driver
Posted: 10 September 2012, 12:31
by GvMariani
promeneur wrote:with 2010.2 32 bit
and a nvidia graphical card
there is no graphical hw acceleration for vlc or other app
there is a packet libva wich supplies a vaapi dummy driver, a vaapi intel driver but no vaapi nvidia driver : nvidia_drv_video.so
with 2012 lts there is a packet named "vaapi-driver-vdpau" wich supplies nvidia_drv_video.so
You know, I was sure to already have done those packages...
Anyway, you can now find all them in the 2010.2 repo, under the dir "others/mesa-xorg/libva-libvdpau".
You will need to install both libraries (va and vdpau), beside the vaapi-vdpau backend.
Cheers.
GvM
Re: vaapi nvidia driver
Posted: 10 September 2012, 14:46
by promeneur
thanks
but what about gstreamer vaapi ?
i checked with vainfo and vdpauinfo the hw accel is installed
but
how to know if hw accel is used because i don't see any differency when i enable hw accel in vlc about 35-40 % of the cpu power
i test the hw accel with a HD stream (tv) Codec : H264 - MPEG-4 AVC (part 10) (h264)
Re: vaapi nvidia driver
Posted: 10 September 2012, 16:16
by promeneur
something is badly installed
when launching vlc then i have these messages :
libva: libva version 0.31.0-sds5
Xlib: extension "XFree86-DRI" missing on display ":0". <<<<<<<<<<<<<<<<<
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns -1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
for XFree86-DRI i don't know what to do
for nvidia-drv_video.so i discovered that /usr/lib/va directory does not exist !
i created va/drivers/ subtree in /usr/lib/
then
i put a link nvidia_drv_video.so that i found in /usr/lib/dri/
then
same messages
it seems vlc search hw accel components in bad places
note :
- in vlc log i have no messages as "avcodec decoder: Using VA API version 0.32 for hardware decoding"
Re: vaapi nvidia driver
Posted: 10 September 2012, 20:22
by GvMariani
promeneur wrote:something is badly installed
when launching vlc then i have these messages :
libva: libva version 0.31.0-sds5
Xlib: extension "XFree86-DRI" missing on display ":0". <<<<<<<<<<<<<<<<<
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns -1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
for XFree86-DRI i don't know what to do
for nvidia-drv_video.so i discovered that /usr/lib/va directory does not exist !
i created va/drivers/ subtree in /usr/lib/
then
i put a link nvidia_drv_video.so that i found in /usr/lib/dri/
then same messages
it seems vlc search hw accel components in bad places
note :
- in vlc log i have no messages as "avcodec decoder: Using VA API version 0.32 for hardware decoding"
I don't know...
I can only say that %{_libdir}/dri is the place where all the rpms for vaapi-drive-vdpau I looked at (Cooker, Mageia and Fedora) do install the nvidia_drv_video.so file.
Perhaps you should ask on the vlc mailing list or support forums.
GvM
Re: vaapi nvidia driver
Posted: 10 September 2012, 20:31
by GvMariani
promeneur wrote:something is badly installed
when launching vlc then i have these messages :
Xlib: extension "XFree86-DRI" missing on display ":0". <<<<<<<<<<<<<<<<<
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/nvidia_drv_video.so
libva: va_openDriver() returns -1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
...
for nvidia-drv_video.so i discovered that /usr/lib/va directory does not exist !
i created va/drivers/ subtree in /usr/lib/
then
i put a link nvidia_drv_video.so that i found in /usr/lib/dri/
then same messages
it seems vlc search hw accel components in bad places
note :
- in vlc log i have no messages as "avcodec decoder: Using VA API version 0.32 for hardware decoding"
I don't know...
I can only say that %{_libdir}/dri is the place where all the rpms for vaapi-drive-vdpau I looked at (Cooker, Mageia and Fedora) do install the nvidia_drv_video.so file.
Perhaps you should ask on the vlc mailing list or support forums.
GvM
PS: You can test if the whole thing is working also without vlc: type "vainfo" in a konsole and if all is OK you shold see some info about your setup; otherwise you will have an error message...
Eg on my PC (radeon based) there is no vaapi backend driver for r600 (it does not exist at all...) and with the above command I get
Code: Select all
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/r600_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
PS2: your vaapi library does not seem the right one: "libva: libva version 0.31.0-sds5" (see my above output from vainfo...): perhaps did you install only the vaapi-driver-vdpau rpms? You need also the rpms for libva and libvdpau from the same repo dir, because the nvidia backend is built agains those libraries...
Re: vaapi nvidia driver
Posted: 11 September 2012, 11:07
by promeneur
I can only say that %{_libdir}/dri is the place where all the rpms for vaapi-drive-vdpau I looked at (Cooker, Mageia and Fedora) do install the nvidia_drv_video.so file.
if you refer to that document
http://wiki.videolan.org/VLC_VAAPI
this is the wrong place !
or at least you must add something according vlc and perhaps some others software find the nvidia vdpau driver ,
or vlc you supplies must be compiled to use the good places ?
all seems good with vainfo except "Xlib: extension "XFree86-DRI" missing on display ":0"."
Code: Select all
[root@localhost ~]# vainfo
libva: VA-API version 0.32.1
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.16)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.3
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG4Simple : VAEntrypointVLD
VAProfileMPEG4AdvancedSimple : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
[root@localhost ~]#
what do you think ? : in the 2 cases (vlc log and vainfo answer) i have "Xlib: extension "XFree86-DRI" missing on display ":0"."
all seems good with vdpauinfo
Code: Select all
[root@localhost ~]# vdpauinfo
display: :0 screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library 302.11 Thu May 17 18:10:06 PDT 2012
Video surface:
name width height types
-------------------------------------------
420 4096 4096 NV12 YV12
422 4096 4096 UYVY YUYV
Decoder capabilities:
name level macbs width height
-------------------------------------------
MPEG1 0 8192 2048 2048
MPEG2_SIMPLE 3 8192 2048 2048
MPEG2_MAIN 3 8192 2048 2048
H264_MAIN 41 8192 2048 2048
H264_HIGH 41 8192 2048 2048
VC1_SIMPLE 1 8190 2048 2048
VC1_MAIN 2 8190 2048 2048
VC1_ADVANCED 4 8190 2048 2048
MPEG4_PART2_SP 3 8192 2048 2048
MPEG4_PART2_ASP 5 8192 2048 2048
DIVX4_QMOBILE 0 8192 2048 2048
DIVX4_MOBILE 0 8192 2048 2048
DIVX4_HOME_THEATER 0 8192 2048 2048
DIVX4_HD_1080P 0 8192 2048 2048
DIVX5_QMOBILE 0 8192 2048 2048
DIVX5_MOBILE 0 8192 2048 2048
DIVX5_HOME_THEATER 0 8192 2048 2048
DIVX5_HD_1080P 0 8192 2048 2048
Output surface:
name width height nat types
----------------------------------------------------
B8G8R8A8 8192 8192 y Y8U8V8A8 V8U8Y8A8
R10G10B10A2 8192 8192 y Y8U8V8A8 V8U8Y8A8
Bitmap surface:
name width height
------------------------------
B8G8R8A8 8192 8192
R8G8B8A8 8192 8192
R10G10B10A2 8192 8192
B10G10R10A2 8192 8192
A8 8192 8192
Video mixer:
feature name sup
------------------------------------
DEINTERLACE_TEMPORAL y
DEINTERLACE_TEMPORAL_SPATIAL y
INVERSE_TELECINE y
NOISE_REDUCTION y
SHARPNESS y
LUMA_KEY y
HIGH QUALITY SCALING - L1 y
HIGH QUALITY SCALING - L2 -
HIGH QUALITY SCALING - L3 -
HIGH QUALITY SCALING - L4 -
HIGH QUALITY SCALING - L5 -
HIGH QUALITY SCALING - L6 -
HIGH QUALITY SCALING - L7 -
HIGH QUALITY SCALING - L8 -
HIGH QUALITY SCALING - L9 -
parameter name sup min max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH y 1 4096
VIDEO_SURFACE_HEIGHT y 1 4096
CHROMA_TYPE y
LAYERS y 0 4
attribute name sup min max
-----------------------------------------------------
BACKGROUND_COLOR y
CSC_MATRIX y
NOISE_REDUCTION_LEVEL y 0.00 1.00
SHARPNESS_LEVEL y -1.00 1.00
LUMA_KEY_MIN_LUMA y
LUMA_KEY_MAX_LUMA y
[root@localhost ~]#
your vaapi library does not seem the right one: "libva: libva version 0.31.0-sds5" (see my above output from vainfo...): perhaps did you install only the vaapi-driver-vdpau rpms? You need also the rpms for libva and libvdpau from the same repo dir, because the nvidia backend is built agains those libraries...
i installed
- from mesa-xorg/lbva-vdpau/32/
libva-utils 1.0.16
libva1 1.016
libvdpau1 05
vaapi-driver-vdpau 0.7.3
vdpauinfo 0.0.6
- from 2010.2 contrib updates
libva0.31.0.5_1
there is no libva 0.32 in ..../2010.2/.../mesa-xorg/va-vdpau/32/
note : system uses nvidia driver 302.11 and x11-driver-video-nvidia from 2010.3/32/experts
thanks for your help
Re: vaapi nvidia driver
Posted: 11 September 2012, 16:45
by GvMariani
promeneur wrote:I can only say that %{_libdir}/dri is the place where all the rpms for vaapi-drive-vdpau I looked at (Cooker, Mageia and Fedora) do install the nvidia_drv_video.so file.
if you refer to that document
http://wiki.videolan.org/VLC_VAAPI
this is the wrong place !
or at least you must add something according vlc and perhaps some others software find the nvidia vdpau driver ,
or vlc you supplies must be compiled to use the good places?
Uhu!??
Where in the page you referred to is stated this?
Besides that please notice that %{_libdir} means really /usr/lib or /usr/lib64 according the arch you are running, ie the very standard place where to search and find all the libraries installed in a linux system...
Perhaps something is wrong with the vlc actual config or build-time config, given that it search for the needed library in the wrong place...
BTW I'm not an expert of vlc & Co. but the wiki page you cited above makes me thinking that the real culprit could be rather ffmpeg, because it is the one software really interacting with the Hw under the vlc hood.
This is confirmed also by the vainfo output you got:
exactly showing the right version of vaapi library and that it is working properly (otherwise you would get an error message...)
all seems good with vainfo except "Xlib: extension "XFree86-DRI" missing on display ":0"."
what do you think ? : in the 2 cases (vlc log and vainfo answer) i have "Xlib: extension "XFree86-DRI" missing on display ":0"."
all seems good with vdpauinfo
Yes, your vaapi and vdpau setup looks OK.
I don't know anything about the "XFree86_DRI" thing (but if you make a google search with that message you will find may messages about that and very often related to vaapi, also: I read some and the majority of them suggests to rebuild vlc against the libva library to make sure it uses it).
there is no libva 0.32 in ..../2010.2/.../mesa-xorg/va-vdpau/32/
note : system uses nvidia driver 302.11 and x11-driver-video-nvidia from 2010.3/32/experts
thanks for your help
There is no libva-0.32 package: the 0.32 is an internal version number to preserve the backward compatility and the "real" version number for the libva currently is "1.0.16"...
so you have already installed all the needed packages.
GvM
Re: vaapi nvidia driver
Posted: 11 September 2012, 18:50
by promeneur
anyway
i must indicate to vlc where the vaapi driver is.
do you know the conf file where i can put the statement "LIBVA_DRIVERS_PATH=/usr/lib/dri" ?
thanks
Re: vaapi nvidia driver
Posted: 11 September 2012, 20:09
by GvMariani
promeneur wrote:anyway
i must indicate to vlc where the vaapi driver is.
do you know the conf file where i can put the statement "LIBVA_DRIVERS_PATH=/usr/lib/dri" ?
thanks
I would place it in /etc/profile (there are already some env vars definitions here: you can mimick them...).
But you can also test the thing before putting permanently in your system config files:
if I'm not wrong, you can export the same envvar in a konsole and then run vlc from here
Code: Select all
LIBVA_DRIVERS_PATH=/usr/lib/dri vlc
or
Code: Select all
"export LIBVA_DRIVERS_PATH=/usr/lib/dri" and next "vlc"
it should have the same effect...
GvM
Re: vaapi nvidia driver
Posted: 11 September 2012, 21:18
by promeneur
ok now vlc finds vaapi driver but no hw accell
i have these messages :
libva: libva version 0.31.0-sds5
libva: User requested driver 'nvidia'
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_openDriver() returns 0
[0xb0fe6ba8] avcodec decoder error: vlc_va_Setup failed <<<<<<<<<<<< ?
have you any idea ?
Re: vaapi nvidia driver
Posted: 11 September 2012, 23:47
by promeneur
i have an idea
i updated the OS with /mesa-xorg/va-vdpau
according to avoid pb i wonder if i must update the OS also with :
- libdrm/
- mesa/
- pixman/
- xserver/
Re: vaapi nvidia driver
Posted: 12 September 2012, 14:40
by GvMariani
promeneur wrote:ok now vlc finds vaapi driver but no hw accell
i have these messages :
libva: libva version 0.31.0-sds5
libva: User requested driver 'nvidia'
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Xlib: extension "XFree86-DRI" missing on display ":0".
libva: va_openDriver() returns 0
[0xb0fe6ba8] avcodec decoder error: vlc_va_Setup failed <<<<<<<<<<<< ?
have you any idea ?
Perhaps also ffmpeg needs to be rebuilded with the newer libraries (avcodec AFAICT is part of this package...).
GvM
Re: vaapi nvidia driver
Posted: 12 September 2012, 14:51
by GvMariani
promeneur wrote:i have an idea
i updated the OS with /mesa-xorg/va-vdpau
according to avoid pb i wonder if i must update the OS also with :
- libdrm/
- mesa/
- pixman/
- xserver/
Well,
the spec files used to build the vaapi and vdpau libraries have explicit dependencies from libdrm, mesa and, among the xorg libraries, libxext, libxfixes and libx11;
so updating all them could have some good result (but be warned: the last three will drag along a lot more libraries from xorg, besides being a little more risky...).
I first would try upgrading libdrm and mesa, and only next the whole xorg...
GvM
PS. BTW did you test with mplayer and vaapi output to see if your problem replicates?