PipeWire

On this page 7

PipeWire is a low-latency multimedia server for Linux that routes audio and video streams between applications and hardware through a single processing graph. On the Linux desktop, it has become the default sound and screen-capture layer on most major distributions, replacing PulseAudio for everyday audio and JACK for professional low-latency work.

The project started around 2015 at Red Hat, initially to handle video capture and screen sharing under Wayland, and later grew into a full audio server. Its central design idea is to offer one engine that serves consumer and professional audio while enforcing security for sandboxed applications.

How the PipeWire processing graph works

PipeWire represents every source, sink and filter as a node in a directed graph. Nodes expose ports, and links connect an output port to an input port, so a browser playing audio, a microphone and a USB headset are all graph objects that can be connected freely.

The daemon processes the graph in periodic cycles driven by one driver node, usually a sound card or a timer. In each cycle, every node fills or consumes a buffer of a fixed size called the quantum. Buffers are passed through shared memory rather than copied, which keeps CPU overhead low even with many streams.

PipeWire itself does not decide which streams connect where. That policy belongs to a separate session manager, today normally WirePlumber, which reacts to devices appearing, restores user choices and applies routing rules written in Lua or configuration files.

The following table names the main building blocks.

ComponentRoleExample
PipeWire daemonRuns the graph and schedules processingThe pipewire user service
WirePlumberSession and policy managementChoosing the default headset
pipewire-pulsePulseAudio-compatible serverFirefox and desktop sound settings
JACK replacement libraryRuns JACK clients without a JACK serverDigital audio workstations
ALSA pluginRoutes plain ALSA applications into the graphOlder games and tools
SPA pluginsDevice and format handling modulesBluetooth audio and video4linux cameras
Main PipeWire building blocks

Latency, quantum and sample rate

Audio latency in PipeWire depends mainly on the quantum size divided by the sample rate. A quantum of 1,024 samples at 48 kHz equals about 21 milliseconds per cycle, while 64 samples at 48 kHz equals about 1.3 milliseconds.

Unlike PulseAudio, PipeWire can change the quantum dynamically. Each client may request a latency, and the graph runs at the smallest value requested, within configured minimum and maximum limits. This lets a music player use large buffers for efficiency while a recording application forces small buffers when it starts.

The table below shows typical settings and their trade-offs.

QuantumLatency per cycleSuitable workload
32 samplesAbout 0.7 msLive monitoring on tuned systems
128 samplesAbout 2.7 msRecording and virtual instruments
512 samplesAbout 10.7 msGaming and voice calls
1,024 samplesAbout 21 msDefault desktop playback
2,048 samplesAbout 43 msPower-saving playback on laptops
Typical PipeWire quantum settings at 48 kHz

The main trade-off is latency against reliability. Smaller quanta wake the CPU more often and leave less time per cycle, so a busy or poorly tuned system produces audible dropouts called xruns.

PipeWire compared with PulseAudio and JACK

PipeWire was designed to unify two incompatible worlds. PulseAudio served desktop users with automatic device switching, while JACK served musicians with deterministic latency; running both together required fragile bridges.

The comparison below summarizes the differences.

AspectPulseAudioJACKPipeWire
Primary audienceDesktop usersAudio professionalsBoth
Latency modelLarge, mostly fixed buffersFixed small buffersDynamic per client
Video supportNoneNoneCameras and screen capture
Sandbox securityLimitedNonePortal-based permissions
Device hotplugAutomaticManualAutomatic through WirePlumber
Application compatibilityPulseAudio clientsJACK clientsPulseAudio, JACK and ALSA clients
PipeWire, PulseAudio and JACK compared

Because of these compatibility layers, existing applications usually need no changes. They still believe they talk to PulseAudio or JACK while PipeWire handles the actual routing.

Screen sharing, Wayland and security

Under X11, any client could read the whole screen. Wayland removed that ability, so screen recording and video calls needed a controlled capture path. PipeWire provides it together with xdg-desktop-portal: the compositor publishes the screen as a PipeWire video stream, and the portal asks the user which window or monitor to share.

The same mechanism protects sandboxed Flatpak applications. A sandboxed program receives access only to the streams the user approved, which is a significant improvement over the all-or-nothing access of older sound servers.

Video capture follows the same graph model as audio. A webcam handled through video4linux appears as a PipeWire camera node, so several applications can share one camera, and buffers travel as DMA-BUF handles that avoid copying frames through the CPU. This design keeps screen recording at high resolutions efficient on modern graphics hardware.

Administration and troubleshooting

PipeWire runs as a per-user systemd service rather than a system-wide daemon. Configuration defaults live under /usr/share/pipewire, and user overrides belong in ~/.config/pipewire as small drop-in files rather than edited copies of the full defaults.

  • pw-top shows per-node load, quantum and xrun counts in real time.
  • pw-dump and pw-cli inspect objects and properties of the graph.
  • pw-link lists and creates links between ports from the command line.
  • wpctl status shows devices, default sinks and volumes managed by WirePlumber.
  • Graphical patchbays such as qpwgraph and Helvum display the graph visually.

Common problems include mixed installations where PulseAudio still starts alongside pipewire-pulse, outdated Bluetooth profiles and overly aggressive quantum settings. Removing the conflicting server and restarting the user services resolves most issues.

Explained without jargon

A computer constantly moves sound and pictures around: music to speakers, a voice from the microphone into a video call, the screen into a recording. PipeWire is the switchboard that connects all these pieces.

Earlier, Linux needed different switchboards for ordinary users and for musicians, and they did not cooperate well. PipeWire does both jobs at once and also asks permission before an app can see the screen. For most people, it simply means that sound and screen sharing work without fiddling.

A typical use case

A podcast producer works on a Fedora laptop with GNOME and Wayland. During a remote interview, a browser-based call application uses the USB microphone through the PulseAudio compatibility layer, while a digital audio workstation records the same microphone as a JACK client at a quantum of 128 samples, about 2.7 milliseconds per cycle.

Using qpwgraph, the producer routes the remote guest’s voice from the browser into a separate track of the workstation, and shares one application window through the screen-sharing portal so the guest can see the script. Everything runs through one PipeWire graph without a separate JACK server. The result is a clean multitrack recording with no audio bridges to configure and no dropouts during a 90-minute session.