pipewire-client.conf(5) | File Formats Manual | pipewire-client.conf(5) |
pipewire-client.conf - client.conf
The PipeWire client configuration file.
$XDG_CONFIG_HOME/pipewire/client.conf
/etc/pipewire/client.conf
/usr/share/pipewire/client.conf
/usr/share/pipewire/client.conf.d/
/etc/pipewire/client.conf.d/
$XDG_CONFIG_HOME/pipewire/client.conf.d/
$XDG_CONFIG_HOME/pipewire/client-rt.conf
/etc/pipewire/client-rt.conf
/usr/share/pipewire/client-rt.conf
/usr/share/pipewire/client-rt.conf.d/
/etc/pipewire/client-rt.conf.d/
$XDG_CONFIG_HOME/pipewire/client-rt.conf.d/
Configuration for PipeWire native clients, and for PipeWire's ALSA plugin.
A PipeWire native client program selects the default config to load, and if nothing is specified, it usually loads client.conf.
The ALSA plugin uses the client-rt.conf file, as do some PipeWire native clients such as pw-cat(1).
The configuration file format and lookup logic is the same as for pipewire.conf(5).
Drop-in configuration files client.conf.d/*.conf can be used, and are recommended. See pipewire.conf(5).
stream.properties
stream.rules
alsa.properties
alsa.rules
In addition, the PipeWire context configuration sections may also be specified, see pipewire.conf(5).
The client configuration files contain a stream.properties section that configures the options for client streams:
stream.properties = { #node.latency = 1024/48000 #node.autoconnect = true #resample.disable = false #resample.quality = 4 #monitor.channel-volumes = false #channelmix.disable = false #channelmix.min-volume = 0.0 #channelmix.max-volume = 10.0 #channelmix.normalize = false #channelmix.lock-volume = false #channelmix.mix-lfe = true #channelmix.upmix = true #channelmix.upmix-method = psd # none, simple #channelmix.lfe-cutoff = 150.0 #channelmix.fc-cutoff = 12000.0 #channelmix.rear-delay = 12.0 #channelmix.stereo-widen = 0.0 #channelmix.hilbert-taps = 0 #dither.noise = 0 #dither.method = none # rectangular, triangular, triangular-hf, wannamaker3, shaped5 #debug.wav-path = "" }
Some of the properties refer to different aspects of the stream:
These contain properties to identify the node or to display the node in a GUI application.
node.name
node.description
media.name
media.title
media.artist
media.copyright
media.software
media.language
media.filename
media.icon
media.icon-name
media.comment
media.date
media.format
object.linger = false
The classifying properties of a node are use for routing the signal to its destination and for configuring the settings.
media.type
media.category
media.role
media.class
The session manager assigns special meaning to the nodes based on the media.class. Sink or Source classes are used as targets for Stream classes, etc..
node.latency = 1024/48000
node.lock-quantum = false
JACK clients use this property to avoid unexpected quantum changes.
node.force-quantum = INTEGER
A value of 0 unforces the quantum.
node.rate = RATE
node.lock-rate = false
node.force-rate = RATE
A RATE of 0 means to force the rate in node.rate denominator.
node.always-process = false
This is the default for JACK nodes, that always need their process callback called.
node.want-driver = true
node.pause-on-idle = false
node.suspend-on-idle = false
When the session manager does not suspend nodes (or when there is no session manager), the node.suspend-on-idle property can be used instead.
node.autoconnect = true
node.exclusive = false
node.target = <node.name|object.id>
target.object = <node.name|object.serial>
node.dont-reconnect = false
Note that if a stream should appear/disappear in sync with the target, a session manager (WirePlumber) script should be written instead.
node.passive = false
This is used for filter nodes that sit in front of sinks/sources and need to suspend together with the sink/source.
node.link-group = ID
stream.dont-remix = false
An audio stream (and also audio device nodes) contain an audio adapter that can perform, sample format, sample rate and channel mixing operations.
The merger is used as the input for a sink device node or a capture stream. It takes the various channels and merges them into a single stream for further processing.
The merger will also provide the monitor ports of the input channels and can apply a software volume on the monitor signal.
monitor.channel-volumes = false
Source, sinks, capture and playback streams contain a high quality adaptive resampler. It uses sinc based resampling with linear interpolation of filter banks to perform arbitrary resample factors. The resampler is activated in the following cases:
PipeWire performs most of the sample conversions and resampling in the client (Or in the case of the PulseAudio server, in the pipewire-pulse server that creates the streams). This ensures all the conversions are offloaded to the clients and the server can deal with one single format for performance reasons.
Below is an explanation of the options that can be tuned in the sample converter.
resample.quality = 4
Increasing the quality will result in better cutoff and less aliasing at the expense of (much) more CPU consumption. The default quality of 4 has been selected as a good compromise between quality and performance with no artifacts that are well below the audible range.
See Infinite Wave for a comparison of the performance.
resample.disable = false
Source, sinks, capture and playback streams can apply channel mixing on the incoming signal.
Normally the channel mixer is not used for devices, the device channels are usually exposed as they are. This policy is usually enforced by the session manager, so we refer to its documentation there.
Playback and capture streams are usually configured to the channel layout of the sink/source they connect to and will thus perform channel mixing.
The channel mixer also implements a software volume. This volume adjustment is performed on the original channel layout. ex: A stereo playback stream that is up-mixed to 5.1 has 2 a left an right volume control.
channelmix.disable = false
channelmix.min-volume = 0.0
channelmix.max-volume = 10.0
channelmix.normalize = false
While this options prevents clipping, it can in some cases produce too low volume. Increase the volume in that case or disable normalization.
channelmix.lock-volumes = false
channelmix.mix-lfe = true
channelmix.upmix = true
Also enabled up-mixing of LFE when channelmix.lfe-cutoff is set to something else than 0 and the target has an LFE channel. The LFE channel is produced by adding the stereo channels.
If channelmix.upmix is true, the up-mixing of the rear channels is also enabled and controlled with the channelmix-upmix-method property.
channelmix.upmix-method = psd
channelmix.lfe-cutoff = 150
channelmix.fc-cutoff = 12000
Since the front center contains the dialogs, a typical cutoff frequency is 12000 Hz.
This option is only active when the up-mix is enabled.
channelmix.rear-delay = 12.0
This is only active when the psd up-mix method is used.
channelmix.stereo-widen = 0.0
This is only active when up-mix is enabled and a Front Center channel is mixed.
channelmix.hilbert-taps = 0
This is only active when the psd up-mix method is used.
dither.noise = 0
dither.method = none
There are 6 modes available:
Dithering is only useful for conversion to a format with less than 24 bits and will be disabled otherwise.
debug.wav-path = ''
Streams and also most device nodes can be configured in a certain format with properties.
audio.rate = RATE
audio.channels = INTEGER
audio.format = FORMAT
Valid formats include: S16, S32, F32, F64, S16LE, S16BE, ...
audio.allowed-rates
You can add match rules, see pipewire(1) to set properties for certain streams and filters.
stream.rules and filter.rules provides an update-props action that takes an object with properties that are updated on the node object of the stream and filter.
Add a stream.rules or filter.rules section in the config file like this:
stream.rules = [ { matches = [ { # all keys must match the value. ! negates. ~ starts regex. application.process.binary = "firefox" } ] actions = { update-props = { node.name = "My Name" } } } ]
Will set the node.name of Firefox to 'My Name'.
An alsa.properties section can be added to configure ALSA specific client config.
alsa.properties = { #alsa.deny = false #alsa.format = 0 #alsa.rate = 0 #alsa.channels = 0 #alsa.period-bytes = 0 #alsa.buffer-bytes = 0 #alsa.volume-method = cubic # linear, cubic }
alsa.deny
alsa.format
alsa.rate
alsa.channels
alsa.period-bytes
alsa.buffer-bytes
alsa.volume-method = cubic | linear
It is possible to set ALSA client specific properties by using Match rules, see pipewire(1). You can set any of the above ALSA properties or any of the stream.properties.
alsa.rules = [ { matches = [ { application.process.binary = "resolve" } ] actions = { update-props = { alsa.buffer-bytes = 131072 } } } ]
See pipewire(1) for common environment variables. Many of these also apply to client applications.
The environment variables also influence ALSA applications that are using PipeWire's ALSA plugin.
PIPEWIRE_ALSA
For example:
PIPEWIRE_ALSA='{ alsa.buffer-bytes=16384 node.name=foo }' aplay ...
Starts aplay with custom properties.
PIPEWIRE_NODE
For example:
PIPEWIRE_NODE=alsa_output.pci-0000_00_1b.0.analog-stereo aplay ...
Makes aplay play on the give audio sink.
The PipeWire Developers <https://gitlab.freedesktop.org/pipewire/pipewire/issues>; PipeWire is available from <https://pipewire.org>
libpipewire-module-protocol-pulse(7), pipewire.conf(5), pipewire-pulse(1), pipewire-pulse-modules(7)
1.0.5 | PipeWire |