Kodi Community Forum
No Sound with Pulseaudio anymore - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: No Sound with Pulseaudio anymore (/showthread.php?tid=228988)

Pages: 1 2 3 4 5


No Sound with Pulseaudio anymore - Manko10 - 2015-06-07

Hi,

I'm having a strange issue with Pulseaudio + Kodi which I didn't have before.
When I start playback of a video file or stream I don't have any sound at all.

Looking at the log file it says:
Quote:13:19:14 T:140408613570304 NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 80 ms
13:19:14 T:140408613570304 ERROR: Sink PULSEBig Grinefault returned invalid buffer size: 1
13:19:14 T:140408613570304 NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 80 ms
13:19:14 T:140408613570304 ERROR: Sink PULSEBig Grinefault returned invalid buffer size: 1
13:19:14 T:140408605177600 NOTICE: Thread AESinkNull start, auto delete: false

When I start Kodi with AE_SINK=ALSA, sound is working, although it may be crackling a bit.

When I searched for the issue, the only real thing I found was: http://forum.kodi.tv/showthread.php?tid=195109
But I don't want to compile Kodi from scratch for that.

Using Kodi 14.2 and Pulseaudio 6.0.

Any idea how to solve the problem? Thanks.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

Nope, no idea. Post a full Debug Log, output of pactl list sinks

Edit: Btw. what means "before"? 14.2 is untouched in PA case for more than 6 months, so we definitely did not change anything?


RE: No Sound with Pulseaudio anymore - un1versal - 2015-06-07

Pulseaudio 6... You're on Arch right? Try with some lower pulseaudio version like 4.0


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

No - I am also running pulseaudio 6.0 - this is perfectly fine.


RE: No Sound with Pulseaudio anymore - un1versal - 2015-06-07

Ok dokey. no idea I dont use any.


RE: No Sound with Pulseaudio anymore - Manko10 - 2015-06-07

Chakra Linux do be precise. It's based on Arch. And I'm not completely sure myself what "before" means, but I know that it stopped working at some point.

Here's the debug log Kodi: http://xbmclogs.com/ppzx0npa3
I x'ed out path names, but everything else is unchanged.

And here is a list of sinks from pacmd list-sinks: http://xbmclogs.com/pd8wjs9nw


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

Quote:fixed latency: 80.00 ms

Did you code that in via default.pa or daemon.conf? Can you post those two, please too?

Edit: And while at it, also try to choose the 5.1 device directly via kodi.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

Perhaps some background:

your pactl list sink tells:

device.buffering.buffer_size = "42336"
device.buffering.fragment_size = "5292"

So now let's calculate, we have 44.1khz stereo signal with a 16 bit format, that would mean: 44100 * 16 * 2 = 1411200 bps (bits per second)
That makes:
42336 * 8 / 1411200 = 0.224 which is 224 ms buffer
5292 * 8 / 1411200 = 0.03 which is 30 ms fragments

and therefore you need ~8 fragments to fill one of these buffers.

All fine from this perspective.

Edit: My computation was wrong. PA values are in bytes. Therefore it's factor 8 better. which makes it ~ 25 ms and is most likely not the issue.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

And yeah - the crackling is obvious


RE: No Sound with Pulseaudio anymore - Manko10 - 2015-06-07

I did as you told me, nothing changed expect that now Wine is crashing when playing audio.

EDIT: that doesn't mean that all Windows programs are crashing, just the config dialog when testing audio. Applications, however, have a huge delay now. Audio is like half a second delayed.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

no matter what you do, post Debug Log and pactl list sinks again.

Yeah, that delay is intended. You also did not post the other logfiles.

To make it short: with the current audio settings you have, there won't be any sane audio output at all.


RE: No Sound with Pulseaudio anymore - Manko10 - 2015-06-07

kod.log: http://xbmclogs.com/pdnysq0n0
pacmd list-sinks: http://xbmclogs.com/pl97yf6ja

Quote:To make it short: with the current audio settings you have, there won't be any sane audio output at all.
Maybe I forgot to tell: it's just Kodi. All other applications are working perfectly fine.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

Does not matter. Your audio configuration absolutely makes no sense. That you see with plain alsa mode. You are just flooding your bus with interrupts to refill your buffer, whenever there is load you will get crackle, stutter, underrun. That's not worth it at all.


RE: No Sound with Pulseaudio anymore - Manko10 - 2015-06-07

Okay, but how to fix it? I'm running a completely fresh configuration now. Deleted all local and system-wide configs, reinstalled Pulseaudio and set the two config options you suggested. Still no audio in Kodi, but everywhere else. I also tried selecting the 2.0 (or after configuring it correctly 5.1) device directly in Kodi, but other than specifing a different sink in its error message, Kodi isn't behaving any differently.


RE: No Sound with Pulseaudio anymore - fritsch - 2015-06-07

last try:

default-fragments = 4
default-fragment-size-msec = 25