OBS Studio: Difference between revisions

From NixOS Wiki
imported>Wackbyte
add a brief description and a link to their website
imported>Wackbyte
add a guide for installing plugins
Line 1: Line 1:
[https://obsproject.com/ OBS Studio] is free and open source software for video recording and live streaming, licensed under the GNU GPLv2 license.
[https://obsproject.com/ OBS Studio] is free and open source software for video recording and live streaming, licensed under the GNU GPLv2 license.
=== Installing Plugins ===
Plugins are available from the <code>obs-studio-plugins</code> package set.
They can be installed by either wrapping the package with <code>wrapOBS</code>:
<syntaxhighlight lang="nix">
pkgs.wrapOBS.override { obs-studio = pkgs.obs-studio; } {
  plugins = with pkgs.obs-studio-plugins; [
    wlrobs
  ];
};
</syntaxhighlight>
or using [[Home Manager]]:
<syntaxhighlight lang="nix">
{ config, pkgs, ... }:
{
  programs.obs-studio = {
    enable = true;
    plugins = with pkgs.obs-studio-plugins; [
      wlrobs
    ];
  };
}
</syntaxhighlight>


=== Using the Virtual Camera ===
=== Using the Virtual Camera ===

Revision as of 01:16, 15 February 2022

OBS Studio is free and open source software for video recording and live streaming, licensed under the GNU GPLv2 license.

Installing Plugins

Plugins are available from the obs-studio-plugins package set.

They can be installed by either wrapping the package with wrapOBS:

pkgs.wrapOBS.override { obs-studio = pkgs.obs-studio; } {
  plugins = with pkgs.obs-studio-plugins; [
    wlrobs
  ];
};

or using Home Manager:

{ config, pkgs, ... }:
{
  programs.obs-studio = {
    enable = true;
    plugins = with pkgs.obs-studio-plugins; [
      wlrobs
    ];
  };
}

Using the Virtual Camera

The virtual camera requires the v4l2loopback kernel module to be installed, like so:

{ config, ... }:
{
  boot.extraModulePackages = with config.boot.kernelPackages; [
    v4l2loopback
  ];
}