Scripts2026年5月22日·1 分钟阅读

PipeWire — Next-Generation Audio and Video Framework for Linux

A low-latency multimedia framework that unifies audio and video handling on Linux. It replaces both PulseAudio and JACK while maintaining full compatibility with applications built for either.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
PipeWire Overview
通用 CLI 安装命令
npx tokrepo install aeb98f26-561d-11f1-9bc6-00163e2b0d79

Introduction

PipeWire is a server and API for handling multimedia on Linux, designed to replace both PulseAudio (consumer audio) and JACK (professional low-latency audio) with a single unified framework. It also handles video streams, enabling secure screen sharing under Wayland compositors.

What PipeWire Does

  • Routes audio and video streams between applications and hardware devices
  • Provides PulseAudio and JACK compatibility layers for existing applications
  • Enables low-latency audio processing suitable for professional music production
  • Handles screen capture and camera streams for Wayland-native applications
  • Manages Bluetooth audio codecs including AAC, LDAC, and aptX

Architecture Overview

PipeWire is written in C and runs as a user-space daemon managed by a session manager (WirePlumber by default). It processes media through a graph of linked nodes, where each node represents a source, sink, or filter. The graph executes in a real-time thread with configurable quantum (buffer) sizes as low as 32 samples. Compatibility modules translate PulseAudio and JACK API calls into native PipeWire operations.

Self-Hosting & Configuration

  • Ships as the default audio stack on Fedora, Ubuntu 22.10+, and many modern distros
  • On older systems, install pipewire, pipewire-pulse, and wireplumber packages
  • Configure default sample rate and buffer size in pipewire.conf
  • Use WirePlumber Lua scripts to define routing policies and device profiles
  • Adjust Bluetooth codec preferences in the bluetooth configuration files

Key Features

  • Drop-in replacement for both PulseAudio and JACK simultaneously
  • Sub-millisecond latency capability for real-time audio work
  • Secure video capture for screen sharing under Wayland using xdg-desktop-portal
  • Per-stream volume control, routing, and format negotiation
  • Bluetooth audio with support for modern high-quality codecs

Comparison with Similar Tools

  • PulseAudio — the previous standard for desktop Linux audio; PipeWire replaces it with lower latency
  • JACK — professional audio server; PipeWire provides equivalent latency with simpler setup
  • ALSA — kernel-level audio layer; PipeWire sits above ALSA and adds routing and mixing
  • CoreAudio (macOS) — Apple's integrated audio stack; PipeWire serves a similar unified role on Linux

FAQ

Q: Can I use PipeWire for professional audio production? A: Yes. With buffer sizes down to 32 samples, it matches JACK's latency for real-time work.

Q: Will my PulseAudio applications still work? A: Yes. PipeWire includes a PulseAudio compatibility daemon that handles existing apps transparently.

Q: Does PipeWire handle screen sharing? A: Yes. It provides the video capture backend for Wayland screen sharing via xdg-desktop-portal.

Q: How do I switch from PulseAudio to PipeWire? A: Install pipewire-pulse and wireplumber, then disable PulseAudio. Most modern distros handle this automatically.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产