VR: Difference between revisions

Krutonium (talk | contribs)
Show how to enable nvenc/GPU encoding
Ravoyax (talk | contribs)
m Fix spelling mistakes
 
(One intermediate revision by the same user not shown)
Line 151: Line 151:
   package = (pkgs.wivrn.override { cudaSupport = true; });
   package = (pkgs.wivrn.override { cudaSupport = true; });


   # Config for WiVRn (https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md)
   # You should use the default configuration (which is no configuration), as that works the best out of the box.
  config = {
  # However, if you need to configure something see https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md for configuration options and https://mynixos.com/nixpkgs/option/services.wivrn.config.json for an example configuration.
    enable = true;
};|name=configuration.nix|lang=nix}}
    json = {
      # 1.0x foveation scaling
      scale = 1.0;
      # 100 Mb/s
      bitrate = 100000000;
      encoders = [
        {
          encoder = "vaapi";
          codec = "h265";
          # 1.0 x 1.0 scaling
          width = 1.0;
          height = 1.0;
          offset_x = 0.0;
          offset_y = 0.0;
        }
      ];
    };
  };
};}}


<translate>
<translate>