All Projects → PipeWire → Pipewire

PipeWire / Pipewire

Licence: other
Mirror of the PipeWire repository (see https://gitlab.freedesktop.org/pipewire/pipewire/)

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Pipewire

Mlt
MLT Multimedia Framework
Stars: ✭ 836 (-9.33%)
Mutual labels:  framework, audio, multimedia
Psychosynth
GNU Psychosynth is a a synthesizer and modular audio framework inspired by the ideas of the Reactable.
Stars: ✭ 53 (-94.25%)
Mutual labels:  framework, audio
Aplay
A Better(Maybe) iOS Audio Stream、Cache、Play Framework
Stars: ✭ 44 (-95.23%)
Mutual labels:  framework, audio
Kmedia
An application level media framework for Android. (RTFSC)
Stars: ✭ 274 (-70.28%)
Mutual labels:  framework, audio
Mpv
🎥 Command line video player
Stars: ✭ 17,018 (+1745.77%)
Mutual labels:  audio, multimedia
Swiftffmpeg
A Swift wrapper for the FFmpeg API
Stars: ✭ 243 (-73.64%)
Mutual labels:  audio, multimedia
Juce
JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, RTAS and AAX audio plug-ins.
Stars: ✭ 3,841 (+316.59%)
Mutual labels:  framework, audio
Libav
Libav github mirror, clone of git://git.libav.org/libav
Stars: ✭ 847 (-8.13%)
Mutual labels:  audio, multimedia
Mystiq
Qt5/C++ FFmpeg Media Converter
Stars: ✭ 393 (-57.38%)
Mutual labels:  audio, multimedia
Rust Av
Multimedia Toolkit written in pure rust.
Stars: ✭ 411 (-55.42%)
Mutual labels:  audio, multimedia
Tracktion engine
Tracktion Engine module
Stars: ✭ 587 (-36.33%)
Mutual labels:  framework, audio
Csfml
Official binding of SFML for C
Stars: ✭ 211 (-77.11%)
Mutual labels:  audio, multimedia
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (-83.84%)
Mutual labels:  audio, multimedia
Python Mpv
Python interface to the awesome mpv media player
Stars: ✭ 245 (-73.43%)
Mutual labels:  audio, multimedia
Fdwaveformview
Reads an audio file and displays the waveform
Stars: ✭ 997 (+8.13%)
Mutual labels:  audio, multimedia
Smqtk
Python toolkit for pluggable algorithms and data structures for multimedia-based machine learning.
Stars: ✭ 69 (-92.52%)
Mutual labels:  framework, multimedia
Sfml.net
Official binding of SFML for .Net languages
Stars: ✭ 354 (-61.61%)
Mutual labels:  audio, multimedia
Ffmpeg
Mirror of https://git.ffmpeg.org/ffmpeg.git
Stars: ✭ 27,382 (+2869.85%)
Mutual labels:  audio, multimedia
Sfml
Simple and Fast Multimedia Library
Stars: ✭ 7,316 (+693.49%)
Mutual labels:  audio, multimedia
Sylar
C++高性能分布式服务器框架,webserver,websocket server,自定义tcp_server(包含日志模块,配置模块,线程模块,协程模块,协程调度模块,io协程调度模块,hook模块,socket模块,bytearray序列化,http模块,TcpServer模块,Websocket模块,Https模块等, Smtp邮件模块, MySQL, SQLite3, ORM,Redis,Zookeeper)
Stars: ✭ 895 (-2.93%)
Mutual labels:  framework

PipeWire

PipeWire is a server and user space API to deal with multimedia pipelines. This includes:

  • Making available sources of video (such as from a capture devices or application provided streams) and multiplexing this with clients.
  • Accessing sources of video for consumption.
  • Generating graphs for audio and video processing.

Nodes in the graph can be implemented as separate processes, communicating with sockets and exchanging multimedia content using fd passing.

Building and installation

The preferred way to install PipeWire is to install it with your distribution package system. This ensures PipeWire is integrated into the rest of your system for the best experience.

If you want to build and install PipeWire yourself, refer to install for instructions.

Usage

The most important purpose of PipeWire is to run your favorite apps.

Some applications use the native PipeWire API, such as most compositors (gnome-shell, wayland, ...) to implement screen sharing. These apps will just work automatically.

Most audio applications can use either ALSA, JACK or PulseAudio as a backend. PipeWire provides support for all 3 backends. Depending on how your distribution has configured things this should just work automatically or with the provided scripts shown below.

PipeWire can use environment variables to control the behaviour of applications:

  • PIPEWIRE_DEBUG=<level> to increase the debug level
  • PIPEWIRE_LOG=<filename> to redirect log to filename
  • PIPEWIRE_LATENCY=<num/denom> to configure latency as a fraction. 10/1000 configures a 10ms latency. Usually this is expressed as a fraction of the samplerate, like 256/48000, which uses 256 samples at a samplerate of 48KHz for a latency of 5.33ms.
  • PIPEWIRE_NODE=<id> to request a link to the specified node

Using tools

pw-cat can be used to play and record audio and midi. Use pw-cat -h to get some more help. There are some aliases like pw-play and pw-record to make things easier:

$ pw-play /home/wim/data/01.\ Firepower.wav

Running JACK applications

Depending on how the system was configured, you can either run PipeWire and JACK side-by-side or have PipeWire take over the functionality of JACK completely.

In dual mode, JACK apps will by default use the JACK server. To direct a JACK app to PipeWire, you can use the pw-jack script like this:

$ pw-jack <appname>

If you replaced JACK with PipeWire completely, pw-jack does not have any effect and can be omitted.

JACK applications will automatically use the buffer-size choosen by the server. You can force a maximum buffer size (latency) by setting the PIPEWIRE_LATENCY environment variable like so:

PIPEWIRE_LATENCY=128/48000 jack_simple_client

Requests the jack_simple_client to run with a buffer of 128 or less samples.

Running PulseAudio applications

PipeWire can run a PulseAudio compatible replacement server. You can't use both servers at the same time. Usually your package manager will make the server conflict so that you can only install one or the other.

PulseAudio applications still use the regular PulseAudio client libraries and you don't need to do anything else than change the server implementation.

A successful swap of the server can be verified by checking the output of

pactl info

It should include the string:

...
Server Name: PulseAudio (on PipeWire 0.3.x)
...

You can use pavucontrol to change profiles and ports, change volumes or redirect streams, just like with PulseAudio.

Running ALSA applications

If the PipeWire alsa module is installed, it can be seen with

$ aplay -L

ALSA applications can then use the pipewire: device to use PipeWire as the audio system.

Running GStreamer applications

PipeWire includes 2 GStreamer elements called pipewiresrc and pipewiresink. They can be used in pipelines such as this:

$ gst-launch-1.0 pipewiresrc ! videoconvert ! autovideosink

Or to play a beeping sound:

$ gst-launch-1.0 audiotestsrc ! pipewiresink

PipeWire provides a device monitor as well so that

$ gst-device-monitor-1.0

shows the PipeWire devices and applications like cheese will automatically use the PipeWire video source when possible.

Inspecting the PipeWire state

There is currently no native graphical tool to inspect the PipeWire graph but we recommend to use one of the excellent JACK tools, such as Carla, catia, qjackctl, ... You will not be able to see all features like the video ports but it is a good start.

pw-mon dumps and monitors the state of the PipeWire daemon.

pw-dot can dump a graph of the pipeline, check out the help for how to do this.

pw-top monitors the real-time status of the graph. This is handy to find out what clients are running and how much DSP resources they use.

pw-dump dumps the state of the PipeWire daemon in JSON format. This can be used to find out the properties and parameters of the objects in the PipeWire daemon.

There is a more complicated tool to inspect the state of the server with pw-cli. This tools can be used interactively or it can execute single commands like this to get the server information:

$ pw-cli info 0

Documentation

Find tutorials and design documentation here.

The (incomplete) autogenerated API docs are here.

The Wiki can be found here

Contributing

PipeWire is Free Software and is developed in the open. It is licensed under the MIT license.

Contributors are encouraged to submit merge requests or file bugs on gitlab.

Join us on IRC at #pipewire on Freenode.

We adhere to the Contributor Covenant for our code of conduct.

Donate using Liberapay.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].