VR: Difference between revisions

Krutonium (talk | contribs)
Show how to enable nvenc/GPU encoding
Ravoyax (talk | contribs)
Removed the default configuration for WiVRn as it might cause problems and the moderator on the Linux VR Adventures said it's better to use no config: https://discord.com/channels/1065291958328758352/1225819663024259082/1435000987248230504
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 opteins andhttps://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>