View previous topic :: View next topic |
Author |
Message |
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Thu Apr 15, 2021 9:02 am Post subject: chrome video playback hardware acceleration with nvidia card |
|
|
I have a NVIDIA GeForce GTX 750 Ti and I'm using google-chrome-beta-90.0.4430.72.
I'm trying to enable hardware accelerated video playback when watching YouTube with chrome.
I added both "vaapi" and "vdpau" in /etc/portage/make.conf and installed the following packages:
Code: |
x11-libs/libva-2.10.0
x11-libs/libva-vdpau-driver-0.7.4-r5
x11-libs/libvdpau-1.4
|
vdpauinfo is giving me the following output:
Code: |
name level macbs width height
----------------------------------------------------
MPEG1 0 65536 4080 4080
MPEG2_SIMPLE 3 65536 4080 4080
MPEG2_MAIN 3 65536 4080 4080
H264_BASELINE 51 65536 4096 4096
H264_MAIN 51 65536 4096 4096
H264_HIGH 51 65536 4096 4096
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
H264_CONSTRAINED_BASELINE 51 65536 4096 4096
H264_EXTENDED 51 65536 4096 4096
H264_PROGRESSIVE_HIGH 51 65536 4096 4096
H264_CONSTRAINED_HIGH 51 65536 4096 4096
H264_HIGH_444_PREDICTIVE 51 65536 4096 4096
VP9_PROFILE_0 --- not supported ---
VP9_PROFILE_1 --- not supported ---
VP9_PROFILE_2 --- not supported ---
VP9_PROFILE_3 --- not supported ---
HEVC_MAIN --- not supported ---
HEVC_MAIN_10 --- not supported ---
HEVC_MAIN_STILL --- not supported ---
HEVC_MAIN_12 --- not supported ---
HEVC_MAIN_444 --- not supported ---
HEVC_MAIN_444_10 --- not supported ---
HEVC_MAIN_444_12 --- not supported ---
|
But vainfo is showing the following error:
Code: |
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit
|
When I play video in chrome, the developer tools shows it's using FFmpegVideoDecoder, with no hardware acceleration.
I managed to enable hw acceleration in archlinux, the only difference I see is that they have this aur called "libva-vdpau-driver-chromium", which is VDPAU backend for VA API. (special version for chromium). But in gentoo, there's only the libva-vdpau-driver package. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
Posted: Thu Apr 15, 2021 9:32 am Post subject: |
|
|
Hi
does invoking chrome with
Code: |
/usr/bin/google-chrome-beta %U --use-gl=desktop
|
help?
Also you mention
Quote: |
I added both "vaapi" and "vdpau" in /etc/portage/make.conf and installed the following packages:
Code:
x11-libs/libva-2.10.0
x11-libs/libva-vdpau-driver-0.7.4-r5
x11-libs/libvdpau-1.4
|
Do NOT emerge them yourself.Let them be pulled rather by USE flags. _________________
|
|
Back to top |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Fri Apr 16, 2021 2:26 am Post subject: |
|
|
alamahant wrote: | Hi
does invoking chrome with
Code: |
/usr/bin/google-chrome-beta %U --use-gl=desktop
|
help?
Also you mention
Quote: |
I added both "vaapi" and "vdpau" in /etc/portage/make.conf and installed the following packages:
Code:
x11-libs/libva-2.10.0
x11-libs/libva-vdpau-driver-0.7.4-r5
x11-libs/libvdpau-1.4
|
Do NOT emerge them yourself.Let them be pulled rather by USE flags. |
Adding "--use-gl=desktop" flag doesn't help.
I didn't manually install those packages, they were automatically pulled after I added "vaapi" and "vdpau" to make.conf |
|
Back to top |
|
|
smartding Tux's lil' helper
Joined: 22 Jan 2021 Posts: 129
|
Posted: Fri Apr 16, 2021 2:33 am Post subject: |
|
|
After I set " LIBVA_DRIVER_NAME=vdpau", the "vainfo" command is now segment fault:
Code: |
libva info: VA-API version 1.10.0
libva info: User environment variable requested driver 'vdpau'
libva info: Trying to open /usr/lib64/va/drivers/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_1_10
zsh: segmentation fault vainfo
|
I checked, "vdpau_drv_video.so" is indeed in "/usr/lib64/va/drivers/".
if I type "chrome://gpu" in google-chrome-beta's address bar, it shows the following error messages:
Code: |
[10893:10893:0416/103107.285255:ERROR:vaapi_wrapper.cc(1067)] : vaQuerySurfaceAttributes failed, VA error: invalid parameter
[10893:10893:0416/103107.285359:ERROR:vaapi_wrapper.cc(1014)] : FillProfileInfo_Locked failed for va_profile VAProfileH264Main and entrypoint VAEntrypointVLD
[10893:10893:0416/103107.285391:ERROR:vaapi_wrapper.cc(1067)] : vaQuerySurfaceAttributes failed, VA error: invalid parameter
[10893:10893:0416/103107.285414:ERROR:vaapi_wrapper.cc(1014)] : FillProfileInfo_Locked failed for va_profile VAProfileH264High and entrypoint VAEntrypointVLD
|
|
|
Back to top |
|
|
|