You are not logged in.

#1 2020-10-07 01:32:24

mattf
Member
Registered: 2020-04-12
Posts: 17

Pulseaudio module-rtp-recv shuttering and lagging after recent update

Greetings hackers! I have a ubuntu box streaming audio with the pulseaudio's module-send-rtp and this always worked fine. On this machine I have:

/etc/pulse/default.pa

...
load-module module-null-sink sink_name=rtp 
load-module module-rtp-send source=rtp.monitor destination_ip=10.42.0.1 inhibit_auto_suspend=always

And on the receiver, which is the arch linux box that I am listening the audio on I have:

/etc/pulse/default.pa

...
load-module module-rtp-recv sap_address=10.42.0.1 latency_msec=150

I tried different latency_msec values but I didn't need that field before and it didn't help on nothing. So this was what used to work just fine:

/etc/pulse/default.pa

...
load-module module-rtp-recv sap_address=10.42.0.1 

So within the updates of the last 5 days (on arch) the received audio by the module-rtp-recv just shutters a lot (making click noises like psx emulator when lagging), it also has some long lags within every minute, lagging for about 10 seconds (silent).

Both machines are connected with LAN. I created a shared Ethernet on the arch box which the ubuntu one connects with cable. I think that is not the issue anyway since it works fine when I am listening to the rtp stream with another software like vlc.

I tried to downgrade pulseaudio with the downgrade utility but it depends on libpulse and then libpulse breaks a lot of things I have so... I didn't succeed on that.

Also syslog doesn't show nothing about pulse during the stream or when I restart pulseaudio, at least nothing that could be related:

syslog

...
Oct 06 22:27:38 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: context kaput
Oct 06 22:27:38 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:38 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:38 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:38 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:38 arch-matheus bluetoothd[767]: Endpoint unregistered: sender=:1.2472 path=/MediaEndpoint/A2DPSink/sbc
Oct 06 22:27:38 arch-matheus bluetoothd[767]: Endpoint unregistered: sender=:1.2472 path=/MediaEndpoint/A2DPSource/sbc
Oct 06 22:27:39 arch-matheus rtkit-daemon[1447]: Successfully made thread 566313 of process 566313 owned by '1000' high priority at nice level -11.
Oct 06 22:27:39 arch-matheus rtkit-daemon[1447]: Supervising 5 threads of 5 processes of 1 users.
Oct 06 22:27:39 arch-matheus pulseaudio[566313]: Daemon already running.
Oct 06 22:27:39 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: context kaput
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:39 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_output.usb-Corsair_Raptor_HS40-00.analog-stereo"
Oct 06 22:27:39 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:50 arch-matheus rtkit-daemon[1447]: Successfully made thread 566493 of process 566493 owned by '1000' high priority at nice level -11.
Oct 06 22:27:50 arch-matheus rtkit-daemon[1447]: Supervising 4 threads of 4 processes of 1 users.
Oct 06 22:27:51 arch-matheus pulseaudio[566493]: module-combine is deprecated: Please use module-combine-sink instead of module-combine!
Oct 06 22:27:51 arch-matheus pulseaudio[566493]: We will now load module-combine-sink. Please make sure to remove module-combine from your configuration.
Oct 06 22:27:51 arch-matheus bluetoothd[767]: Endpoint registered: sender=:1.2483 path=/MediaEndpoint/A2DPSink/sbc
Oct 06 22:27:51 arch-matheus bluetoothd[767]: Endpoint registered: sender=:1.2483 path=/MediaEndpoint/A2DPSource/sbc
Oct 06 22:27:51 arch-matheus bluetoothd[767]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset Voice gateway: rfcomm_bind: Address already in use (98)
Oct 06 22:27:51 arch-matheus bluetoothd[767]: src/profile.c:ext_start_servers() RFCOMM server failed for Headset unit: rfcomm_bind: Address already in use (98)
Oct 06 22:27:51 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus kdeconnectd[1399]: org.kde.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:51 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:51 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:51 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus plasmashell[1380]: org.kde.plasma.pulseaudio: No object for name "alsa_input.usb-Corsair_Raptor_HS40-00.mono-fallback"
Oct 06 22:27:51 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object
Oct 06 22:27:51 arch-matheus plasmashell[1380]: qrc:/plasma/plasmoids/org.kde.plasma.volume/contents/ui/ListItemBase.qml:151: TypeError: Value is undefined and could not be converted to an object

Journalctl also doesn't show much. This module always worked for me on the last 6 months or so that I am using arch.

Anyone else also has this? Any ideas to solve this?

Offline

#2 2020-10-07 13:08:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,413

Re: Pulseaudio module-rtp-recv shuttering and lagging after recent update

Pulseaudio received a fairly major bump by updating to an RC release/upstream commit. That did get some changes in the RTP department https://gitlab.freedesktop.org/pulseaud … quests/363 apparently precisely to fix something with the new implementation that is also used by new Ubuntu versions: https://gitlab.freedesktop.org/pulseaud … issues/889

So you should be able to either update the pulseaudio version used on ubuntu so that it includes the commit from the merge request, rebuild our own pulseaudio without gstreamer or downgrade pulseaudio(... and libpulse)

Online

#3 2020-10-07 18:37:51

mattf
Member
Registered: 2020-04-12
Posts: 17

Re: Pulseaudio module-rtp-recv shuttering and lagging after recent update

Thanks @V1del! You are always saving me! I simply grabbed @Lionel642's module-rtp build from: https://gitlab.freedesktop.org/pulseaud … issues/889 --> (https://gitlab.freedesktop.org/pulseaud … stream.tgz)

I replaced the system files with the tar's one (built without gstream):

mkdir rtp_no_gstream
cd rtp_no_gstream
wget https://gitlab.freedesktop.org/pulseaudio/pulseaudio/uploads/6b4aa37650983f22d34952da1253801f/rtp-nogstream.tgz
tar -xvzf rtp-nogstream.tgz 
sudo cp *.so /usr/lib/pulse-13.99/modules/

My ubuntu is recently upgraded but I didn't touch on it. Simply doing that on the receiver and restarting pulseaudio (pulseaudio -k) did the trick and things are back to normal now (until those files get replaced on the next upgrade or they fix it I suppose tongue)

Offline

Board footer

Powered by FluxBB