[jitsi-dev] Jitsi and pulseaudio 2 dont mix well


#1

Hello,

As of today, Debian testing has upgraded pulseaudio to version 2.
Jitsi doesnt seem to like it, the sound is distorted and there is a
pronounced echo to it.

Setting the audio output to portaudio solves the issue, but the sound
quality isnt that good as it was with pulseaudio.

Additionally, if the pulseaudio server is shut down or restarted when
jitsi is running, the interface works until the audio tab is selected
(the sound isnt working). After that, the whole program freezes, i had
to kill the process with -9. Not nice if someone uses jitsi and for some
reason the pulseaudio server restarts.

PS. Pulseaudio 2 has some improved echo cancellation (webrtc?), it would
be nice if jitsi could take advantage of.

···

--
O zi buna,
Kertesz Laszlo


#2

On Wed, May 30, 2012 at 10:21:57AM +0300, laszlo.kertesz@gmail.com wrote 0.7K bytes in 23 lines about:
: As of today, Debian testing has upgraded pulseaudio to version 2.
: Jitsi doesnt seem to like it, the sound is distorted and there is a
: pronounced echo to it.

I had the same problem. It seems my debian mirrors got this update a
day or so ago. I removed pulseaudio completely and now everything sounds
better, including jitsi. Even bluetooth audio works fine.

···

--
Andrew
pgp 0x6B4D6475


#3

As of today, Debian testing has upgraded pulseaudio to version 2.
Jitsi doesnt seem to like it, the sound is distorted and there is a
pronounced echo to it.

Thank you for the feedback!

We'll try to look into the issue as soon as possible and in accord
with our priorities. In the meantime, patches fixing the problem will
be greatly appreciated.

Additionally, if the pulseaudio server is shut down or restarted when
jitsi is running, the interface works until the audio tab is selected
(the sound isnt working). After that, the whole program freezes, i had
to kill the process with -9. Not nice if someone uses jitsi and for some
reason the pulseaudio server restarts.

Do you know whether the behavior is specific to version 2 or it is the
same with version 1? How do you go about shutting down or restarting
the PulseAudio server (if you know it off the top of your head)?

···

2012/5/30 Kertesz Laszlo <laszlo.kertesz@gmail.com>:


#4

Lyubomir Marinov wrote:

As of today, Debian testing has upgraded pulseaudio to version 2.
Jitsi doesnt seem to like it, the sound is distorted and there is a
pronounced echo to it.

Thank you for the feedback!

We'll try to look into the issue as soon as possible and in accord
with our priorities. In the meantime, patches fixing the problem will
be greatly appreciated.

I have a workaround. I edited the /etc/pulse/default.pa file and replaced

load-module module-udev-detect

with

load-module module-udev-detect tsched=0

restarted pulseaudio and it works. BTW i later observed that skype too
had this issue along with vlc. Sflphone worked well though as did
audacious and mplayer.

So it might be related to some pulseaudio internals after all. Maybe its
some killer combination that has to do with my specific card's (Nvidia
MCP77/78 HDMI) drivers (intel-hda) and setup. Maybe others will test it
too.

Additionally, if the pulseaudio server is shut down or restarted when
jitsi is running, the interface works until the audio tab is selected
(the sound isnt working). After that, the whole program freezes, i had
to kill the process with -9. Not nice if someone uses jitsi and for some
reason the pulseaudio server restarts.

Do you know whether the behavior is specific to version 2 or it is the
same with version 1? How do you go about shutting down or restarting
the PulseAudio server (if you know it off the top of your head)?

I think its the same. Having said this, almost all programs have roughly
the same behaviour except maybe the mixers (for example pavucontrol
tries to reconnect automatically).
I use pulseaudio -k or killall pulseaudio. Pulseaudio respawns but
audio-using programs that use pulseaudio directly pretty much hang until
killed or just lose audio and not "recover" it. It would be nice to
"proof" jitsi against this, maybe falling back to portaudio or trying to
reconnect.

···

2012/5/30 Kertesz Laszlo <laszlo.kertesz@gmail.com>:

--
O zi buna,
Kertesz Laszlo