Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hardware video acceleration gone after update #212

Closed
dmig opened this issue Sep 6, 2023 · 8 comments
Closed

Hardware video acceleration gone after update #212

dmig opened this issue Sep 6, 2023 · 8 comments

Comments

@dmig
Copy link

dmig commented Sep 6, 2023

System Details

  • OS: Ubuntu 22.04
  • Thorium Version 116.0.5845.169

Problem
After updating from build 50 checked with intel_gpu_top -- hardware video decoding is not being used anymore.

Additional Notes

ANGLE (Intel, Mesa Intel(R) UHD Graphics (CML GT2), OpenGL 4.6 (Core Profile) Mesa 23.1.6 - kisak-mesa PPA)
Video Acceleration Information
Decoding
Encoding
Encode h264 baseline
321x241 to 4096x4096 pixels, and/or 30.000 fps.
Encode h264 main
321x241 to 4096x4096 pixels, and/or 30.000 fps.
Encode h264 high
321x241 to 4096x4096 pixels, and/or 30.000 fps.
Encode vp8
321x241 to 4096x4096 pixels, and/or 30.000 fps.
@lgdsgd2000
Copy link

lgdsgd2000 commented Sep 28, 2023

From M116.0.5845.169
The old VaapiVideoDecodeAccelerator path was [completely removed](https://source.chromium.org/chromium/chromium/src/+/6fb414a7d51f46940cf9c45df04f6ee398f8da1b) upstream, in favour of the new VDAVideoDecoder backend that now powers both Chromium and ChromiumOS. Consequently, the VAAPI and Intel HD patches were removed. The VDPAU patch is now the only remaining graphics patch, for Nvidia users. This should hopefully fix issues people have been having with VAAPI and Wayland. Indeed some people have commented in https://github.com/Alex313031/thorium/issues/162 saying that a vanilla graphics backend works better than Thorium with all of the patches applied.
But there seems to be another vaapi patch still available, and I'm not sure if it's the same one. Chrmoium-wayland-vaapi on AUR Don't know how long it will last.

@dmig
Copy link
Author

dmig commented Sep 28, 2023

Well, Google Chrome Dev -- hardware acceleration works flawlessly, Thorium -- doesn't even try to use it according to intel_gpu_top.

@Alex313031
Copy link
Owner

@dmig @lgdsgd2000 M117 removes the VDPAU patch too. So now the video decoding backend is mostly stock chromium, and so should work/not work in the same scenarios as Chrome 117.

@lgdsgd2000
Copy link

So maybe x11/xwayland hardware decoding available on intel platforms? As far as I know, the amd platform ones have been broken since chromium 116 and may return in 119

@gz83
Copy link
Collaborator

gz83 commented Oct 9, 2023

Thorium's current behavior should be consistent with Chromium 117's behavior on x11/xwayland

@lgdsgd2000

@lgdsgd2000
Copy link

I got this error on M117 with my intel pc "VaapiVideoDecoder: failed Initialize()ing the frame pool" this error always appears on amd cards. @gz83

@gz83
Copy link
Collaborator

gz83 commented Oct 9, 2023

If Thorium 117 and Chromium 117 behave the same on your computer, that's normal.

Chromium's support for hardware acceleration on Linux is not as complete as other platforms and versions. It requires the help of many things to have the opportunity to enable hardware acceleration.

@lgdsgd2000

@lgdsgd2000
Copy link

@gz83 it now works on my archlinux, the previous error appeared in debian. Not sure what the difference is,anyway thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants