-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
chromium-vaapi: init #85076
chromium-vaapi: init #85076
Conversation
Would be worth investigating if the VAAPI patches (with disabled by default functionality) can become part of the default chromium build due to the added load on the build farm of compiling it twice. See #82443 and others. |
@hyperfekt VA-API disabled by default because this broke video playback on radeon cards. See this commit: 233e551 |
@hyperfekt how I see video acceleration disabled in config by default. I think we can just enable VA-API by default, and manually enable video acceleration in Waiting for other opinions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also prefer to enable VA-API by default (vs. adding chroium-vaapi
). I've added my current thoughts in #82443. If we try to resolve all major issues first we should hopefully be able to succeed this time.
@primeos how about this solution? |
This comment has been minimized.
This comment has been minimized.
provide chromium-vaapi without disabled acceleration for video encoding and decoding
I force-pushed @misuzu solution. Please check and give your opinion and maybe more proper solution. |
I didn't test that solution yet, does it work as expected? From the source-code I'd expect that it wouldn't work as that flag is unavailable on Linux by default (see e.g. In case it doesn't work: I'm currently trying out another solution with a small custom patch to resolve this, but the build is still running (i.e. testing probably has to wait until tomorrow). |
I'm building this now. It seems that |
It works!
This is on my |
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
Sorry for the delay, my initial attempt didn't work as I hoped, but I now finished my alternative draft: It's based on this work but with some differences (I tried to document the reasons). Feel free to add feedback and/or ask questions. If you're ok with it I'd like to go with the approach in #85253, but that's of course open for discussion. |
@primeos I think your solution is better. Now I can close this PR, right? |
Motivation for this change
VA-API give us more speeds for video encoding and a positive effect on the battery if you working on laptop.
Rebuild chromium at least on my laptop with Celeron N3060 takes a lot of time, and not all users wants rebuild it for VA-API only.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)