LinuxCommandLibrary

pw-loopback

Tool for creating loopback devices in pipewire.

TLDR

Create a loopback device with the default loopback behavior

$ pw-loopback
copy


Create a loopback device that automatically connects to the speakers
$ pw-loopback -m '[[FL FR]]' --capture-props='[media.class=Audio/Sink]'
copy


Create a loopback device that automatically connects to the microphone
$ pw-loopback -m '[[FL FR]]' --playback-props='[media.class=Audio/Source]'
copy


Create a dummy loopback device that doesn't automatically connect to anything
$ pw-loopback -m '[[FL FR]]' --capture-props='[media.class=Audio/Sink]' --playback-props='[media.class=Audio/Source]'
copy


Create a loopback device that automatically connects to the speakers and swaps the left and right channels between the sink and source
$ pw-loopback --capture-props='[media.class=Audio/Sink audio.position=[FL FR]]' --playback-props='[audio.position=[FR FL]]'
copy


Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source
$ pw-loopback --capture-props='[audio.position=[FR FL]]' --playback-props='[media.class=Audio/Source audio.position=[FL FR]]'
copy

Help

pw-loopback [options] 
  -h, --help                            Show this help 
      --version                         Show version 
  -r, --remote                          Remote daemon name 
  -n, --name                            Node name (default 'pw-loopback-167813') 
  -g, --group                           Node group (default 'pw-loopback-167813') 
  -c, --channels                        Number of channels (default 2) 
  -m, --channel-map                     Channel map (default '[ FL, FR ]') 
  -l, --latency                         Desired latency in ms 
  -C  --capture                         Capture source to connect to 
      --capture-props                   Capture stream properties 
  -P  --playback                        Playback sink to connect to 
      --playback-props                  Playback stream properties 

Copied to clipboard