PipeWire: Difference between revisions
troubleshooting - audio crackling fix section |
m removing excess braces around example |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[https://www.pipewire.org/ PipeWire] is a relatively new (first release in 2017) low-level multimedia framework. It aims to offer capture and playback for both audio and video with minimal latency | [https://www.pipewire.org/ PipeWire] is a relatively new (first release in 2017) low-level multimedia framework. It aims to offer capture and playback for both audio and video with minimal latency while retaining support for [[PulseAudio]]-, [[JACK]]-, [[ALSA]]-, and [[GStreamer]]-based applications. PipeWire has great [[Bluetooth]] support; due to Pulseaudio being [https://github.com/NixOS/nixpkgs/issues/123784 reported to have troubles with Bluetooth], PipeWire may be a good alternative. | ||
The daemon based on the framework can be configured to be both an audio server (with PulseAudio and JACK features) | The daemon based on the framework can be configured to be both an audio server (with PulseAudio and JACK features) as well as a video capture server. | ||
PipeWire also supports containers | PipeWire also supports containers such as [[Flatpak]] and does not rely on <code>audio</code> and <code>video</code> user groups, rather it uses a [[Polkit]]-like security model, asking Flatpak or [[Wayland]] for permission to record the screen or audio. | ||
As of [https://nixos.org/manual/nixos/stable/release-notes#sec-release-24.11 NixOS 24.11], PipeWire is the default sound server for most graphical sessions. | As of [https://nixos.org/manual/nixos/stable/release-notes#sec-release-24.11 NixOS 24.11], PipeWire is the default sound server for most graphical sessions. | ||
| Line 294: | Line 294: | ||
systemd.services.myservice2.serviceConfig.SupplementaryGroups = [ "pipewire" ]; | systemd.services.myservice2.serviceConfig.SupplementaryGroups = [ "pipewire" ]; | ||
}} | }} | ||
=== Setting default sink volume via wireplumber === | |||
It's possible to declare your desired volume through {{nixos:option|services.pipewire.wireplumber.extraConfig}} by setting [https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/configuration_option_types.html wireplumber.settings]'s [https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration/settings.html default-sink-volume]:<syntaxhighlight lang="nix"> | |||
services.pipewire.wireplumber = { | |||
extraConfig = { | |||
"10-default-volume" = { | |||
"wireplumber.settings"."device.routes.default-sink-volume" = 0.8; # default is 0.4 | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
==Troubleshooting== | ==Troubleshooting== | ||