Debian Codegraph @

doc/dox/config/pipewire-props.7.md

raw symbols SCIP
1 \page page_man_pipewire-props_7 pipewire-props
2
3 PipeWire object property reference.
4
5 \tableofcontents
6
7 # DESCRIPTION
8
9 PipeWire describes and configures audio and video elements with
10 objects of the following main types:
11
12 \par Node
13 Audio or video sink/source endpoint
14
15 \par Device
16 Sound cards, bluetooth devices, cameras, etc. May have multiple nodes.
17
18 \par Monitor
19 Finding devices and handling hotplugging
20
21 \par Port
22 Audio/video endpoint in a node
23
24 \par Link
25 Connection between ports, that transporting audio/video between them.
26
27 \par Client
28 Application connected to PipeWire.
29
30 All objects have *properties* ("props"), most of which can be set in
31 configuration files or at runtime when the object is created.
32
33 Some of the properties are "common properties" (for example
34 `node.description`) and can be set on all objects of the given
35 type. Other properties control settings of a specific kinds of device
36 or node (ALSA, Bluetooth, ...), and have meaning only for those
37 objects.
38
39 # CUSTOMIZING PROPERTIES @IDX@ props
40
41 Usually, all device properties are configured in the session manager
42 configuration, see the session manager documentation.
43 Application properties are configured in
44 ``client.conf`` (for native PipeWire and ALSA applications),
45 ``pipewire-pulse.conf`` (for Pulseaudio applications), and
46 ``jack.conf`` (for JACK applications).
47
48 In minimal PipeWire setups without a session manager,
49 the device properties can be configured via
50 \ref pipewire_conf__context_objects "context.objects in pipewire.conf(5)"
51 when creating the devices.
52
53 ## Examples
54
55 Device configuration using WirePlumber (requires WirePlumber restart to apply).
56 See [WirePlumber configuration](https://pipewire.pages.freedesktop.org/wireplumber/daemon/configuration.html)
57 ```css
58 # ~/.config/wireplumber/wireplumber.conf.d/custom-props.conf
59
60 monitor.alsa.properties = {
61 alsa.udev.expose-busy = true
62 }
63
64 monitor.alsa.rules = [
65 {
66 matches = [ { device.name = "~alsa_card.pci-.*" } ],
67 actions = { update-props = { api.alsa.soft-mixer = true } }
68 },
69 {
70 matches = [ { node.name = "alsa_output.pci-0000_03_00.1.hdmi-stereo-extra3" } ]
71 actions = { update-props = { node.description = "Main Audio" } }
72 }
73 ]
74
75 monitor.alsa-midi.properties = {
76 api.alsa.seq.ump = true
77 }
78
79 monitor.bluez.properties = {
80 bluez5.hfphsp-backend = ofono
81 }
82
83 monitor.bluez.rules = [
84 {
85 matches = [ { device.name = "~bluez_card.*" } ],
86 actions = { update-props = { bluez5.dummy-avrcp player = true } }
87 }
88 ]
89 ```
90
91 Native client configuration (requires client application restart to apply).
92 See \ref client_conf__stream_rules "pipewire-client.conf(5)"
93 ```css
94 # ~/.config/pipewire/client.conf/custom-props.conf
95
96 stream.rules = [
97 {
98 matches = [ { application.name = "pw-play" } ]
99 actions = { update-props = { node.description = "Some pw-cat stream" } }
100 }
101 ]
102 ```
103
104 Pulseaudio client configuration (requires \ref page_man_pipewire-pulse_1 "pipewire-pulse(1)" restart to apply).
105 See \ref pipewire-pulse_conf__stream_rules "pipewire-pulse.conf(5)"
106 ```css
107 # ~/.config/pipewire/pipewire-pulse.conf/custom-props.conf
108
109 stream.rules = [
110 {
111 matches = [ { application.name = "paplay" } ]
112 actions = { update-props = { node.description = "Some paplay stream" } }
113 }
114 ]
115 ```
116
117 JACK client configuration (requires client restart to apply).
118 See \ref jack_conf__match_rules "pipewire-jack.conf(5)"
119 ```css
120 # ~/.config/pipewire/jack.conf/custom-props.conf
121
122 jack.rules = [
123 {
124 matches = [ { client.name = "jack_delay" } ]
125 actions = { update-props = { node.description = "Some JACK node" } }
126 }
127 ]
128 ```
129
130 # COMMON DEVICE PROPERTIES @IDX@ props
131
132 These are common properties for devices.
133
134 @PAR@ device-prop device.name # string
135 A (unique) name for the device. It can be used by command-line and other tools to identify the device.
136
137 @PAR@ device-prop device.param.PARAM = { ... } # JSON
138 \parblock
139 Set value of a device \ref spa_param_type "Param" to a JSON value when the device is loaded.
140 This works similarly as \ref page_man_pw-cli_1 "pw-cli(1)" `set-param` command.
141 The `PARAM` should be replaced with the name of the Param to set,
142 ie. for example `device.Param.Props = { ... }` to set `Props`.
143 \endparblock
144
145 @PAR@ device-prop device.plugged # integer
146 \parblock
147 \copydoc PW_KEY_DEVICE_PLUGGED
148 \endparblock
149
150 @PAR@ device-prop device.nick # string
151 \parblock
152 \copydoc PW_KEY_DEVICE_NICK
153 \endparblock
154
155 @PAR@ device-prop device.description # string
156 \parblock
157 \copydoc PW_KEY_DEVICE_DESCRIPTION
158 \endparblock
159
160 @PAR@ device-prop device.serial # string
161 \parblock
162 \copydoc PW_KEY_DEVICE_SERIAL
163 \endparblock
164
165 @PAR@ device-prop device.vendor.id # integer
166 \parblock
167 \copydoc PW_KEY_DEVICE_VENDOR_ID
168 \endparblock
169
170 @PAR@ device-prop device.vendor.name # string
171 \parblock
172 \copydoc PW_KEY_DEVICE_VENDOR_NAME
173 \endparblock
174
175 @PAR@ device-prop device.product.id # integer
176 \parblock
177 \copydoc PW_KEY_DEVICE_PRODUCT_ID
178 \endparblock
179
180 @PAR@ device-prop device.product.name # string
181 \parblock
182 \copydoc PW_KEY_DEVICE_PRODUCT_NAME
183 \endparblock
184
185 @PAR@ device-prop device.class # string
186 \parblock
187 \copydoc PW_KEY_DEVICE_CLASS
188 \endparblock
189
190 @PAR@ device-prop device.form-factor # string
191 \parblock
192 \copydoc PW_KEY_DEVICE_FORM_FACTOR
193 \endparblock
194
195 @PAR@ device-prop device.icon # string
196 \parblock
197 \copydoc PW_KEY_DEVICE_ICON
198 \endparblock
199
200 @PAR@ device-prop device.icon-name # string
201 \parblock
202 \copydoc PW_KEY_DEVICE_ICON_NAME
203 \endparblock
204
205 @PAR@ device-prop device.intended-roles # string
206 \parblock
207 \copydoc PW_KEY_DEVICE_INTENDED_ROLES
208 \endparblock
209
210 @PAR@ device-prop device.disabled = false # boolean
211 Disable the creation of this device in session manager.
212
213
214 There are other common `device.*` properties for technical purposes
215 and not usually user-configurable.
216
217 \see pw_keys in the API documentation for a full list.
218
219 # COMMON NODE PROPERTIES @IDX@ props
220
221 The properties here apply to general audio or video input/output
222 streams, and other nodes such as sinks or sources corresponding to
223 real or virtual devices.
224
225 ## Identifying Properties @IDX@ props
226
227 These contain properties to identify the node or to display the node in a GUI application.
228
229 @PAR@ node-prop node.name # string
230 A (unique) name for the node. This is usually set on sink and sources to identify them
231 as targets for linking by the session manager.
232
233 @PAR@ node-prop node.nick # string
234 A short name for the node.
235
236 @PAR@ node-prop node.description # string
237 A human readable description of the node or stream.
238
239 @PAR@ node-prop media.name
240 A user readable media name, usually the artist and title.
241 These are usually shown in user facing applications
242 to inform the user about the current playing media.
243
244 @PAR@ node-prop media.title
245 A user readable stream title.
246
247 @PAR@ node-prop media.artist
248 A user readable stream artist
249
250 @PAR@ node-prop media.copyright
251 User readable stream copyright information
252
253 @PAR@ node-prop media.software
254 User readable stream generator software information
255
256 @PAR@ node-prop media.language
257 Stream language in POSIX format. Ex: `en_GB`
258
259 @PAR@ node-prop media.filename
260 File name for the stream
261
262 @PAR@ node-prop media.icon
263 Icon for the media, a base64 blob with PNG image data
264
265 @PAR@ node-prop media.icon-name
266 An XDG icon name for the media. Ex: `audio-x-mp3`
267
268 @PAR@ node-prop media.comment
269 Extra stream comment
270
271 @PAR@ node-prop media.date
272 Date of the media
273
274 @PAR@ node-prop media.format
275 User readable stream format information
276
277 @PAR@ node-prop object.linger = false
278 If the object should outlive its creator.
279
280 @PAR@ node-prop device.id
281 ID of the device the node belongs to.
282
283 ## Classifying Properties @IDX@ props
284
285 The classifying properties of a node are use for routing the signal to its destination and
286 for configuring the settings.
287
288 @PAR@ node-prop media.type
289 The media type contains a broad category of the media that is being processed by the node.
290 Possible values include "Audio", "Video", "Midi"
291
292 @PAR@ node-prop media.category
293 \parblock
294 What kind of processing is done with the media. Possible values include:
295
296 * Playback: media playback.
297 * Capture: media capture.
298 * Duplex: media capture and playback or media processing in general.
299 * Monitor: a media monitor application. Does not actively change media data but monitors
300 activity.
301 * Manager: Will manage the media graph.
302 \endparblock
303
304 @PAR@ node-prop media.role
305 \parblock
306 The Use case of the media. Possible values include:
307
308 * Movie: Movie playback with audio and video.
309 * Music: Music listening.
310 * Camera: Recording video from a camera.
311 * Screen: Recording or sharing the desktop screen.
312 * Communication: VOIP or other video chat application.
313 * Game: Game.
314 * Notification: System notification sounds.
315 * DSP: Audio or Video filters and effect processing.
316 * Production: Professional audio processing and production.
317 * Accessibility: Audio and Visual aid for accessibility.
318 * Test: Test program.
319 \endparblock
320
321 @PAR@ node-prop media.class
322 \parblock
323 The media class is to classify the stream function. Possible values include:
324
325 * Video/Source: a producer of video, like a webcam.
326 * Video/Sink: a consumer of video, like a display window.
327 * Audio/Source: a source of audio samples like a microphone.
328 * Audio/Sink: a sink for audio samples, like an audio card.
329 * Audio/Duplex: a node that is both a sink and a source.
330 * Stream/Output/Audio: a playback stream.
331 * Stream/Input/Audio: a capture stream.
332
333 The session manager assigns special meaning to the nodes based on the media.class. Sink or Source
334 classes are used as targets for Stream classes, etc..
335 \endparblock
336
337 ## Scheduling Properties @IDX@ props
338
339 @PAR@ node-prop node.latency = 1024/48000
340 Sets a suggested latency on the node as a fraction. This is just a suggestion, the graph will try to configure this latency or less for the graph. It is however possible that the graph is forced to a higher latency.
341
342 @PAR@ node-prop node.lock-quantum = false
343 \parblock
344 When this node is active, the quantum of the graph is locked and not allowed to change automatically.
345 It can still be changed forcibly with metadata or when a node forces a quantum.
346
347 JACK clients use this property to avoid unexpected quantum changes.
348 \endparblock
349
350 @PAR@ node-prop node.force-quantum = INTEGER
351 \parblock
352 While the node is active, force a quantum in the graph. The last node to be activated with this property wins.
353
354 A value of 0 unforces the quantum.
355 \endparblock
356
357 @PAR@ node-prop node.rate = RATE
358 Suggest a rate (samplerate) for the graph. The suggested rate will only be applied when doing so would not cause
359 interruptions (devices are idle) and when the rate is in the list of allowed rates in the server.
360
361 @PAR@ node-prop node.lock-rate = false
362 When the node is active, the rate of the graph will not change automatically. It is still possible to force a rate change with metadata or with a node property.
363
364 @PAR@ node-prop node.force-rate = RATE
365 \parblock
366 When the node is active, force a specific sample rate on the graph. The last node to activate with this property wins.
367
368 A RATE of 0 means to force the rate in `node.rate` denominator.
369 \endparblock
370
371 @PAR@ node-prop node.always-process = false
372 \parblock
373 When the node is active, it will always be joined with a driver node, even when nothing is linked to the node.
374 Setting this property to true also implies node.want-driver = true.
375
376 This is the default for JACK nodes, that always need their process callback called.
377 \endparblock
378
379 @PAR@ node-prop node.want-driver = true
380 The node wants to be linked to a driver so that it can start processing. This is the default for streams
381 and filters since 0.3.51. Nodes that are not linked to anything will still be set to the idle state,
382 unless node.always-process is set to true.
383
384 @PAR@ node-prop node.pause-on-idle = false
385 @PAR@ node-prop node.suspend-on-idle = false
386 \parblock
387 When the node is not linked anymore, it becomes idle. Normally idle nodes keep processing and are suspended by the session manager after some timeout. It is possible to immediately pause a node when idle with this property.
388
389 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.
390 \endparblock
391
392 @PAR@ node-prop node.loop.name = null
393 @PAR@ node-prop node.loop.class = data.rt
394 \parblock
395 Add the node to a specific loop name or loop class. By default the node is added to the
396 data.rt loop class. You can make more specific data loops and then assign the nodes to those.
397
398 Other well known names are main-loop.0 and the main node.loop.class which runs the node data processing
399 in the main loop.
400 \endparblock
401
402 @PAR@ node-prop priority.driver # integer
403 \parblock
404 The priority of choosing this device as the driver in the graph. The driver is selected from all linked devices by selecting the device with the highest priority.
405
406 Normally, the session manager assigns higher priority to sources so that they become the driver in the graph. The reason for this is that adaptive resampling should be done on the sinks rather than the source to avoid signal distortion when capturing audio.
407 \endparblock
408
409 @PAR@ node-prop clock.name # string
410 \parblock
411 The name of the clock. This name is auto generated from the card index and stream direction. Devices with the same clock name will not use a resampler to align the clocks. This can be used to link devices together with a shared word clock.
412
413 In Pro Audio mode, nodes from the same device are assumed to have the same clock and no resampling will happen when linked together. So, linking a capture port to a playback port will not use any adaptive resampling in Pro Audio mode.
414
415 In Non Pro Audio profile, no such assumption is made and adaptive resampling is done in all cases by default. This can also be disabled by setting the same clock.name on the nodes.
416 \endparblock
417
418 ## Session Manager Properties @IDX@ props
419
420 @PAR@ node-prop node.autoconnect = true
421 Instructs the session manager to automatically connect this node to some other node, usually
422 a sink or source.
423
424 @PAR@ node-prop node.exclusive = false
425 If this node wants to be linked exclusively to the sink/source.
426
427 @PAR@ node-prop target.object = <node.name|object.serial>
428 Where the node should link to, this can be a node.name or an object.serial.
429
430 @PAR@ node-prop node.target = <node.name|object.id>
431 Where this node should be linked to. This can be a node.name or an object.id of a node. This property is
432 deprecated, the target.object property should be used instead, which uses the more unique object.serial as
433 a possible target.
434
435 @PAR@ node-prop node.dont-reconnect = false
436 \parblock
437 When the node has a target configured and the target is destroyed, destroy the node as well.
438 This property also inhibits that the node is moved to another sink/source.
439
440 Note that if a stream should appear/disappear in sync with the target, a session manager (WirePlumber) script
441 should be written instead.
442 \endparblock
443
444 @PAR@ node-prop node.dont-fallback = false
445 If linking this node to its specified target does not succeed, session
446 manager should not fall back to linking it to the default target.
447
448 @PAR@ node-prop node.dont-move = false
449 Whether the node target may be changed using metadata.
450
451 @PAR@ node-prop node.passive = false
452 \parblock
453 This is a passive node and so it should not keep sinks/sources busy. This property makes the session manager create passive links to the sink/sources. If the node is not otherwise linked (via a non-passive link), the node and the sink it is linked to are idle (and eventually suspended).
454
455 This is used for filter nodes that sit in front of sinks/sources and need to suspend together with the sink/source.
456 \endparblock
457
458 @PAR@ node-prop node.link-group = ID
459 Add the node to a certain link group. Nodes from the same link group are not automatically linked to each other by the session manager. And example is a coupled stream where you don't want the output to link to the input streams, making a useless loop.
460
461 @PAR@ node-prop stream.dont-remix = false
462 Instruct the session manager to not remix the channels of a stream. Normally the stream channel configuration is changed to match the sink/source it is connected to. With this property set to true, the stream will keep its original channel layout and the session manager will link matching channels with the sink.
463
464 @PAR@ node-prop priority.session # integer
465 The priority for selecting this node as the default source or sink.
466
467 @PAR@ node-prop session.suspend-timeout-seconds = 3 # float
468 Timeout in seconds, after which an idle node is suspended.
469 Value ``0`` means the node will not be suspended.
470
471 @PAR@ node-prop state.restore-props = true
472 Whether session manager should save state for this node.
473
474 ## Format Properties
475
476 Streams and also most device nodes can be configured in a certain format with properties.
477
478 @PAR@ node-prop audio.rate = RATE
479 Forces a samplerate on the node.
480
481 @PAR@ node-prop audio.channels = INTEGER
482 The number of audio channels to use. Must be a value between 1 and 64.
483
484 @PAR@ node-prop audio.format = FORMAT
485 \parblock
486 Forces an audio format on the node. This is the format used internally in the node because the graph processing format is always float 32.
487
488 Valid formats include: S16, S32, F32, F64, S16LE, S16BE, ...
489 \endparblock
490
491 @PAR@ node-prop audio.allowed-rates
492 An array of allowed samplerates for the node. ex. "[ 44100 48000 ]"
493
494 ## Other Properties
495
496 @PAR@ node-prop node.param.PARAM = { ... } # JSON
497 \parblock
498 Set value of a node \ref spa_param_type "Param" to a JSON value when the device is loaded.
499 This works similarly as \ref page_man_pw-cli_1 "pw-cli(1)" `set-param` command.
500 The `PARAM` should be replaced with the name of the Param to set,
501 ie. for example `node.param.Props = { ... }` to set `Props`.
502 \endparblock
503
504 @PAR@ node-prop node.disabled = false # boolean
505 Disable the creation of this node in session manager.
506
507
508 # AUDIO ADAPTER PROPERTIES @IDX@ props
509
510 Most audio nodes (ALSA, Bluetooth, audio streams from applications,
511 ...) have common properties for the audio adapter. The adapter
512 performs sample format, sample rate and channel mixing operations.
513
514 All properties listed below are node properties.
515
516 ## Merger Parameters
517
518 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.
519
520 The merger will also provide the monitor ports of the input channels and can
521 apply a software volume on the monitor signal.
522
523 @PAR@ node-prop monitor.channel-volumes = false
524 The volume of the input channels is applied to the volume of the monitor ports. Normally
525 the monitor ports expose the raw unmodified signal on the input ports.
526
527 ## Resampler Parameters
528
529 Source, sinks, capture and playback streams contain a high quality adaptive resampler.
530 It uses [sinc](https://ccrma.stanford.edu/~jos/resample/resample.pdf) based resampling
531 with linear interpolation of filter banks to perform arbitrary
532 resample factors. The resampler is activated in the following cases:
533
534 * The hardware of a device node does not support the graph samplerate. Resampling will occur
535 from the graph samplerate to the hardware samplerate.
536 * The hardware clock of a device does not run at the same speed as the graph clock and adaptive
537 resampling is required to match the clocks.
538 * A stream does not have the same samplerate as the graph and needs to be resampled.
539 * An application wants to activate adaptive resampling in a stream to make it match some other
540 clock.
541
542 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.
543
544 Below is an explanation of the options that can be tuned in the sample converter.
545
546 @PAR@ node-prop resample.quality = 4
547 \parblock
548 The quality of the resampler. from 0 to 14, the default is 4.
549
550 The quality of a resampler depends on multiple factors:
551
552 1. Anti-Aliasing, how well are unwanted frequencies filtered out. Poor anti-aliasing
553 will make the original inaudible frequencies audible as distortion and noise.
554 2. Cutoff frequency. At what frequency the transition band will start. This is the
555 frequency where the signal will start to fade out. A too low cutoff might remove too
556 much of the high frequencies and make the sound dull. A too high cutoff might cause
557 aliasing. The cutoff frequency is usually expressed as a ratio of the Nyquist
558 frequency, 1.0 being the Nyquist frequency (frequency/2).
559 3. Transition band length. How quickly the unwanted frequencies are filtered out. A
560 shorter transition band requires longer filters with more CPU and latency but
561 causes less aliasing. The transition band length is expressed as a ratio of the
562 Nyquist frequency.
563 4. Stopband attenuation. How well the unwanted frequencies are filtered out. This is
564 usually measured in dB. 96dB is below audible on CD quality audio, 150dB is below
565 the precision of floating point values.
566 5. CPU usage. Better anti-aliasing needs longer filters and is therefore more CPU
567 intensive.
568 6. Latency. Longer filters have a higher Latency. In real-time application the latency
569 should be kept as low as possible. The required latency is usually
570 (filter-length/2)/source-sample-rate, so a resample filter with length of 128 on a
571 48Khz signal has 1.3ms ((128/2)/48000) of latency.
572 7. Ringing. A too short transition band length might cause ringing because of how the
573 sinc filters work. This can sound like flutter on sharp attacks in the audio signal.
574
575 Increasing the quality will result in better cutoff and less aliasing at the expense of
576 (much) more CPU consumption, latency and more ringing. The default quality of 4 has
577 been selected as a good compromise between quality and performance with no artifact
578 s that are well below the audible range.
579
580 The default resampler quality for the exp window results in a cutoff of 0.87 and a
581 filter size of about 48 taps. It has a Stopband attenuation of about 150 dB.
582
583 See [Infinite Wave](https://src.infinitewave.ca/) for a comparison of the performance.
584
585 You can tune the resampler in a variaty of ways:
586
587 * Tune the cutoff frequency. Increase the cutoff to preserve more high frequencies at the
588 expense of more aliasing.
589 * Tune the transition band. Reduce the transition band to better filter out the frequencies
590 around the cutoff frequency and get less aliasing at the expense of more ringing, CPU and
591 Latency. This can be done by increasing the number of taps.
592 * Tune the stopband attenuation. Increase the attenuation to reduce aliasing at the expense
593 of a wider transition band. This can only be done on the kaiser window, the exp and
594 blackman window have 150dB and 96dB attenuation respecively.
595 \endparblock
596
597 @PAR@ node-prop resample.disable = false
598 Disable the resampler entirely. The node will only be able to negotiate with the graph
599 when the samplerates are compatible.
600
601 @PAR@ node-prop resample.window = exp
602 \parblock
603 The resampler window function to use. By default an exponential window function is used
604 that gives a good balance between complexitiy and quality.
605
606 You can also specify a blackman or kaiser window, both with different tradeoffs. The
607 kaiser window has some extra tunable parameters for the specific use cases.
608 \endparblock
609
610 @PAR@ node-prop resample.cutoff = 0.0
611 \parblock
612 The resampler cutoff frequency. This is a value between 0.0 and 1.0. A value of 0.0 will
613 use a predefined value based on the resampler quality.
614
615 A higher cutoff value will preserve more high frequency content but depending on the
616 size of the transition band will cause more aliasing.
617
618 The default quality 4 setting for all windows is 0.87.
619 \endparblock
620
621 @PAR@ node-prop resample.n-taps = 0
622 \parblock
623 The resampler number of taps. A value of 0 will use a predefined value based on
624 the resampler quality or other window function parameters.
625
626 A higher number of taps will use more CPU, Latency and cause more ringing but will
627 reduce aliasing.
628
629 The default quality setting for the exp window is 48.
630 \endparblock
631
632 @PAR@ node-prop resample.param.exp.A = 0.0
633 \parblock
634 The A parameter for the exponential window function. A value of 0.0 will use a predefined
635 value based on the quality when the exp window is in use.
636
637 The default setting for the exp window is 16.97789.
638 \endparblock
639
640 @PAR@ node-prop resample.param.blackman.alpha = 0.0
641 \parblock
642 The alpha value of the blackman function. A value of 0.0 will use a predefined
643 value based on the quality when the blackman window is in use.
644
645 The default quality setting for the blackman window is 0.16.
646 \endparblock
647
648 @PAR@ node-prop resample.param.kaiser.stopband-attenuation = 0.0
649 \parblock
650 The kaiser window stopband attenuation parameter in dB. A default value of 0.0 will use a
651 predefined value based on the quality.
652
653 A higher value will filter out more of the unwanted frequencies and reduce aliasing at the
654 expense of a larger transition band. A value of 96dB is below the dynamic range of CD quality
655 audio. 150dB is the limit of the precision of the resampler.
656
657 The default quality setting for the kaiser window is 130.000000.
658 \endparblock
659
660 @PAR@ node-prop resample.param.kaiser.transition-bandwidth = 0.0
661 \parblock
662 The kaiser window transition bandwidth parameter. A default value of 0.0 will use a
663 predefined value based on the quality.
664
665 A smaller transition band will cause a steeper cutoff with less unwanted frequencies
666 in the final signal at the expense of more a larger filter and more CPU usage and
667 latency. A smaller transition band can also cause more ringing.
668
669 The default quality setting for the kaiser window is 0.177032
670 \endparblock
671
672 @PAR@ node-prop resample.param.kaiser.alpha = 0.0
673 \parblock
674 The kaiser window alpha parameter. A default value of 0.0 will calculate an alpha value
675 based on the stopband-attenuation and transition-bandwidth parameters.
676
677 This value is usually calculated from the other parameters but can be set explicitly
678 with this property.
679
680 The default quality setting for the kaiser window is 4.254931.
681 \endparblock
682
683 ## Channel Mixer Parameters
684
685 Source, sinks, capture and playback streams can apply channel mixing on the incoming signal.
686
687 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.
688
689 Playback and capture streams are usually configured to the channel layout of the sink/source
690 they connect to and will thus perform channel mixing.
691
692 The channel mixer also implements a software volume. This volume adjustment is performed on the original
693 channel layout. ex: A stereo playback stream that is up-mixed to 5.1 has 2 a left an right volume control.
694
695 @PAR@ node-prop channelmix.disable = false
696 Disables the channel mixer completely. The stream will only be able to link to compatible
697 sources/sinks with the exact same channel layout.
698
699 @PAR@ node-prop channelmix.min-volume = 0.0
700 @PAR@ node-prop channelmix.max-volume = 10.0
701 Gives the min and max volume values allowed. Any volume that is set will be clamped to these
702 values.
703
704 @PAR@ node-prop channelmix.normalize = false
705 \parblock
706 Makes sure that during such mixing & resampling original 0 dB level is preserved, so nothing sounds wildly quieter/louder.
707
708 While this options prevents clipping, it can in some cases produce too low volume. Increase the
709 volume in that case or disable normalization.
710 \endparblock
711
712 @PAR@ node-prop channelmix.lock-volumes = false
713 Completely disable volume or mute changes. Defaults to false.
714
715 @PAR@ node-prop channelmix.mix-lfe = true
716 Mixes the low frequency effect channel into the front center or stereo pair. This might enhance the dynamic range of the signal if there is no subwoofer and the speakers can reproduce the low frequency signal.
717
718 @PAR@ node-prop channelmix.upmix = true
719 \parblock
720 Enables up-mixing of the front center (FC) when the target has a FC channel.
721 The sum of the stereo channels is used and an optional lowpass filter can be used
722 (see `channelmix.fc-cutoff`).
723
724 Also enabled up-mixing of LFE when `channelmix.lfe-cutoff` is set to something else than 0 and
725 the target has an LFE channel. The LFE channel is produced by adding the stereo channels.
726
727 If `channelmix.upmix` is true, the up-mixing of the rear channels is also enabled and controlled
728 with the `channelmix-upmix-method` property.
729 \endparblock
730
731 @PAR@ node-prop channelmix.upmix-method = psd
732 \parblock
733 3 methods are provided to produce the rear channels in a surround sound:
734
735 1. none. No rear channels are produced.
736
737 2. simple. Front channels are copied to the rear. This is fast but can produce phasing effects.
738
739 3. psd. The rear channels as produced from the front left and right ambient sound (the
740 difference between the channels). A delay and optional phase shift are added to the rear signal
741 to make the sound bigger.
742 \endparblock
743
744 @PAR@ node-prop channelmix.lfe-cutoff = 150
745 Apply a lowpass filter to the low frequency effects. The value is expressed in Hz. Typical subwoofers have a cutoff at around 150 and 200. The default value of 0 disables the feature.
746
747 @PAR@ node-prop channelmix.fc-cutoff = 12000
748 \parblock
749 Apply a lowpass filter to the front center frequency. The value is expressed in Hz.
750
751 Since the front center contains the dialogs, a typical cutoff frequency is 12000 Hz.
752
753 This option is only active when the up-mix is enabled.
754 \endparblock
755
756 @PAR@ node-prop channelmix.rear-delay = 12.0
757 \parblock
758 Apply a delay in milliseconds when up-mixing the rear channels. This improves
759 specialization of the sound. A typical delay of 12 milliseconds is the default.
760
761 This is only active when the `psd` up-mix method is used.
762 \endparblock
763
764 @PAR@ node-prop channelmix.stereo-widen = 0.0
765 \parblock
766 Subtracts some of the front center signal from the stereo channels. This moves the dialogs
767 more to the center speaker and leaves the ambient sound in the stereo channels.
768
769 This is only active when up-mix is enabled and a Front Center channel is mixed.
770 \endparblock
771
772 @PAR@ node-prop channelmix.hilbert-taps = 0
773 \parblock
774 This option will apply a 90 degree phase shift to the rear channels to improve specialization.
775 Taps needs to be between 15 and 255 with more accurate results (and more CPU consumption)
776 for higher values.
777
778 This is only active when the `psd` up-mix method is used.
779 \endparblock
780
781 @PAR@ node-prop dither.noise = 0
782 \parblock
783 This option will add N bits of random data to the signal. When no dither.method is
784 specified, the random data will flip between [-(1<<(N-1)), 0] every 1024 samples. With
785 a dither.method, the dither noise is amplified with 1<<(N-1) bits.
786
787 This can be used to keep some amplifiers alive during silent periods. One or two bits of noise is
788 usually enough, otherwise the noise will become audible. This is usually used together with
789 `session.suspend-timeout-seconds` to disable suspend in the session manager.
790
791 Note that PipeWire uses floating point operations with 24 bits precission for all of the audio
792 processing. Conversion to 24 bits integer sample formats is lossless and conversion to 32 bits
793 integer sample formats are simply padded with 0 bits at the end. This means that the dither noise
794 is always only in the 24 most significant bits.
795 \endparblock
796
797 @PAR@ node-prop dither.method = none
798 \parblock
799 Optional [dithering](https://en.wikipedia.org/wiki/Dither) can be done on the quantized
800 output signal.
801
802 There are 6 modes available:
803
804 1. none No dithering is done.
805 2. rectangular Dithering with a rectangular noise distribution. This adds random
806 bits in the [-0.5, 0.5] range to the signal with even distribution.
807 3. triangular Dithering with a triangular noise distribution. This add random
808 bits in the [-1.0, 1.0] range to the signal with triangular distribution
809 around 0.0.
810 4. triangular-hf Dithering with a sloped triangular noise distribution.
811 5. wannamaker3 Additional noise shaping is performed on the sloped triangular
812 dithering to move the noise to the more inaudible range. This is using
813 the "F-Weighted" noise filter described by Wannamaker.
814 6. shaped5 Additional noise shaping is performed on the triangular dithering
815 to move the noise to the more inaudible range. This is using the
816 Lipshitz filter.
817
818 Dithering is only useful for conversion to a format with less than 24 bits and will be
819 disabled otherwise.
820 \endparblock
821
822 ## Debug Parameters
823
824 @PAR@ node-prop debug.wav-path = ""
825 Make the stream to also write the raw samples to a WAV file for debugging purposes.
826
827 ## Other Parameters
828
829 These control low-level technical features:
830
831 @PAR@ node-prop clock.quantum-limit
832 \ref pipewire_conf__default_clock_quantum-limit "See pipewire.conf(5)"
833
834 @PAR@ node-prop resample.peaks = false # boolean
835 Instead of actually resampling, produce peak amplitude values as output.
836 This is used for volume monitoring, where it is set as a property
837 of the "recording" stream.
838
839 @PAR@ node-prop resample.prefill = false # boolean
840 Prefill resampler buffers with silence. This affects the initial
841 samples produced by the resampler.
842
843 @PAR@ node-prop adapter.auto-port-config = null # JSON
844 \parblock
845 If specified, configure the ports of the node when it is created, instead of
846 leaving that to the session manager to do. This is useful (only) for minimal
847 configurations without a session manager.
848
849 Value is SPA JSON of the form:
850 ```json
851 {
852 mode = "none", # "none", "passthrough", "convert", "dsp"
853 monitor = false, # boolean
854 control = false, # boolean
855 position = "preserve" # "unknown", "aux", "preserve"
856 }
857 ```
858 See \ref spa_param_port_config for the meaning.
859 \endparblock
860
861 # ALSA PROPERTIES @IDX@ props
862
863 ## Monitor properties
864
865 @PAR@ monitor-prop alsa.use-acp = true # boolean
866 Use \ref monitor-prop__alsa_card_profiles "ALSA Card Profiles" (ACP) for device configuration.
867 This autodetects available ALSA devices and configures port and hardware mixers.
868
869 @PAR@ monitor-prop alsa.use-ucm # boolean
870 Enable or disable UCM for all devices. Default: unset.
871
872 @PAR@ monitor-prop alsa.udev.expose-busy # boolean
873 Expose the ALSA card even if it is busy/in use. Default false. This can be useful when some
874 of the PCMs are in use by other applications but the other free PCMs should still be exposed.
875
876 ## Device properties
877
878 @PAR@ device-prop api.alsa.path # string
879 ALSA device path as can be used in snd_pcm_open() and snd_ctl_open().
880
881 @PAR@ device-prop api.alsa.use-ucm = true # boolean
882 \parblock
883 When ACP is enabled and a UCM configuration is available for a device, by
884 default it is used instead of the ACP profiles. This option allows you to
885 disable this and use the ACP profiles instead.
886
887 This option does nothing if `alsa.use-acp` is set to `false`.
888 \endparblock
889
890 @PAR@ device-prop api.alsa.soft-mixer = false # boolean
891 Setting this option to `true` will disable the hardware mixer for volume
892 control and mute. All volume handling will then use software volume and mute,
893 leaving the hardware mixer untouched. This can be interesting to work around
894 bugs in the mixer detection or decibel reporting. The hardware mixer will still
895 be used to mute unused audio paths in the device. Use `api.alsa.disable-mixer-path`
896 to also disable mixer path selection.
897
898 @PAR@ device-prop api.alsa.disable-mixer-path = false # boolean
899 Setting this option to `true` will disable the hardware mixer path selection.
900 The hardware mixer path is the configuration of the mixer depending on the
901 jacks that are inserted in the card. If this is disabled, you will have to
902 manually enable and disable mixer controls but it can be used to work around
903 bugs in the mixer. The hardware mixer will still be used for
904 volume and mute. Use `api.alsa.soft-mixer` to also disable hardware volume
905 and mute.
906
907 @PAR@ device-prop api.alsa.ignore-dB = false # boolean
908 Setting this option to `true` will ignore the decibel setting configured by
909 the driver. Use this when the driver reports wrong settings.
910
911 @PAR@ device-prop device.profile-set # string
912 This option can be used to select a custom ACP profile-set name for the
913 device. This can be configured in UDev rules, but it can also be specified
914 here. The default is to use "default.conf" unless there is a matching udev rule.
915
916 @PAR@ device-prop device.profile # string
917 The initial active profile name. The default is to start from the "Off"
918 profile and then let session manager select the best profile based on its
919 policy.
920
921 @PAR@ device-prop api.acp.auto-profile = true # boolean
922 Automatically select the best profile for the device. The session manager
923 usually disables this, as it handles this task instead. This can be
924 enabled in custom configurations without the session manager handling this.
925
926 @PAR@ device-prop api.acp.auto-port = true # boolean
927 Automatically select the highest priority port that is available ("port" is a
928 PulseAudio/ACP term, the equivalent of a "Route" in PipeWire). The session manager
929 usually disables this, as it handles this task instead. This can be
930 enabled in custom configurations without the session manager handling this.
931
932 @PAR@ device-prop api.acp.probe-rate # integer
933 Sets the samplerate used for probing the ALSA devices and collecting the
934 profiles and ports.
935
936 @PAR@ device-prop api.acp.pro-channels # integer
937 Sets the number of channels to use when probing the "Pro Audio" profile.
938 Normally, the maximum amount of channels will be used but with this setting
939 this can be reduced, which can make it possible to use other samplerates on
940 some devices.
941
942 @PAR@ device-prop api.alsa.split-enable # boolean
943 \parblock
944 \copydoc SPA_KEY_API_ALSA_SPLIT_ENABLE
945 \endparblock
946
947 @PAR@ device-prop api.acp.disable-pro-audio = false # boolean
948 Disable the "Pro Audio" profile for this device.
949
950 @PAR@ device-prop api.acp.use-eld-channels = false # boolean
951 Use the channel count and mapping the connected HDMI device
952 provides via ELD information.
953
954 ## Node properties
955
956 @PAR@ node-prop audio.channels # integer
957 The number of audio channels to open the device with. Defaults depends on the profile of the device.
958
959 @PAR@ node-prop audio.rate # integer
960 The audio rate to open the device with. Default is 0, which means to open the device with a rate as close to the graph rate as possible.
961
962 @PAR@ node-prop audio.format # string
963 The audio format to open the device in. By default this is "UNKNOWN", which will open the device in the best possible bits (32/24/16/8..). You can force a format like S16_LE or S32_LE.
964
965 @PAR@ node-prop audio.position # JSON array of strings
966 The audio position of the channels in the device. This is auto detected based on the profile. You can configure an array of channel positions, like "[ FL, FR ]".
967
968 @PAR@ node-prop audio.layout # string
969 The audio layout of the channels in the device. You can use any of the predefined layouts, like "Stereo", "5.1" etc.
970
971 @PAR@ node-prop audio.allowed-rates # JSON array of integers
972 \parblock
973 The allowed audio rates to open the device with. Default is "[ ]", which means the device can be opened in any supported rate.
974
975 Only rates from the array will be used to open the device. When the graph is running with a rate not listed in the allowed-rates, the resampler will be used to resample to the nearest allowed rate.
976 \endparblock
977
978 @PAR@ node-prop api.alsa.period-size # integer
979 The period size to open the device in. By default this is 0, which will open the device in the default period size to minimize latency.
980
981 @PAR@ node-prop api.alsa.period-num # integer
982 The amount of periods to use in the device. By default this is 0, which means to use as many as possible.
983
984 @PAR@ node-prop api.alsa.headroom # integer
985 The amount of extra space to keep in the ringbuffer. The default is 0. Higher values can be configured when the device read and write pointers are not accurately reported.
986
987 @PAR@ node-prop api.alsa.start-delay = 0 # integer
988 Some devices need some time before they can report accurate hardware pointer
989 positions. In those cases, an extra start delay can be added to compensate
990 for this startup delay. This sets the startup delay in samples.
991
992 @PAR@ node-prop api.alsa.disable-mmap = false # boolean
993 Disable mmap operation of the device and use the ALSA read/write API instead. Default is false, mmap is preferred.
994
995 @PAR@ node-prop api.alsa.disable-batch # boolean
996 Ignore the ALSA batch flag. If the batch flag is set, ALSA will need an extra period to update the read/write pointers. Ignore this flag from ALSA can reduce the latency. Default is false.
997
998 @PAR@ node-prop api.alsa.use-chmap # boolean
999 Use the driver provided channel map. Default is true when using UCM, false otherwise because many driver don't report this correctly.
1000
1001 @PAR@ node-prop api.alsa.multi-rate # boolean
1002 Allow devices from the same card to be opened in multiple sample rates. Default is true. Some older drivers did not properly advertise the capabilities of the device and only really supported opening the device in one rate.
1003
1004 @PAR@ node-prop api.alsa.htimestamp = false # boolean
1005 Use ALSA htimestamps in scheduling, instead of the system clock.
1006 Some ALSA drivers produce bad timestamps, so this is not enabled by default
1007 and will be disabled at runtime if it looks like the ALSA timestamps are bad.
1008
1009 @PAR@ node-prop api.alsa.htimestamp.max-errors # integer
1010 Specify the number of consecutive errors before htimestamp is disabled.
1011 Setting this to 0 makes htimestamp never get disabled.
1012
1013 @PAR@ node-prop api.alsa.disable-tsched = false # boolean
1014 Disable timer-based scheduling, and use IRQ for scheduling instead.
1015 The "Pro Audio" profile will usually enable this setting, if it is expected it works on the hardware.
1016
1017 @PAR@ node-prop api.alsa.dll-bandwidth-max # double
1018 Sets the maximum bandwidth of the DLL (delay-locked loop) filter used to smooth out rate adjustments.
1019 The default value may be too responsive in some scenarios.
1020 For example, with UAC2 pitch control, the host reacts more slowly compared to local resampling,
1021 so using a lower bandwidth helps avoid oscillations or instability.
1022
1023 @PAR@ node-prop api.alsa.auto-link = false # boolean
1024 Link follower PCM devices to the driver PCM device when using IRQ-based scheduling.
1025 The "Pro Audio" profile will usually enable this setting, if it is expected it works on the hardware.
1026
1027 @PAR@ node-prop latency.internal.rate # integer
1028 Static set the device systemic latency, in samples at playback rate.
1029
1030 @PAR@ node-prop latency.internal.ns # integer
1031 Static set the device systemic latency, in nanoseconds.
1032
1033 @PAR@ node-prop api.alsa.path # string
1034 UNDOCUMENTED
1035
1036 @PAR@ node-prop api.alsa.pcm.card # integer
1037 Card index to open. Usually determined from `api.alsa.path`.
1038
1039 @PAR@ node-prop api.alsa.open.ucm # boolean
1040 Open device using UCM.
1041
1042 @PAR@ node-prop api.alsa.bind-ctls # boolean
1043 UNDOCUMENTED
1044
1045 @PAR@ node-prop api.alsa.bind-ctl.NAME # boolean
1046 UNDOCUMENTED
1047
1048 @PAR@ node-prop iec958.codecs # JSON array of string
1049 Enable only specific IEC958 codecs. This can be used to disable some codecs the hardware supports.
1050 Available values: PCM, AC3, DTS, MPEG, MPEG2-AAC, EAC3, TRUEHD, DTSHD
1051
1052 @PAR@ device-prop api.alsa.split.parent # boolean
1053 \parblock
1054 \copydoc SPA_KEY_API_ALSA_SPLIT_PARENT
1055 \endparblock
1056
1057 @PAR@ node-prop api.alsa.split.position # JSON
1058 \parblock
1059 \copybrief SPA_KEY_API_ALSA_SPLIT_POSITION
1060 Informative property.
1061 \endparblock
1062
1063 @PAR@ node-prop api.alsa.split.hw-position # JSON
1064 \parblock
1065 \copybrief SPA_KEY_API_ALSA_SPLIT_HW_POSITION
1066 Informative property.
1067 \endparblock
1068
1069 @PAR@ node-prop api.alsa.dsd-lsb = false # boolean
1070 Use LSB bit order for DSD audio output.
1071
1072
1073 # ALSA MIDI PROPERTIES @IDX@ props
1074
1075 ## Node properties
1076
1077 For ALSA MIDI in Wireplumber, MIDI bridge node properties are
1078 configured in the monitor properties.
1079
1080 @PAR@ monitor-prop api.alsa.seq.ump = true # boolean
1081 Use MIDI 2.0 if possible.
1082
1083 @PAR@ monitor-prop api.alsa.seq.min-pool = 500 # integer
1084 UNDOCUMENTED
1085
1086 @PAR@ monitor-prop api.alsa.seq.max-pool = 2000 # integer
1087 UNDOCUMENTED
1088
1089 @PAR@ monitor-prop clock.name = "clock.system.monotonic" # string
1090 Clock to follow.
1091
1092 @PAR@ monitor-prop api.alsa.path = "default" # string
1093 Sequencer device to use.
1094
1095 @PAR@ monitor-prop api.alsa.disable-longname = true # boolean
1096 If card long name should not be passed to MIDI port.
1097
1098 # BLUETOOTH PROPERTIES @IDX@ props
1099
1100 ## Monitor properties
1101
1102 The following are settings for the Bluetooth device monitor, not device or
1103 node properties:
1104
1105 @PAR@ monitor-prop bluez5.roles = [ a2dp_sink a2dp_source bap_sink bap_source bap_bcast_sink bap_bcast_source hfp_hf hfp_ag ] # JSON array of string
1106 \parblock
1107 Enabled roles.
1108
1109 Currently some headsets (Sony WH-1000XM3) are not working with
1110 both hsp_ag and hfp_ag enabled, so by default we enable only HFP.
1111
1112 Supported roles:
1113 - `hsp_hs` (HSP Headset),
1114 - `hsp_ag` (HSP Audio Gateway),
1115 - `hfp_hf` (HFP Hands-Free),
1116 - `hfp_ag` (HFP Audio Gateway)
1117 - `a2dp_sink` (A2DP Audio Sink)
1118 - `a2dp_source` (A2DP Audio Source)
1119 - `bap_sink` (LE Audio Basic Audio Profile Sink)
1120 - `bap_source` (LE Audio Basic Audio Profile Source)
1121 - `bap_bcast_sink` (LE Audio Basic Audio Profile Broadcast Sink)
1122 - `bap_bcast_source` (LE Audio Basic Audio Profile Broadcast Source)
1123 \endparblock
1124
1125 @PAR@ monitor-prop bluez5.codecs # JSON array of string
1126 Enabled A2DP codecs (default: all). Possible values: `sbc`, `sbc_xq`,
1127 `aac`, `aac_eld`, `aptx`, `aptx_hd`, `aptx_ll`, `aptx_ll_duplex`,
1128 `faststream`, `faststream_duplex`, `lc3plus_h3`, `ldac`, `opus_05`,
1129 `opus_05_51`, `opus_05_71`, `opus_05_duplex`, `opus_05_pro`, `opus_g`,
1130 `lc3`.
1131
1132 @PAR@ monitor-prop bluez5.default.rate # integer
1133 Default audio rate.
1134
1135 @PAR@ monitor-prop bluez5.default.channels # integer
1136 Default audio channels.
1137
1138 @PAR@ monitor-prop bluez5.hfphsp-backend # integer
1139 HFP/HSP backend (default: native). Available values: any, none, hsphfpd, ofono, native
1140
1141 @PAR@ monitor-prop bluez5.hfphsp-backend-native-modem # string
1142
1143 @PAR@ monitor-prop bluez5.hfphsp-backend-native-pts # boolean
1144 Enable specific workarounds for Bluetooth qualification.
1145
1146 @PAR@ monitor-prop bluez5.disable-dummy-call # boolean
1147 By default a call status event is sent on audio stream connection/disconnection to
1148 workaround some headset timeout disconnection when the HFP HF is used by another
1149 application than telephony one, e.g. a conference application/website.
1150 This prevent to send this event.
1151
1152 @PAR@ monitor-prop bluez5.dummy-avrcp player # boolean
1153 Register dummy AVRCP player. Some devices have wrongly functioning
1154 volume or playback controls if this is not enabled. Default: false
1155
1156 @PAR@ monitor-prop bluez5.enable-sbc-xq # boolean
1157 Override device quirk list and enable SBC-XQ for devices for which it is disabled.
1158
1159 @PAR@ monitor-prop bluez5.enable-msbc # boolean
1160 Override device quirk list and enable MSBC for devices for which it is disabled.
1161
1162 @PAR@ monitor-prop bluez5.enable-hw-volume # boolean
1163 Override device quirk list and enable hardware volume fo devices for which it is disabled.
1164
1165 @PAR@ monitor-prop bluez5.hw-offload-sco # boolean
1166 \parblock
1167 HFP/HSP hardware offload SCO support (default: false).
1168
1169 This feature requires a custom configuration that routes SCO audio to ALSA nodes,
1170 in a platform-specific way. See `tests/examples/bt-pinephone.lua` in WirePlumber for an example.
1171 Do not enable this setting if you don't know what all this means, as it won't work.
1172 \endparblock
1173
1174 @PAR@ monitor-prop bluez5.hw-offload-datapath # integer
1175 \parblock
1176 HFP/HSP hardware offload data path ID (default: 0).
1177
1178 This feature configures the SCO hardware‑offload data path for HFP/HSP using the Bluetooth
1179 SIG–specified procedure. It is intended for advanced setups and vendor integrations. Do not
1180 edit this unless required; incorrect values can disable SCO offload.
1181 \endparblock
1182
1183 @PAR@ monitor-prop bluez5.a2dp.opus.pro.channels = 3 # integer
1184 PipeWire Opus Pro audio profile channel count.
1185
1186 @PAR@ monitor-prop bluez5.a2dp.opus.pro.coupled-streams = 1 # integer
1187 PipeWire Opus Pro audio profile coupled stream count.
1188
1189 @PAR@ monitor-prop bluez5.a2dp.opus.pro.locations = "FL,FR,LFE" # string
1190 PipeWire Opus Pro audio profile audio channel locations.
1191
1192 @PAR@ monitor-prop bluez5.a2dp.opus.pro.max-bitrate = 600000 # integer
1193 PipeWire Opus Pro audio profile max bitrate.
1194
1195 @PAR@ monitor-prop bluez5.a2dp.opus.pro.frame-dms = 50 # integer
1196 PipeWire Opus Pro audio profile frame duration (1/10 ms).
1197
1198 @PAR@ monitor-prop bluez5.a2dp.opus.pro.bidi.channels = 1 # integer
1199 PipeWire Opus Pro audio profile duplex channels.
1200
1201 @PAR@ monitor-prop bluez5.a2dp.opus.pro.bidi.coupled-streams = 0 # integer
1202 PipeWire Opus Pro audio profile duplex coupled stream count.
1203
1204 @PAR@ monitor-prop bluez5.a2dp.opus.pro.bidi.locations = "FC" # string
1205 PipeWire Opus Pro audio profile duplex coupled channel locations.
1206
1207 @PAR@ monitor-prop bluez5.a2dp.opus.pro.bidi.max-bitrate = 160000 # integer
1208 PipeWire Opus Pro audio profile duplex max bitrate.
1209
1210 @PAR@ monitor-prop bluez5.a2dp.opus.pro.bidi.frame-dms = 400 # integer
1211 PipeWire Opus Pro audio profile duplex frame duration (1/10 ms).
1212
1213 @PAR@ monitor-prop bluez5.bcast_source.config = [] # JSON
1214 For a per-adapter configuration of multiple BIGs use an "adapter" entry in the BIG with the BD address.
1215 \parblock
1216 Example:
1217 ```
1218 bluez5.bcast_source.config = [
1219 {
1220 "broadcast_code": "Børne House",
1221 "encryption: false,
1222 "sync_factor": 2,
1223 "bis": [
1224 { # BIS configuration
1225 "qos_preset": "16_2_1", # QOS preset name from table Table 6.4 from BAP_v1.0.1.
1226 "audio_channel_allocation": 1, # audio channel allocation configuration for the BIS
1227 "metadata": [ # metadata configurations for the BIS
1228 { "type": 1, "value": [ 1, 1 ] }
1229 ]
1230 }
1231 ]
1232 }
1233 ]
1234 ```
1235 \endparblock
1236
1237 @PAR@ monitor-prop bluez5.bap-server-capabilities.rates # Array of integers
1238 Supported sampling frequencies for the LC3 codec (default: all).
1239 Possible values:
1240 `8000`, `16000`, `24000`, `32000`, `44100`, `48000`
1241
1242 @PAR@ monitor-prop bluez5.bap-server-capabilities.durations # Array of doubles
1243 Supported frame durations for the LC3 codec (default: all).
1244 Possible values:
1245 `7.5`, `10`
1246
1247 @PAR@ monitor-prop bluez5.bap-server-capabilities.channels # Array of integers
1248 Supported audio channel counts for the LC3 codec (default: [1, 2]).
1249 Possible values:
1250 `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`
1251
1252 @PAR@ monitor-prop bluez5.bap-server-capabilities.framelen_min # integer
1253 Minimum number of octets supported per codec frame for the LC3 codec (default: 20).
1254
1255 @PAR@ monitor-prop bluez5.bap-server-capabilities.framelen_max # integer
1256 Maximum number of octets supported per codec frame for the LC3 codec (default: 400).
1257
1258 @PAR@ monitor-prop bluez5.bap-server-capabilities.max_frames # integer
1259 Maximum number of codec frames supported per SDU for the LC3 codec (default: 2).
1260
1261 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.locations # JSON or integer
1262 Sink audio locations of the server, as channel positions or PACS bitmask.
1263 Example: `FL,FR`
1264
1265 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.contexts # integer
1266 Available sink contexts PACS bitmask of the the server.
1267
1268 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.supported-contexts # integer
1269 Supported sink contexts PACS bitmask of the the server.
1270
1271 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.delay-min # integer
1272 Minimum presentation delay supported, in microseconds.
1273
1274 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.delay-max # integer
1275 Maximum presentation delay supported, in microseconds.
1276
1277 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.preferred-delay-min # integer
1278 Minimum preferred presentation delay supported, in microseconds.
1279
1280 @PAR@ monitor-prop bluez5.bap-server-capabilities.sink.preferred-delay-max # integer
1281 Maximum preferred presentation delay supported, in microseconds.
1282
1283 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.locations # JSON or integer
1284 Source audio locations of the server, as channel positions or PACS bitmask.
1285 Example: `FL,FR`
1286
1287 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.contexts # integer
1288 Available source contexts PACS bitmask of the the server.
1289
1290 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.supported-contexts # integer
1291 Supported source contexts PACS bitmask of the the server.
1292
1293 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.delay-min # integer
1294 Minimum presentation delay supported, in microseconds.
1295
1296 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.delay-max # integer
1297 Maximum presentation delay supported, in microseconds.
1298
1299 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.preferred-delay-min # integer
1300 Minimum preferred presentation delay supported, in microseconds.
1301
1302 @PAR@ monitor-prop bluez5.bap-server-capabilities.source.preferred-delay-max # integer
1303 Maximum preferred presentation delay supported, in microseconds.
1304
1305 @PAR@ monitor-prop bluez5.bap-server-tmap-features = null # array of string
1306 Override advertised TMAP service features. See TMAP specification for their meaning.
1307 Possible values: "cg", "ct", "ums", "umr", "bms", "bmr".
1308 Default: none.
1309
1310 @PAR@ monitor-prop bluez5.bap-server-gmap-features = null # array of string
1311 Override advertised GMAP service features. See GMAP specification for their meaning.
1312 Possible values: "ugg", "ugt", "bgs", "bgr", "ugg-multiplex", "ugg-96kbps-source", "ugg-multisink",
1313 "ugt-source", "ugt-80kbps-source", "ugt-sink", "ugt-64kbps-sink", "ugt-multiplex", "ugt-multisink",
1314 "ugt-multisource", "bgs-96kbps", "bgr-multisink", "bgr-multiplex".
1315 Default: none.
1316
1317 ## Device properties
1318
1319 @PAR@ device-prop bluez5.auto-connect # boolean
1320 Auto-connect devices on start up. Disabled by default if
1321 the property is not specified.
1322
1323 @PAR@ device-prop bluez5.hw-volume = [ hfp_ag hsp_ag a2dp_source ] # JSON array of string
1324 Profiles for which to enable hardware volume control.
1325
1326 @PAR@ device-prop bluez5.profile # string
1327 Initial device profile. This usually has no effect as the session manager
1328 overrides it.
1329
1330 @PAR@ device-prop bluez5.a2dp.ldac.quality = "auto" # string
1331 LDAC encoding quality
1332 Available values:
1333 - auto (Adaptive Bitrate, default)
1334 - hq (High Quality, 990/909kbps)
1335 - sq (Standard Quality, 660/606kbps)
1336 - mq (Mobile use Quality, 330/303kbps)
1337
1338 @PAR@ device-prop bluez5.a2dp.aac.bitratemode = 0 # integer
1339 AAC variable bitrate mode.
1340 Available values: 0 (cbr, default), 1-5 (quality level)
1341
1342 @PAR@ device-prop bluez5.a2dp.opus.pro.application = "audio" # string
1343 PipeWire Opus Pro Audio encoding mode: audio, voip, lowdelay
1344
1345 @PAR@ device-prop bluez5.a2dp.opus.pro.bidi.application = "audio" # string
1346 PipeWire Opus Pro Audio duplex encoding mode: audio, voip, lowdelay
1347
1348 @PAR@ device-prop bluez5.bap.cig = "auto" # integer, or 'auto'
1349 Set CIG ID for BAP unicast streams of the device.
1350
1351 @PAR@ device-prop bluez5.bap.preset = "auto" # string
1352 BAP QoS preset name that needed to be used with vendor config.
1353 This property is experimental.
1354 Available: "48_2_1", ... as in the BAP specification.
1355
1356 @PAR@ device-prop bluez5.bap.rtn # integer
1357 BAP QoS preset name that needed to be used with vendor config.
1358 This property is experimental.
1359 Default: as per QoS preset.
1360
1361 @PAR@ device-prop bluez5.bap.latency # integer
1362 BAP QoS latency that needs to be applied for vendor defined preset
1363 This property is experimental.
1364 Default: as QoS preset.
1365
1366 @PAR@ device-prop bluez5.bap.delay = 40000 # integer
1367 BAP QoS delay that needs to be applied for vendor defined preset
1368 This property is experimental.
1369 Default: as per QoS preset.
1370
1371 @PAR@ device-prop bluez5.framing = false # boolean
1372 BAP QoS framing that needs to be applied for vendor defined preset
1373 This property is experimental.
1374 Default: as per QoS preset.
1375
1376 @PAR@ device-prop bluez5.bap.force-target-latency = "balanced" # string
1377 BAP QoS target latency profile forced for QoS configuration selection.
1378 If not set or set to "balanced", both low-latency and high-reliability QoS configuration table are used.
1379 This property is experimental.
1380 Available: low-latency, high-reliability, balanced
1381
1382 ## Node properties
1383
1384 @PAR@ node-prop bluez5.media-source-role # string
1385 \parblock
1386 Media source role for Bluetooth clients connecting to
1387 this instance. Available values:
1388 - playback: playing stream to speakers
1389 - input: appear as source node.
1390 \endparblock
1391
1392 @PAR@ node-prop bluez5.decode-buffer.latency # integer
1393 Applies on media source nodes and defines the target amount
1394 of samples to be buffered on the output of the decoder.
1395 Default: 0, which means it is automatically determined.
1396
1397 @PAR@ node-prop node.latency-offset-msec # string
1398 Applies only for BLE MIDI nodes.
1399 Latency adjustment to apply on the node. Larger values add a
1400 constant latency, but reduces timing jitter caused by Bluetooth
1401 transport.
1402
1403 @PAR@ node-prop bluez5.debug.iso-mono = false # boolean
1404 Debugging option for forcing ISO sinks send identical packets out for
1405 all streams.
1406
1407 # PORT PROPERTIES @IDX@ props
1408
1409 Port properties are usually not directly configurable via PipeWire
1410 configuration files, as they are determined by applications creating
1411 them. Below are some port properties may interesting for users:
1412
1413 @PAR@ port-prop port.name # string
1414 \parblock
1415 \copydoc PW_KEY_PORT_NAME
1416 \endparblock
1417
1418 @PAR@ port-prop port.alias # string
1419 \parblock
1420 \copydoc PW_KEY_PORT_ALIAS
1421 \endparblock
1422
1423 \see pw_keys in the API documentation for a full list.
1424
1425 # LINK PROPERTIES @IDX@ props
1426
1427 Link properties are usually not directly configurable via PipeWire
1428 configuration files, as they are determined by applications creating
1429 them.
1430
1431 \see pw_keys in the API documentation for a full list.
1432
1433 # CLIENT PROPERTIES @IDX@ props
1434
1435 Client properties are usually not directly configurable via PipeWire
1436 configuration files, as they are determined by the application
1437 connecting to PipeWire. Clients are however affected by the settings
1438 in \ref page_man_pipewire_conf_5 "pipewire.conf(5)" and session
1439 manager settings.
1440
1441 \note Only the properties `pipewire.*` are safe to use for security
1442 purposes such as identifying applications and their capabilities, as
1443 clients can set and change other properties freely.
1444
1445 Below are some client properties may interesting for users.
1446
1447 @PAR@ client-prop application.name # string
1448 \parblock
1449 \copydoc PW_KEY_APP_NAME
1450 \endparblock
1451
1452 @PAR@ client-prop application.process.id # integer
1453 \parblock
1454 \copydoc PW_KEY_APP_PROCESS_ID
1455 \endparblock
1456
1457 @PAR@ client-prop pipewire.sec.pid # integer
1458 \parblock
1459 Client pid, set by protocol.
1460
1461 Note that for PulseAudio applications, this is the PID of the
1462 `pipewire-pulse` process.
1463 \endparblock
1464
1465 \see pw_keys in the API documentation for a full list.
1466
1467 # RUNTIME SETTINGS @IDX@ props
1468
1469 Objects such as devices and nodes also have *parameters* that can be
1470 modified after the object has been created. For example, the active
1471 device profile, channel volumes, and so on.
1472
1473 For some objects, the *parameters* also allow changing some of
1474 the *properties*. The settings of most ALSA and virtual device parameters
1475 can be configured also at runtime.
1476
1477 These settings are available in device *parameter* called `Props` in its
1478 `params` field. They can be seen e.g. using `pw-dump <id>` for an ALSA device:
1479
1480 ```json
1481 {
1482 ...
1483 "Props": [
1484 {
1485 ...
1486 "params": [
1487 "audio.channels",
1488 2,
1489 "audio.rate",
1490 0,
1491 "audio.format",
1492 "UNKNOWN",
1493 "audio.position",
1494 "[ FL, FR ]",
1495 "audio.allowed-rates",
1496 "[ ]",
1497 "api.alsa.period-size",
1498 0,
1499 "api.alsa.period-num",
1500 0,
1501 "api.alsa.headroom",
1502 0,
1503 "api.alsa.start-delay",
1504 0,
1505 "api.alsa.disable-mmap",
1506 false,
1507 "api.alsa.disable-batch",
1508 false,
1509 "api.alsa.use-chmap",
1510 false,
1511 "api.alsa.multi-rate",
1512 true,
1513 "latency.internal.rate",
1514 0,
1515 "latency.internal.ns",
1516 0,
1517 "clock.name",
1518 "api.alsa.c-1"
1519 ]
1520 }
1521 ...
1522 ```
1523
1524 They generally have the same names and meaning as the corresponding properties.
1525
1526 One or more `params` can be changed using \ref page_man_pw-cli_1 "pw-cli(1)":
1527 ```
1528 pw-cli s <id> Props '{ params = [ "api.alsa.headroom" 1024 ] }'
1529 ```
1530 These settings are not saved and need to be reapplied for each session manager restart.
1531
1532 # ALSA CARD PROFILES @IDX@ props
1533
1534 The sound card profiles ("Analog stereo", "Analog stereo duplex", ...) except "Pro Audio" come from two sources:
1535
1536 - UCM: ALSA Use Case Manager: the profile configuration system from ALSA. See https://github.com/alsa-project/alsa-ucm-conf/
1537 - ACP ("Alsa Card Profiles"): Pulseaudio's profile system ported to PipeWire. See https://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/
1538
1539 See the above links on how to configure these systems.
1540
1541 For ACP, PipeWire looks for the profile configuration files under
1542
1543 - ~/.config/alsa-card-profile
1544 - /etc/alsa-card-profile
1545 - /usr/share/alsa-card-profile/mixer`.
1546
1547 The `path` and `profile-set` files are in subdirectories `paths` and `profile-sets` of these directories.
1548 It is possible to override individual files locally by putting a modified copy into the ACP directories under `~/.config` or `/etc`.
1549
1550 # OTHER OBJECT TYPES @IDX@ props
1551
1552 Technically, PipeWire objects is what are manipulated by applications
1553 using the PipeWire API.
1554
1555 The list of object types that are usually "exported" (i.e. appear in
1556 \ref page_man_pw-dump_1 "pw-dump(1)" output) is larger than considered
1557 above:
1558
1559 - Node
1560 - Device
1561 - Port
1562 - Link
1563 - Client
1564 - Metadata
1565 - Module
1566 - Profiler
1567 - SecurityContext
1568
1569 Monitors do not appear in this list; they are not usually exported,
1570 and technically also Device objects. They are considered above as a
1571 separate object type because they have configurable properties.
1572
1573 Metadata objects are what is manipulated with
1574 \ref page_man_pw-metadata_1 "pw-metadata(1)"
1575
1576 Modules can be loaded in configuration files, or by PipeWire
1577 applications.
1578
1579 The Profiler and SecurityContext objects only provide corresponding
1580 PipeWire APIs.
1581
1582 # INDEX {#pipewire-props__index}
1583
1584 ## Monitor properties
1585
1586 @SECREF@ monitor-prop
1587
1588 ## Device properties
1589
1590 @SECREF@ device-prop
1591
1592 ## Node properties
1593
1594 @SECREF@ node-prop
1595
1596 ## Port properties
1597
1598 @SECREF@ port-prop
1599
1600 ## Client properties
1601
1602 @SECREF@ client-prop
1603
1604 # AUTHORS
1605
1606 The PipeWire Developers <$(PACKAGE_BUGREPORT)>;
1607 PipeWire is available from <$(PACKAGE_URL)>
1608
1609 # SEE ALSO
1610
1611 \ref page_man_pipewire_conf_5 "pipewire.conf(5)"