chromium-ubuntu-build
chromium-ubuntu-build copied to clipboard
Hardware decoding not working after updating to Ubuntu 20.04 (iHD driver)
I have been using Pop OS which is based on Ubuntu and just updated to latest version ie 20.04.
Now I am not noticing hardware decoding working anymore - earlier intel_gpu_top
used to show decoding activity.
So I installed chromium from correct source again, checked the hardware accelerated video decode flag, the h264 enabling plugin and ran again. However, I am still not seeing video decoding activity ( The tool earlier mentioned 'Decode' flag but now it seems like the third flag is the relevant one ). Is the functionality intact in the latest Ubuntu update?
There is no build in my PPA for 20.04 yet.
Thanks for telling that. Please let me know if there's a way to run it currently or if it's going to come soon.
I confirm - hardware decoding does not work on Ubuntu 20.04. Additional Information:
`$ chromium-browser [8457:8457:0614/211220.806666:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process. [8457:8614:0614/211242.295251:ERROR:vaapi_wrapper.cc(2532)] vaEndPicture failed, VA error: invalid parameter [8457:8614:0614/211242.295416:ERROR:vaapi_video_decoder.cc(257)] Error decoding stream
$ vainfo libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 () vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSliceLP VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD`
Is this with Chromium 85.0.4164.2-0ubuntu1~ppa2~20.04.1
?
yes
I can confirm, with the new build (which starts up now as expected) VA-API hw decoding doesn't work anymore on my Intel HD 3000. Disabling hw video decoding makes video playback working again.
libva info: VA-API version 1.7.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_7 libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed libva info: va_openDriver() returns 1 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_6 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.7 (libva 2.6.0) vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Mobile - 2.4.0 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc
Can someone start Chromium with the LIBVA_MESSAGING_LEVEL=2
environment variable set and paste the output here? (for example, LIBVA_MESSAGING_LEVEL=2 chromium-browser --enable-logging=stderr --log-level=0 --vmodule=vaapi_wrapper=4,vaapi_video_decode_accelerator=4
)
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[89883:89883:0706/111029.497395:VERBOSE1:vaapi_wrapper.cc(562)] VAAPI version: 1.8 Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
[89883:89883:0706/111029.497595:VERBOSE1:vaapi_wrapper.cc(949)] Unsupported value 2 for attribute type 5
[89883:89883:0706/111029.497723:VERBOSE1:vaapi_wrapper.cc(949)] Unsupported value 2 for attribute type 5
[89883:89883:0706/111029.497834:VERBOSE1:vaapi_wrapper.cc(949)] Unsupported value 2 for attribute type 5
[89883:89883:0706/111029.497923:VERBOSE1:vaapi_wrapper.cc(949)] Unsupported value 1 for attribute type 0
[89883:89883:0706/111029.497989:VERBOSE1:vaapi_wrapper.cc(949)] Unsupported value 1 for attribute type 0
[89883:89883:0706/111029.515726:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[89883:89883:0706/111029.517255:VERBOSE1:vaapi_wrapper.cc(562)] VAAPI version: 1.8 Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
[89883:90210:0706/111045.054648:ERROR:vaapi_wrapper.cc(2595)] vaEndPicture failed, VA error: invalid parameter
[89883:90210:0706/111045.054727:ERROR:vaapi_video_decoder.cc(257)] Error decoding stream
Related info:
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[267690:267690:0706/112450.996582:VERBOSE1:vaapi_wrapper.cc(504)] VAAPI version: 1.7 Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
[267690:267690:0706/112450.996713:VERBOSE1:vaapi_wrapper.cc(879)] Unsupported value 2 for attribute type 5
[267690:267690:0706/112450.996765:VERBOSE1:vaapi_wrapper.cc(879)] Unsupported value 2 for attribute type 5
[267690:267690:0706/112450.996789:VERBOSE1:vaapi_wrapper.cc(879)] Unsupported value 2 for attribute type 5
[267690:267690:0706/112451.012759:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
[267690:267690:0706/112451.014416:VERBOSE1:vaapi_wrapper.cc(504)] VAAPI version: 1.7 Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
While watching videos:
[267690:267690:0706/112510.915971:WARNING:gpu_video_decode_accelerator_factory.cc(249)] Initializing VAAPI VDA.
[267690:267690:0706/112510.916090:VERBOSE2:vaapi_video_decode_accelerator.cc(187)] Initialize(): Initializing VAVDA, profile: vp9 profile0
[267690:268207:0706/112510.917308:VERBOSE2:vaapi_video_decode_accelerator.cc(460)] DecodeTask(): Decoder requesting a new set of surfaces
[267690:267690:0706/112510.917457:VERBOSE2:vaapi_video_decode_accelerator.cc(536)] InitiateSurfaceSetChange(): |requested_num_pics_| = 5; |requested_num_reference_frames_| = 9
[267690:267690:0706/112510.917524:VERBOSE2:vaapi_video_decode_accelerator.cc(600)] TryFinishSurfaceSetChange(): Requesting 5 pictures of size: 1920x1080 and visible rectangle = 0,0 1920x1080
[267690:267690:0706/112510.917950:ERROR:vaapi_video_decode_accelerator.cc(673)] Failed to initialize VppVaapiWrapper
[267690:267690:0706/112510.918028:VERBOSE1:vaapi_video_decode_accelerator.cc(130)] NotifyError(): Notifying of error 4
[267986:17:0706/112510.918300:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"VDA Error 4"}
[267690:267690:0706/112510.918802:VERBOSE2:vaapi_video_decode_accelerator.cc(996)] Cleanup(): Destroying VAVDA
I can repro @mamarley's output, but not @Sraw's output. I'm not sure why the difference is there; maybe try with h264 videos (or use the h264-ify extension) to make sure the basics are working?
The content is similar:
[319470:319470:0707/085300.389182:WARNING:gpu_video_decode_accelerator_factory.cc(249)] Initializing VAAPI VDA.
[319470:319470:0707/085300.389349:VERBOSE2:vaapi_video_decode_accelerator.cc(187)] Initialize(): Initializing VAVDA, profile: h264 high
[319470:320060:0707/085300.389901:VERBOSE2:vaapi_video_decode_accelerator.cc(460)] DecodeTask(): Decoder requesting a new set of surfaces
[319470:319470:0707/085300.389986:VERBOSE2:vaapi_video_decode_accelerator.cc(536)] InitiateSurfaceSetChange(): |requested_num_pics_| = 6; |requested_num_reference_frames_| = 6
[319470:319470:0707/085300.390030:VERBOSE2:vaapi_video_decode_accelerator.cc(600)] TryFinishSurfaceSetChange(): Requesting 6 pictures of size: 1920x1088 and visible rectangle = 0,0 1920x1080
[319470:319470:0707/085300.390454:ERROR:vaapi_video_decode_accelerator.cc(673)] Failed to initialize VppVaapiWrapper
[319470:319470:0707/085300.390497:VERBOSE1:vaapi_video_decode_accelerator.cc(130)] NotifyError(): Notifying of error 4
[319765:23:0707/085300.390739:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"VDA Error 4"}
[319470:319470:0707/085300.391471:VERBOSE2:vaapi_video_decode_accelerator.cc(996)] Cleanup(): Destroying VAVDA
Notice we are using the different versions of VA-API
. His is 1.8.0
while mine is 1.7.0
.
This is the output of vainfo
on my Intel laptop with the iHD
driver. Can you confirm that in both of your outputs, VAProfileNone
is not present?
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
Here's what I get:
michael@mamarley-desktop:~$ vainfo
libva info: VA-API version 1.8.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.8 (libva 2.7.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
Ok, I think I figured out the difference in error conditions. Both I and @Sraw had intel-media-va-driver
installed, which does not support VAProfileNone
, but Chromium assumes that it is indeed supported, which results in the Failed to initialize VppVaapiWrapper
error. @mamarley appears to have intel-media-va-driver-non-free
installed, which does support VAProfileNone
(along with other features that require nonfree blobs, I think), so Chromium is able to create the VppVaapiWrapper
, but it fails somewhere later at vaEndPicture failed, VA error: invalid parameter
.
The first error might be easy to work around in Chromium's code, the second error might take some time.
Another update on this, the iHD driver seems to only allow NV12 color format, but some other color format appears to be being passed in (I420, I'm guessing, but can't confirm). Here's a snippet of the driver trace logs, interleaved with Chromium logs:
[LIBVA]:ENTER - DdiMedia_SetDisplayAttributes
[LIBVA]:ENTER - DdiMedia_CreateConfig
[LIBVA]:ENTER - DdiMedia_CreateContext
[LIBVA]:NORMAL - ContextInit:1094: Decoding context DOESN'T have scaling/format conversion capabilities
[LIBVA]:NORMAL - DdiDecode_GetDisplayInfo:70: GetDisplayInfo: cannot open device!
[LIBVA]:NORMAL - DdiDecode_GetDisplayInfo:81: DDI:mediaDrvCtx->uiDisplayWidth =1280
[LIBVA]:NORMAL - DdiDecode_GetDisplayInfo:82: DDI:mediaDrvCtx->uiDisplayHeight =720
[LIBVA]:ENTER - DdiMedia_CreateSurfaces2
[LIBVA]:VERBOSE - DdiMediaUtil_AllocateSurface:517: Alloc 3686400 bytes (1280 x 720 resource).
[LIBVA]:ENTER - DdiMedia_CreateBuffer
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:ENTER - DdiMedia_CreateBuffer
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:ENTER - DdiMedia_CreateBuffer
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:VERBOSE - DdiMediaUtil_AllocateBuffer:569: Alloc 1382400 bytes resource.
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:ENTER - DdiMedia_BeginPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiDecode_BeginPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - BeginPicture
[LIBVA]:EXIT - BeginPicture: eStatus = 0x0
[LIBVA]:EXIT - DdiDecode_BeginPicture: eStatus = 0x0
[LIBVA]:ENTER - DdiMedia_RenderPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiDecode_RenderPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - RenderPicture
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:EXIT - RenderPicture: eStatus = 0x0
[LIBVA]:EXIT - DdiDecode_RenderPicture: eStatus = 0x0
[LIBVA]:ENTER - DdiMedia_RenderPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiDecode_RenderPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - RenderPicture
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:ENTER - DdiMedia_MapBufferInternal
[LIBVA]:ENTER - DdiMedia_UnmapBuffer
[LIBVA]:EXIT - RenderPicture: eStatus = 0x0
[LIBVA]:EXIT - DdiDecode_RenderPicture: eStatus = 0x0
[LIBVA]:ENTER - DdiMedia_EndPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiDecode_EndPicture
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - EndPicture
[LIBVA]:NORMAL - SetDecodeParams:635: Surface fomrat of decoded surface is inconsistent with Codec bitstream
[LIBVA]:CRITICAL - SetDecodeParams:186: SetDecodeParams failed! [18].
[LIBVA]:CRITICAL - EndPicture:853: SetDecodeParams failed! [18].
[LIBVA]:EXIT - DdiDecode_EndPicture: eStatus = 0x12
[41720:42480:0711/085603.727401:ERROR:vaapi_wrapper.cc(2595)] vaEndPicture failed, VA error: invalid parameter
[LIBVA]:ENTER - DdiMedia_DestroyBuffer
[LIBVA]:ENTER - DdiMedia_DestroyBuffer
[LIBVA]:ENTER - DdiMedia_DestroyBuffer
[LIBVA]:ENTER - DdiMedia_DestroySurfaces
[41720:42480:0711/085603.727549:ERROR:vaapi_video_decoder.cc(257)] Error decoding stream
[LIBVA]:ENTER - DdiMedia_DestroyContext
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:VERBOSE - DdiMedia_GetContextFromContextID:293: Decode context detected: 0x10000000
[LIBVA]:ENTER - DdiMedia_DestroyConfig
Note the Surface fomrat of decoded surface is inconsistent with Codec bitstream
message. That message is coming from here. I'm not entirely sure where to check to see what the driver is reporting for the supported formats and what Chromium is doing.
For reference, to get these logs, the intel-media-va-driver
package needs to be recompiled as release-internal
build type (Ubuntu's/Debian's build rules don't specify a build type, so it default to release). Then, create a file /etc/igfx_user_feature.txt
with the following contents (make sure to use spaces and not tabs):
[KEY]
0x00000001
UFKEY_INTERNAL\LibVa
[VALUE]
outfileLocation
1
/tmp/ihd-debug/
[VALUE]
dumpLocations
1
preAll,postAll
[VALUE]
Message Print Enabled
4
1
[VALUE]
Message HLT Enabled
4
1
[VALUE]
VP Message Tags
4
7
[VALUE]
DDI Message Tags
4
7
[VALUE]
Perf Profiler Buffer Size
4
512000000
(Some of the entries can probably be removed, though.)
Start Chromium from the console, and see the driver trace logs be printed onto the console.
Beta PPA version (84.0.4147.56) seems to be working. Just FYI.
Dev has been updated to 86.0.4214.2, Beta is being updated to 85.0.4183.49.
After the update, GPU decoding is not working with the beta PPA version (85.0.4183.49).
I had the same issue and output as @mamarley. Uninstalling intel-media-va-driver solved the problem as @saiarcot895 suggested. Thanks a lot and keep up the good work!
HI !
I think my install could work but i can't get chromium to use the right driver
Below my standard vainfo output
vainfo
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
But when starting chromium it try to use the i965 driver see :
LIBVA_MESSAGING_LEVEL=2 LIBVA_DRIVER_PATH='/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so' chromium-browser --enable-logging=stderr --log-level=0
[95682:95682:1007/170548.544975:WARNING:account_consistency_mode_manager.cc(196)] Desktop Identity Consistency cannot be enabled as no OAuth client ID and client secret have been configured.
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
[95720:95720:1007/170548.613231:ERROR:vaapi_wrapper.cc(598)] vaInitialize failed (ignore if using Wayland desktop environment): unknown libva error
I tried LIBVA_DRIVER_NAME
and LIBVA_DRIVER_PATH
, separatly and together, no luck chromium still go for i965.
If someone could explain to me why ? And how i can force it to use iHD ?
Thanks for your work on this
(If not here where could i post this question?)
#EDIT :
I changed the file :/etc/chromium-browser/customizations/02-libva-i965
to finally use the iHD driver, it works, but now i get error :
[7005:20:1007/183036.390128:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"VDA Error 4"}
[6674:6674:1007/183048.799883:WARNING:gpu_video_decode_accelerator_factory.cc(231)] Initializing VAAPI VDA.
[6674:6674:1007/183048.807918:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.808046:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808141:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.808228:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808315:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.808396:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808441:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.808487:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808532:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.808576:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808618:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.808661:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808705:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.808748:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808802:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.808847:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808906:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.808947:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.808989:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809032:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809076:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.809121:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809163:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809207:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809257:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.809302:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809346:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809388:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809430:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.809476:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809522:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809565:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809618:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.809668:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809710:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809754:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809797:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.809839:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809882:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.809925:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.809968:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.810011:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810053:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.810096:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810139:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.810182:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810225:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.810268:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810322:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.810364:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810420:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.810465:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810508:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.810558:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810600:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.810643:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810687:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.810731:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810798:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.810880:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.810958:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.811006:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811102:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.811146:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811199:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.811246:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811288:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.811331:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811374:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.811416:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811458:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.811500:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811551:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.811593:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811635:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.811676:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811718:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.811759:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.811802:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid or unsupported texture target.
[6674:6674:1007/183048.811843:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.812151:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.812194:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.812243:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: External texture extension not enabled
[6674:6674:1007/183048.812435:ERROR:gl_utils.cc(316)] [GroupMarkerNotSet(crbug.com/242999)!:D8F7C8B7A4550000] GL_INVALID_ENUM: Invalid pname.
[6674:6674:1007/183048.812472:ERROR:logger.cc(46)] Too many GL errors, not reporting any more for this context. use --disable-gl-error-limit to see all errors.
[7005:20:1007/183048.812596:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"VDA Error 4"}
with this in chrome://media-internals
:
00:00:01.601 kVideoDecoderName "MojoVideoDecoder"
00:00:01.601 kIsPlatformVideoDecoder true
00:00:01.601 info "Selected MojoVideoDecoder for video decoding, config: codec: vp9, profile: vp9 profile0, level: not available, alpha_mode: is_opaque, coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: [1920,1080], has extra data: false, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}"
00:00:01.601 pipeline_state "kPlaying"
00:00:01.602 audio_buffering_state {"state":"BUFFERING_HAVE_ENOUGH"}
00:00:01.613 error "VDA Error 4"
00:00:01.613 warning "video fallback to new decoder after initial decode error."
00:00:01.613 kIsVideoDecryptingDemuxerStream false
00:00:01.613 kVideoDecoderName "VpxVideoDecoder"
00:00:01.613 kIsPlatformVideoDecoder false
00:00:01.613 info "Selected VpxVideoDecoder for video decoding, config: codec: vp9, profile: vp9 profile0, level: not available, alpha_mode: is_opaque, coded size: [1920,1080], visible rect: [0,0,1920,1080], natural size: [1920,1080], has extra data: false, encryption scheme: Unencrypted, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}"
I take any insight ? cause for now, i have to reboot to W10 to watch video online without draining my battery :/
Chromium itself is blocking the iHD driver because of errors in the driver itself. I can remove it, but then you will see those errors if that driver is used.
This means that the i965 driver must be used on Intel systems.
Holly shit good to known !! Thanks man ! Is it documented somewhere ?
https://bugs.chromium.org/p/chromium/issues/detail?id=1116703 and https://github.com/intel/media-driver/issues/818