Bug 8655 - Chromium missing patch for VA-API accelerated video decode on Intel GPUs
: Chromium missing patch for VA-API accelerated video decode on Intel GPUs
Status: CONFIRMED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: unspecified
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-13 02:29 MSK by Mikhail N
Modified: 2018-01-13 03:15 MSK (History)
0 users

See Also:
RPM Package: chromium-browser-stable
ISO-related:
Bad POT generating:
Upstream:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail N 2018-01-13 02:29:23 MSK
Rosa previously had a patch which enabled chrome://flags#enable-accelerated-video (off by default) hich ported VA-API accelerated video playback from Chrome OS.
Currently on my system this patch + h264ify chromium extension + 'block 60 fps' option ON in h264ify = helps me to unload the CPU and playback Youtube videos smoothly, otherwise the CPU is loaded for 100% and the playback is not smooth
I am using Ubuntu 17.10 + patched Chromium from https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-dev , 
the patch : https://github.com/saiarcot895/chromium-ubuntu-build/commit/f8bd4a884894c47f7bce04c7b4d25a714c7a2faa , it worked at the time of Chromium 63 and continues to work now in 65

ALT Linux also has this patch in the default chromium build, but is seemd to be a bit different from this one, and VA-API did not work in ALT Linux on my system, however, I have not investigated deeply. https://packages.altlinux.org/ru/Sisyphus/srpms/chromium/patches/0022-Enable-VAVDA-VAVEA-and-VAJDA-on-linux-with-VAAPI-only.patch 

Note that this is the source of the working VA-API patch https://github.com/saiarcot895/chromium-ubuntu-build/blob/master/debian/patches/enable_vaapi_on_linux_2.diff , but it is currently for Chromium 65, you can find an older version for older Chromiums in the Git history. 

$ vainfo
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.40 (libva )
vainfo: Driver version: Intel i965 driver for Intel(R) CherryView - 1.8.3
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
Comment 1 Mikhail N 2018-01-13 02:33:35 MSK
also update libva and livba-utils
Comment 2 Mikhail N 2018-01-13 02:33:54 MSK
chrome://media-internals - to see if the GU decoder is used
Comment 3 Mikhail N 2018-01-13 03:15:50 MSK
For reference, ALT's bug: https://bugzilla.altlinux.org/show_bug.cgi?id=34452