Forrest logo
back to the pw-loopback tool

pw-loopback:tldr:5b75e

pw-loopback: Create a loopback device that automatically connects to the speakers.
$ pw-loopback -m '${[FL FR]}' --capture-props='${media-class=Audio-Sink}'
try on your machine

This command is using the "pw-loopback" tool with certain parameters and options. Let's break it down:

  • "pw-loopback" is a command-line tool in PipeWire, an open-source multimedia framework. It allows you to create virtual audio devices and routes audio between different sources and sinks.

  • "-m '${[FL FR]}'" specifies the mapping of the virtual audio channels. In this case, it is set to '${[FL FR]}' which means it maps the channels "FL" and "FR" (left and right front channels) to the virtual audio device.

  • "--capture-props='${media-class=Audio-Sink}'" sets the capture (recording) properties for the virtual audio device. Here, it is set to '${media-class=Audio-Sink}' which means it captures audio from an audio sink.

Overall, this command creates a virtual audio device that routes audio from the left and right front channels of an audio source to a recording device (audio sink) specified by the capture properties.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pw-loopback tool