You are not logged in.

#676 2022-05-27 13:30:25

raisedintheusa
Member
Registered: 2022-02-18
Posts: 8

Re: chromium: hardware video acceleration with VA-API

Thorium (https://github.com/Alex313031/Thorium/) offers hardware video acceleration by default.

Offline

#677 2022-05-27 15:23:33

digitalone
Member
Registered: 2011-08-19
Posts: 310

Re: chromium: hardware video acceleration with VA-API

viggy96 wrote:

Is it possible to use VAAPI on Wayland on regular Google Chrome?

Whether it's possible or not, VAAPI hw decode on chromium browsers is only available for XWayland, no native Wayland support.

Offline

#678 2022-05-28 12:41:34

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 19

Re: chromium: hardware video acceleration with VA-API

digitalone wrote:
viggy96 wrote:

Is it possible to use VAAPI on Wayland on regular Google Chrome?

Whether it's possible or not, VAAPI hw decode on chromium browsers is only available for XWayland, no native Wayland support.

ungoogled-chromium in aur seems to have wayland vaapi patch applied. I'm currently building it to see if that works.

Offline

#679 2022-05-30 10:16:25

DAC324
Member
Registered: 2020-03-12
Posts: 80

Re: chromium: hardware video acceleration with VA-API

raisedintheusa wrote:

Thorium (https://github.com/Alex313031/Thorium/) offers hardware video acceleration by default.

Does this also work for VP9 videos?

Offline

#680 2022-06-01 19:10:59

Begemoth
Member
Registered: 2022-06-01
Posts: 3

Re: chromium: hardware video acceleration with VA-API

dimischiavone wrote:

ungoogled-chromium in aur seems to have wayland vaapi patch applied. I'm currently building it to see if that works.

Wow, it is actually works with Wayland.

1. Use this link for comfortable and fast install — https://github.com/ungoogled-software/u … -archlinux
2. In chromium-flags.conf set these strings:
--disable-features=UseChromeOSDirectVideoDecoder
--disable-gpu-memory-buffer-compositor-resources
--disable-gpu-memory-buffer-video-frames
--enable-hardware-overlays
3. For chrome://flags/ these flags:
Hardware-accelerated video decode → enabled.
Preferred Ozone platform → Auto.

Works on iHD, but I haven't success with AMDgpu. Power consumption is noticeable worse that in Firefox. But it is not so bad.

Offline

#681 2022-06-02 21:22:59

pc00per
Member
Registered: 2022-05-22
Posts: 12

Re: chromium: hardware video acceleration with VA-API

raisedintheusa wrote:

Thorium (https://github.com/Alex313031/Thorium/) offers hardware video acceleration by default.

Anyway to install it's binary on Arch? Doesn't seem to find in AUR too.

Offline

#682 2022-06-03 07:29:08

digitalone
Member
Registered: 2011-08-19
Posts: 310

Re: chromium: hardware video acceleration with VA-API

dimischiavone wrote:

ungoogled-chromium in aur seems to have wayland vaapi patch applied. I'm currently building it to see if that works.

Thanks. Yesterday I tried it (downloaded binary from archlinuxcn repo) and surprisingly hardware decoding is working in native wayland on AMDGPU.

First time after years I have a fully working hardware decoding inside a chromium based browser on my old AMD laptop. Previously I only got a smooth reproduction till 1080p30 content, on 1080p60 I got small hangs and freezing. Now no issues on 1080p60 also, like it was happening in Firefox before Mozilla decided to break hardware decoding.

These are the flags I'm using:

--ozone-platform=wayland
--disable-features=UseChromeOSDirectVideoDecoder
--disable-gpu-memory-buffer-compositor-resources
--disable-gpu-memory-buffer-video-frames
--enable-hardware-overlays

These are reported on AUR, I only added `--ozone-platform=wayland` because ozone defaults to X11/XWayland, but specifying "wayland" I get hardware decoding on native Wayland also.

Last edited by digitalone (2022-06-03 07:35:27)

Offline

#683 2022-06-03 10:38:51

Begemoth
Member
Registered: 2022-06-01
Posts: 3

Re: chromium: hardware video acceleration with VA-API

digitalone wrote:

like it was happening in Firefox before Mozilla decided to break hardware decoding.

I think this is not broken for actual beta (if your laptop have single igpu).

For me Chromium isn't working on AMDgpu, Renoir series.

Offline

#684 2022-06-05 13:26:56

pierro78
Member
Registered: 2013-05-18
Posts: 13

Re: chromium: hardware video acceleration with VA-API

Begemoth wrote:
dimischiavone wrote:

ungoogled-chromium in aur seems to have wayland vaapi patch applied. I'm currently building it to see if that works.

Wow, it is actually works with Wayland.

1. Use this link for comfortable and fast install — https://github.com/ungoogled-software/u … -archlinux
2. In chromium-flags.conf set these strings:
--disable-features=UseChromeOSDirectVideoDecoder
--disable-gpu-memory-buffer-compositor-resources
--disable-gpu-memory-buffer-video-frames
--enable-hardware-overlays
3. For chrome://flags/ these flags:
Hardware-accelerated video decode → enabled.
Preferred Ozone platform → Auto.

Works on iHD, but I haven't success with AMDgpu. Power consumption is noticeable worse that in Firefox. But it is not so bad.

thanks ! working good on some youtube videos with my integrated Intel UHD Graphics 620 GPU !

unfortunately not with all the videos ... for example :  https://www.youtube.com/watch?v=EfMN0os7Xh0 ... maybe because of the codec ? any opinion if my Intel integrated GPU can hardware-accelerate this video ???
(in windows Edge that video does get hardware acceleration ... but not in windows Chrome nor chromeos Chrome (chromeos dualbooted via brunch) )
thanks again !

Last edited by pierro78 (2022-06-05 13:28:26)

Offline

#685 2022-06-05 19:03:12

Begemoth
Member
Registered: 2022-06-01
Posts: 3

Re: chromium: hardware video acceleration with VA-API

pierro78 wrote:

maybe because of the codec ? any opinion if my Intel integrated GPU can hardware-accelerate this video ???

I think it's cause of av1, which not supported by UHD620. Just come in Youtube's settings → Playback → flag AV1 just for SD videos.

Offline

#686 2022-06-07 00:38:11

pierro78
Member
Registered: 2013-05-18
Posts: 13

Re: chromium: hardware video acceleration with VA-API

raisedintheusa wrote:

Thorium (https://github.com/Alex313031/Thorium/) offers hardware video acceleration by default.

thanks for the tip ! I just unzipped it and no need to add command options or flags : I had hardware video acceleration by simply starting it ! (I am on "gnomish" garuda and I didn't have to install extra packages like intel drivers ...)

Offline

#687 2022-06-07 01:13:34

pierro78
Member
Registered: 2013-05-18
Posts: 13

Re: chromium: hardware video acceleration with VA-API

Begemoth wrote:
pierro78 wrote:

maybe because of the codec ? any opinion if my Intel integrated GPU can hardware-accelerate this video ???

I think it's cause of av1, which not supported by UHD620. Just come in Youtube's settings → Playback → flag AV1 just for SD videos.

thanks so much for the tip ! I've just flagged  "AV1 just for SD videos" and now this youtube video (or other youtube videos) above SD use the vp9 codec and are hardware decoded on my UHD620 !!

Last edited by pierro78 (2022-06-07 01:14:00)

Offline

#688 2022-06-07 11:22:13

dimischiavone
Member
From: Turin
Registered: 2019-09-13
Posts: 19

Re: chromium: hardware video acceleration with VA-API

pierro78 wrote:
Begemoth wrote:
pierro78 wrote:

maybe because of the codec ? any opinion if my Intel integrated GPU can hardware-accelerate this video ???

I think it's cause of av1, which not supported by UHD620. Just come in Youtube's settings → Playback → flag AV1 just for SD videos.

thanks so much for the tip ! I've just flagged  "AV1 just for SD videos" and now this youtube video (or other youtube videos) above SD use the vp9 codec and are hardware decoded on my UHD620 !!

I use this extension to block av1 videos. It's like h264ify but for av1 on all websites.

Offline

#689 2022-06-10 10:01:06

pc00per
Member
Registered: 2022-05-22
Posts: 12

Re: chromium: hardware video acceleration with VA-API

DAC324 wrote:

There is an interesting aspect about Youtube I just found out on Reddit (https://www.reddit.com/r/chrome/comment … &context=3).

and VP9 is hardware accelerated in Chromium even on ancient cards like my GeForce GTX 750 Ti.

Edit: Btw it was my issue all the time. I've successfully managed to bring out VDAVideoDecoder out of libva-vdpau-driver-vp9-git. I had to disable Vulkan & allow inbuilt Skia Renderer do the GPU lifting.

these were enough:

--enable-features=VaapiVideoDecoder
--disable-features=UseChromeOSDirectVideoDecoder
--use-gl=desktop

No need of forced gpu rasterization. We just need to make sure disable ChromeOSDirectVideoDecoder, enable --use-gl=desktop & not use Vulkan in the first place, which is enough to resurrect VDAVideoDecoder.

Last edited by pc00per (2022-06-11 00:28:55)

Offline

#690 2022-06-10 10:21:45

pierro78
Member
Registered: 2013-05-18
Posts: 13

Re: chromium: hardware video acceleration with VA-API

pc00per wrote:
DAC324 wrote:

There is an interesting aspect about Youtube I just found out on Reddit (https://www.reddit.com/r/chrome/comment … &context=3).

and VP9 is hardware accelerated in Chromium even on ancient cards like my GeForce GTX 750 Ti.

Accelerated how? I've been trying day & night to accelerate VP9 on chromium for days. Nothing's working so far.
vainfo shows "VP9Profile0" entry. *chrome://gpu* shows Video Decode: Hardware Accelerated, but scroll down to "Video Acceleration Information", decoding section is just empty.
GPU: GTX 1660 super

according to the dev ( https://www.reddit.com/r/ChromiumBrowse … &context=3 ) Thorium supports VAAPI, VDPAU and video acceleration out of the box ... might be worth to give it a try wink

Offline

#691 2022-06-10 13:27:55

pc00per
Member
Registered: 2022-05-22
Posts: 12

Re: chromium: hardware video acceleration with VA-API

pierro78 wrote:

according to the dev ( https://www.reddit.com/r/ChromiumBrowse … &context=3 ) Thorium supports VAAPI, VDPAU and video acceleration out of the box ... might be worth to give it a try wink

Actually I was wrong. extra/chromium already supports VA-API out of the box.
I've just noticed chromium-vaapi been down

Last edited by pc00per (2022-06-10 14:04:11)

Offline

#692 2022-06-28 05:27:26

justkdng
Member
From: 日本
Registered: 2019-10-08
Posts: 43

Re: chromium: hardware video acceleration with VA-API

Sadly it seems vaapi under native wayland will need constant patching with each chromium update. Vaapi under xorg works without problems though. Does thorium support vaapi on both native wayland and xorg?


GPG key: 3DEA 6251 3C80 3538 3A24  5A12 E578 6B42 E8E5 D565

Offline

#693 2022-06-30 14:55:18

Alex313031
Member
From: Oklahoma
Registered: 2022-06-30
Posts: 1
Website

Re: chromium: hardware video acceleration with VA-API

Hello, Thorium dev/maintainer here. You can use the portable .zips, or there is a PKGBUILD in the main repo > Here


Alex Frick, Thorium Developer/Maintainer, Arch User, Ubuntu User, ChromiumOS user.

Offline

#694 2022-06-30 15:10:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 18,619

Re: chromium: hardware video acceleration with VA-API

Alex313031 wrote:

Hello, Thorium dev/maintainer here.

Welcome, and Thank you.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#695 2022-07-01 07:15:38

digitalone
Member
Registered: 2011-08-19
Posts: 310

Re: chromium: hardware video acceleration with VA-API

Sorry, but no hardware decoding on native wayland with thorium.

Offline

#696 2022-07-01 08:16:26

moturhead
Member
Registered: 2021-10-31
Posts: 14

Re: chromium: hardware video acceleration with VA-API

Is anyone successful in getting hardware acceleration on Wayland? none of the flags seems to work in my case:

--enable-features=VaapiVideoDecoder
--disable-features=UseChromeOSDirectVideoDecoder
--disable-gpu-memory-buffer-compositor-resources
--disable-gpu-memory-buffer-video-frames
--enable-hardware-overlays
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy
--canvas-oop-rasterization
--ozone-platform=wayland

I'm running Ungoogled Chromium on Flatpak (103.0.5060.53), AMDGPU.

Last edited by moturhead (2022-07-01 14:00:50)

Offline

#697 2022-07-01 17:05:47

justkdng
Member
From: 日本
Registered: 2019-10-08
Posts: 43

Re: chromium: hardware video acceleration with VA-API

@moturhead

I don't think the flatpak versions contains the patches used by ungoogled-chromium in arch. Mainly this one, https://aur.archlinux.org/cgit/aur.git/ … d-chromium

You should ask the maintainer of the flatpak version to add that patch.


GPG key: 3DEA 6251 3C80 3538 3A24  5A12 E578 6B42 E8E5 D565

Offline

#698 2022-07-01 18:51:27

moturhead
Member
Registered: 2021-10-31
Posts: 14

Re: chromium: hardware video acceleration with VA-API

@justkdng

You released the same patch on github too about 4 days ago. Does this patch gets merged with other flavors of Ungoogled Chromium (Eloston's) too? I think the Flatpak maintainer must be using some other fork of the software for his package.

Offline

#699 2022-07-01 23:41:21

justkdng
Member
From: 日本
Registered: 2019-10-08
Posts: 43

Re: chromium: hardware video acceleration with VA-API

@moturhead

no, that patch is only included in arch linux right now. It could be included to other distributions but that is up to the distro's maintainer.

Last edited by justkdng (2022-07-02 01:31:08)


GPG key: 3DEA 6251 3C80 3538 3A24  5A12 E578 6B42 E8E5 D565

Offline

#700 2022-07-04 13:23:20

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 261

Re: chromium: hardware video acceleration with VA-API

try this.

--use-gl=egl
--enable-features=VaapiVideoDecoder,VaapiVideoEncoder
--disable-features=UseChromeOSDirectVideoDecoder
--ignore-gpu-blocklist
--disable-gpu-driver-bug-workaround

Offline

Board footer

Powered by FluxBB