You are not logged in.

#1 2023-07-13 10:55:21

slashdoc
Member
Registered: 2022-11-08
Posts: 12

Pipewire - how to avoid sending rtp packets when idle?

Hello

I want to send audio streams from different Archlinux computers (clients), using Wifi,  to a pulseaudio server on Raspberry Pi OS.
All clients are using pipewire, with the pipewire-pulse compatibility modules installed.  They all work fine locally.

I've trying different configurations and I've finally managed to get this working with the pulseaudio module-rtp-send on the clients, using this configuration:

/etc/pipewire/pipewire-pulse.conf.d/rtp.conf

context.exec = [
    { path = "pactl"  args = "load-module module-null-sink sink_name=rtp" }

   { path = "pactl" args = "load-module module-rtp-send source=rtp.monitor destination_ip=192.168.1.200" }
]

It works, but I've noticed that pipewire/pulseaudio is constantly streaming around 1.5Mb/s of packets, even when there is nothing using the rtp sink.

I can't seem to find a solution:
1. I've tried to load the suspend-on-idle module from pulseaudio, but it is not supported on pipewire;
2. I've tried to use the pulseaudio rtp sink in pipewire, but it keeps sending packets at around 1.5Mb/s all the time;
3.  I've tried to use the pipewire rtp sink, but it keeps around 1.5Mb/s of traffic all the time;
4. I've tried to load the pulseaudio tunnel sink in pipewire, but it still 1.5Mb/s of traffic all the time.

So it seems that pipewire keeps sending 1.5Mb/s os silence all the time, even when it is idle.

So I've the following questions:

1. Is there a way to tell pipewire or pulseaudio not to send rtp (or any protocol)  packets when there is no sound being sent to the rtp sink?

2. Do you recommend any other way that seems to work for sending client audio from a sink to a remote pulseaudio server?

Last edited by slashdoc (2023-07-13 19:36:09)

Offline

#2 2023-09-25 12:58:28

parakovsky
Member
Registered: 2018-08-12
Posts: 5

Re: Pipewire - how to avoid sending rtp packets when idle?

it is weird mine sending only 200kbps but i am working on getting it to play higher sample rate bit depth

Offline

Board footer

Powered by FluxBB