Jump to content

Accelerated Video Playback: Difference between revisions

Add intel hybrid codec information
imported>Makefu
(add nixos-hardware)
imported>Colemickens
(Add intel hybrid codec information)
Line 1: Line 1:
This page is meant to help with techniques for getting accelerated video playback working in NixOS.
This page is meant to help with techniques for getting accelerated video playback working in NixOS.
This is done by adding relevant `libva`-related packages to the `hardware.opengl.extraPackages` option.
Additionally, the `vaapiIntel` package can be overriden to enable [Intel's Hybrid Driver](https://github.com/01org/intel-hybrid-driver).


Sample configuration:
Sample configuration:
Line 5: Line 9:
   {
   {
     ...
     ...
    nixpkgs.config.packageOverrides = pkgs: {
      vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
    };
     hardware.opengl = {
     hardware.opengl = {
       enable = true;
       enable = true;
Line 15: Line 22:
     ...
     ...
   }
   }
 


== Prepared Hardware configuration ==
== Prepared Hardware configuration ==
Sometimes different opengl packages are required to achieve full performance. You can check different configuration repositories for similar hardware configuration:
Sometimes different opengl packages are required to achieve full performance. You can check different configuration repositories for similar hardware configuration:
* [https://github.com/NixOS/nixos-hardware The NixOS-Hardware Repository]
* [https://github.com/NixOS/nixos-hardware The NixOS-Hardware Repository]
Anonymous user