You are not logged in.

#1076 2024-08-25 21:15:43

EarendilGisthul
Member
Registered: 2024-08-09
Posts: 3

Re: chromium: hardware video acceleration with VA-API

Thank you!

Offline

#1077 2024-09-03 10:52:59

garch-p
Member
Registered: 2024-09-03
Posts: 1

Re: chromium: hardware video acceleration with VA-API

gothmog123 wrote:

sorry maybe off-topic, but is it possible to enable vaapi in electron apps like signal-desktop?

It used to work with Freetube.
So as long as you match the right flags/hardware/electron-release( so its chromium associated release) combination, it could work just as Chromium.

Offline

#1078 2024-09-06 15:47:20

matt3us
Member
Registered: 2023-10-19
Posts: 2

Re: chromium: hardware video acceleration with VA-API

Not a single problem after 120 release (ungoogled-chromium) on Intel. Dumping flags here, some of them are redundant at this point:

--disable-gpu-driver-bug-workarounds
--enable-features=VaapiVideoDecodeLinuxGL,UseChromeOSDirectVideoDecoder,CanvasOopRasterization,WebUIDarkMode
--enable-gpu-rasterization
--ignore-gpu-blocklist
--ozone-platform=wayland

Last edited by matt3us (2024-09-06 15:48:06)

Offline

#1079 2024-09-27 21:46:23

EarendilGisthul
Member
Registered: 2024-08-09
Posts: 3

Re: chromium: hardware video acceleration with VA-API

matt3us wrote:

Not a single problem after 120 release (ungoogled-chromium) on Intel. Dumping flags here, some of them are redundant at this point:

--disable-gpu-driver-bug-workarounds
--enable-features=VaapiVideoDecodeLinuxGL,UseChromeOSDirectVideoDecoder,CanvasOopRasterization,WebUIDarkMode
--enable-gpu-rasterization
--ignore-gpu-blocklist
--ozone-platform=wayland

I guess it's for newer intel generations. My ivy bridge doesn't manage.

Offline

#1080 2024-10-06 18:17:23

skajmer
Member
From: A literal shithole
Registered: 2024-10-06
Posts: 1

Re: chromium: hardware video acceleration with VA-API

On my HD 4000 (Ivy Bridge Mobile) (with some flags) in chrome://gpu everything seems alright. But when playing actual video in chrome://media-internals, I can see warnings about falling back and error:

VaapiVideoDecoder: failed initializing the frame pool

  Video acceleration itself works on my OS (I tested it with mpv). If somebody could get it working on ivy, please tell how.

Last edited by skajmer (2024-10-06 18:18:57)

Offline

#1081 2024-11-03 15:11:25

vbezhenar
Member
Registered: 2024-11-03
Posts: 1

Re: chromium: hardware video acceleration with VA-API

I enabled hardware accelerated video decoding on Chromium with the following configuration:

i7-1355U

Gnome, Wayland

Installed packages: intel-media-driver, vulkan-intel

~/.config/chromium-flags.conf:

--enable-features=Vulkan,DefaultANGLEVulkan,VulkanFromANGLE

I didn't explicitly enable video decoding, but it just works with Vulkan enabled. Seems like the most modern configuration to me. Didn't experience any issues so far from short usage.

I also use flag --ozone-platform=wayland but it is not necessary for video decoding.

EDIT: turned out this is not very stable for me. If I would turn display off for some time, browser becomes frozen and i takes around a minute for it to return back. It's not crashing itself, but according to the logs, GPU process or something like that is crashed and probably being restarted.

Last edited by vbezhenar (2024-11-06 00:58:53)

Offline

#1082 2024-11-14 15:33:17

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

After update to 131, I got this regression (errors show up in chrome://gpu):

[6049:6049:1113/220408.223558:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglCreateContext: Requested version is not supported
[6049:6049:1113/220648.819176:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglCreateContext: Requested version is not supported

and of course I got no video acceleration. Anyone having similar problems?

Offline

#1083 2024-11-14 23:42:27

Bzzz_56
Member
Registered: 2021-05-14
Posts: 36

Re: chromium: hardware video acceleration with VA-API

xuanrui wrote:

After update to 131, I got this regression (errors show up in chrome://gpu):

[6049:6049:1113/220408.223558:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglCreateContext: Requested version is not supported
[6049:6049:1113/220648.819176:ERROR:gl_display.cc(497)] : EGL Driver message (Error) eglCreateContext: Requested version is not supported

and of course I got no video acceleration. Anyone having similar problems?

The same error log shows on my amdgpu setup, but vaapi is working normally. Besides, there is also the following error log

[4867:4867:1114/174017.770009:ERROR:wayland_surface_factory.cc(241)] : '--ozone-platform=wayland' is not compatible with Vulkan. Consider switching to '--ozone-platform=x11' or disabling Vulkan

while vulkan wayland seems also working fine..

Offline

#1084 2024-11-15 09:13:46

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

Sorry, false alarm: apparently I just have to change "VaapiVideoDecode" to "AcceleratedVideoDecode". The old flag is no longer recognized

Offline

#1085 2024-11-15 09:46:08

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

On a site note though, has anyone got Chrome running on Vulkan backend with NVIDIA drivers? 'cos I can't. Seems that only AMD GPUs work at the moment?

Offline

#1086 2024-11-15 12:12:50

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 319

Re: chromium: hardware video acceleration with VA-API

xuanrui wrote:

Sorry, false alarm: apparently I just have to change "VaapiVideoDecode" to "AcceleratedVideoDecode". The old flag is no longer recognized

Sure?
How have you checked? I use " sudo intel_gpu_top" ( I use Intel Xe GPU).
Id doesn't work for me with neither "AcceleratedVideoDecode" nor "AcceleratedVideoDecoder" (trailing "r").
For me it simply doesn't work.
But it works with 130.
Have you also enabled any flag in chrome:flags?

Last edited by 0BADC0DE (2024-11-15 12:14:32)


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#1087 2024-11-15 12:17:04

xuanrui
Member
Registered: 2018-09-27
Posts: 52

Re: chromium: hardware video acceleration with VA-API

0BADC0DE wrote:
xuanrui wrote:

Sorry, false alarm: apparently I just have to change "VaapiVideoDecode" to "AcceleratedVideoDecode". The old flag is no longer recognized

Sure?
How have you checked? I use " sudo intel_gpu_top" ( I use Intel Xe GPU).
Id doesn't work for me with neither "AcceleratedVideoDecode" nor "AcceleratedVideoDecoder" (trailing "r").
For me it simply doesn't work.
But it works with 130.
Have you also enabled any flag in chrome:flags?

Well, it used to be VaapiVideoDecodeLinuxGL,VaapiDecodeLinuxZeroCopyGL, now you just replace "Vaapi" with "Accelerated": AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL

Offline

#1088 2024-11-15 12:23:05

Bzzz_56
Member
Registered: 2021-05-14
Posts: 36

Re: chromium: hardware video acceleration with VA-API

0BADC0DE wrote:

Have you also enabled any flag in chrome:flags?

For reference, u can check the flag commands here.

By the way, i find

VaapiIgnoreDriverChecks

is also necessary on my amdgpu setup to make hw decode working.

Last edited by Bzzz_56 (2024-11-15 12:27:07)

Offline

#1089 2024-11-15 12:23:12

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 319

Re: chromium: hardware video acceleration with VA-API

xuanrui wrote:
0BADC0DE wrote:
xuanrui wrote:

Sorry, false alarm: apparently I just have to change "VaapiVideoDecode" to "AcceleratedVideoDecode". The old flag is no longer recognized

Sure?
How have you checked? I use " sudo intel_gpu_top" ( I use Intel Xe GPU).
Id doesn't work for me with neither "AcceleratedVideoDecode" nor "AcceleratedVideoDecoder" (trailing "r").
For me it simply doesn't work.
But it works with 130.
Have you also enabled any flag in chrome:flags?

Well, it used to be VaapiVideoDecodeLinuxGL,VaapiDecodeLinuxZeroCopyGL, now you just replace "Vaapi" with "Accelerated": AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL

NOw it is ok. But "AcceleratedVideoDecodeLinuxZeroCopyGL" prevents you for using the "VideoEnhance" feature from the GPU.

Is there anything for accelerated video encode ?


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#1090 2024-11-15 12:24:34

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 319

Re: chromium: hardware video acceleration with VA-API

Bzzz_56 wrote:
0BADC0DE wrote:

Have you also enabled any flag in chrome:flags?

For reference, u can check the flag commands here.

Super!!! Thanks @Bzzz_56!


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

#1091 Yesterday 15:58:40

chaos-dremel
Member
Registered: Yesterday
Posts: 2

Re: chromium: hardware video acceleration with VA-API

0BADC0DE wrote:
xuanrui wrote:
0BADC0DE wrote:

Sure?
How have you checked? I use " sudo intel_gpu_top" ( I use Intel Xe GPU).
Id doesn't work for me with neither "AcceleratedVideoDecode" nor "AcceleratedVideoDecoder" (trailing "r").
For me it simply doesn't work.
But it works with 130.
Have you also enabled any flag in chrome:flags?

Well, it used to be VaapiVideoDecodeLinuxGL,VaapiDecodeLinuxZeroCopyGL, now you just replace "Vaapi" with "Accelerated": AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL

NOw it is ok. But "AcceleratedVideoDecodeLinuxZeroCopyGL" prevents you for using the "VideoEnhance" feature from the GPU.

Is there anything for accelerated video encode ?

--enable-features=AcceleratedVideoEncoder

Offline

#1092 Yesterday 16:19:46

chaos-dremel
Member
Registered: Yesterday
Posts: 2

Re: chromium: hardware video acceleration with VA-API

Full Vilkan support on native Wayland:
--ozone-platform=wayland --use-vulkan --enable-features=Vulkan,VulkanFromANGLE,DefaultANGLEVulkan

Optional hint for Vulkan:
--use-gl=angle --use-angle=vulkan
--enable-features=UseOzonePlatform

Optional Wayland hint:
--enable-features=WaylandWindowDecorations


VAAPI Decode (basic):
--enable-features=AcceleratedVideoDecodeLinuxGL

also zero copy variant:
--enable-features=AcceleratedVideoDecodeLinuxZeroCopyGL

VAAPI Decode (more options, not guarantee to work on new versions):
--enable-features=VaapiIgnoreDriverChecks,UseMultiPlaneFormatForHardwareVideo,PlatformHEVCDecoderSupport

VAAPI Encode:
--enable-features=AcceleratedVideoEncoder

also some other old options:
--enable-accelerated-mjpeg-decode --enable-global-vaapi-lock --use-gpu-scheduler-dfs --cast-streaming-hardware-h264


Other "performance" options
--enable-zero-copy --canvas-oop-rasterization --enable-gpu-rasterization
--enable-features=CanvasOopRasterization


Enabling Web GPU (only with unsafe option):
--enable-gpu --enable-unsafe-webgpu


Also a lot of workaround options like:
--disable-gpu-driver-bug-workarounds --ignore-gpu-blocklist
But they are for situations when "nothing helped"


!!! Do not try to enable Skia Graphite with Vulkan -- you will get neither Vulkan, nor Skia Graphite working !!!
!!! RawDraw with Vulkan "works" but you'll get content with all text disappeared !!!

Last edited by chaos-dremel (Yesterday 16:36:36)

Offline

Board footer

Powered by FluxBB