Jump to content

Chromium: Difference between revisions

→‎Enable GPU accelerated video decoding (VA-API): Copy edit, add working configuration
(→‎Installation: use manual template, make it NixOS specific)
(→‎Enable GPU accelerated video decoding (VA-API): Copy edit, add working configuration)
Line 3: Line 3:
Add {{nixos:package|chromium}} to {{NixOS Manual|name=systemPackages|anchor=#sec-package-management}}.
Add {{nixos:package|chromium}} to {{NixOS Manual|name=systemPackages|anchor=#sec-package-management}}.


== Enable GPU accelerated video decoding (VA-API) ==  
== Accelerated video playback ==  


VA-API is enabled by default now in Chromium. Check chrome://gpu if it is working and if VA is detected. You may need to enable Hardware-accelerated video decode in chrome://flags.  
Make sure [[Accelerated Video Playback]] is setup on the system properly. Check {{ic|chrome://gpu}} to see if Chromium has enabled hardware acceleration.


Make sure the required VA-API drivers are installed: [[Accelerated Video Playback]]
If accelerated video playback is not working, check relevant flags at {{ic|chrome://flags}}, or enable them using the cli:
 
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Make sure your driver works by running: <code>nix-shell -p libva-utils --run vainfo</code>
{
  environment.systemPackages = with pkgs; [
    (chromium.override {
      commandLineArgs = [
        "--enable-features=VaapiVideoDecodeLinuxGL"
        "--ignore-gpu-blocklist"
        "--enable-zero-copy"
      ];
    })
  ];
}
</nowiki>}}


== Gnome Shell extensions ==
== Gnome Shell extensions ==
142

edits