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.
| Component | Role | Example |
|---|---|---|
| PipeWire daemon | Runs the graph and schedules processing | The pipewire user service |
| WirePlumber | Session and policy management | Choosing the default headset |
| pipewire-pulse | PulseAudio-compatible server | Firefox and desktop sound settings |
| JACK replacement library | Runs JACK clients without a JACK server | Digital audio workstations |
| ALSA plugin | Routes plain ALSA applications into the graph | Older games and tools |
| SPA plugins | Device and format handling modules | Bluetooth audio and video4linux cameras |
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.
| Quantum | Latency per cycle | Suitable workload |
|---|---|---|
| 32 samples | About 0.7 ms | Live monitoring on tuned systems |
| 128 samples | About 2.7 ms | Recording and virtual instruments |
| 512 samples | About 10.7 ms | Gaming and voice calls |
| 1,024 samples | About 21 ms | Default desktop playback |
| 2,048 samples | About 43 ms | Power-saving playback on laptops |
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.
| Aspect | PulseAudio | JACK | PipeWire |
|---|---|---|---|
| Primary audience | Desktop users | Audio professionals | Both |
| Latency model | Large, mostly fixed buffers | Fixed small buffers | Dynamic per client |
| Video support | None | None | Cameras and screen capture |
| Sandbox security | Limited | None | Portal-based permissions |
| Device hotplug | Automatic | Manual | Automatic through WirePlumber |
| Application compatibility | PulseAudio clients | JACK clients | PulseAudio, JACK and ALSA clients |
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-topshows per-node load, quantum and xrun counts in real time.pw-dumpandpw-cliinspect objects and properties of the graph.pw-linklists and creates links between ports from the command line.wpctl statusshows 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.