VR: Difference between revisions

Ardenet (talk | contribs)
Marked this version for translation
Ravoyax (talk | contribs)
m Fix spelling mistakes
 
(2 intermediate revisions by 2 users not shown)
Line 148: Line 148:
   autoStart = true;
   autoStart = true;


   # Config for WiVRn (https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md)
   # If you're running this with an nVidia GPU and want to use GPU Encoding (and don't otherwise have CUDA enabled system wide), you need to override the cudaSupport variable.
  config = {
  package = (pkgs.wivrn.override { cudaSupport = true; });
    enable = true;
 
    json = {
  # You should use the default configuration (which is no configuration), as that works the best out of the box.
      # 1.0x foveation scaling
  # 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.
      scale = 1.0;
};|name=configuration.nix|lang=nix}}
      # 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>