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
firefox: wrapper: add libva to libs #81917
Conversation
Followup:
|
Looks like it's probably related to this:
|
cc: @worldofpeace You replied in another thread about Firefox and hardware acceleration in NixOS. I am using the nightly package (a bin package). |
@colemickens since Firefox 75 is released now and 76 should already be in the beta channel you might want to give this another shot, if you have time. If not feel free to simply ignore this comment ;) It would also be also nice if we had VA-API support for the |
Oops. In one version of this I had actually built firefox as well. Anyway, this works with Nightly!
We can merge? In the meantime I can try to make the change for |
Ah, I should be careful, I actually have some other related firefox commits on the branch that I tested from. Let me do a few additional checks around nightly and/or wait for this build to finish. |
Interesting, it looks like this does require moving over to ffmpeg4! |
without this, adding libva is insufficient to get VA-API working in Firefox.
This time I'm sure I'm testing firefox-nightly with the wrapper from this branch: export MOZ_LOG="PlatformDecoderModule:5"; \
set f (~/code/nixcfg/nixbuild.sh -A latest.firefox-nightly-bin); \
$f/bin/firefox --no-remote -P vaapi &> /tmp/firefox similar logs as I posted ~1 hr ago, with two commits now, pushing now. |
c960df8
to
552d729
Compare
Note, I don't know if this is a strong requirement by Firefox or is due to how we build ffmpeg4? But I definitely couldn't get this working with nightly without adding the ffmpeg4 commit. |
Alright, I'm going to put a couple more hours in and then give up and back out the change to the source package and leave this as a change only targetting nightly. However, I know a lot of people want the source build to have va-api too. |
915cb09
to
552d729
Compare
Okay, back to the original scope of this PR. I'll iterate on this, but I know this helps Nightly users, so let's go with this. I can confirm both commits are needed. The older ffmpeg in the wrapper does NOT work, it doesn't even attempt to use va-api or libva. Fortunately, this also means it's easy for Nightly users to test, since this only requires a change to the wrapper and won't need to rebuild Firefox. |
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.
LGTM :) But I'll leave the final decision and merging up to @andir since he's the maintainer.
Can I test this with the firefox-{beta,bin} from nixpkgs or will that not work? With EDIT
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/hardware-acceleration-on-firefox/7947/6 |
Motivation for this change
This change allows VA-API to work in Firefox Nightly builds as provided by
nixpkgs-mozilla
.Two changes:
libva
to the Firefox wrapperffmpeg_4
(without it,(firefox/ffmpeg)
doesn't attempt to use libva/vaapi)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)