Kodi Community Forum
Linux Kodi 17.6 Distorted Audio - 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: Linux Kodi 17.6 Distorted Audio (/showthread.php?tid=340707)



Kodi 17.6 Distorted Audio - OS/2 - 2019-02-11

Did a fresh install of Kodi on Debian 9 (stretch) from the repository. The sound is distorted. Any idea why?
I don't have ffmpeg installed and all the dependencies installed successfully.


RE: Kodi 17.6 Distorted Audio - fritsch - 2019-02-11

No idea.

Post your Debug Log


RE: Kodi 17.6 Distorted Audio - OS/2 - 2019-02-14

https://paste.kodi.tv/ribiyeweve

The hardware produces normal audio with other applications such as mplayer or gstreamer.


RE: Kodi 17.6 Distorted Audio - yasij - 2019-02-14

That isn't a debug log. Turn in debugging like the instructions in the link says.

Which repository did you get Kodi from? Debian stretch only shipped with Kodi 17.1. From your log it was built against ffmpeg 3.4. Kodi 17 shipped against ffmpeg 3.1. ffmpeg 3.4 breaks it. See this Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881536. The Debian patched versions aren't supported here. They make a lot of changes which break things.


RE: Kodi 17.6 Distorted Audio - OS/2 - 2019-02-16

I'm actually using Kodi from the stretch-backports repository. Namely 17.6.
Kodi has always worked well in the past from this repository.
I recently changed my hardware and the same version of Kodi I'm using now (17.6) worked fine on my previous (more-or-less similar) hardware. The audio DAC is a Realtek ALC affair and is something that's well supported under Linux and again been using for a few years (even with Kodi).
I don't have ffmpeg installed on the machine. I purged it. I believe Kodi uses it's own ffmpeg library if I'm not mistaken.
I have also tried another experiment. I purged Kodi completely and reverted back to 17.1 from the stable Debian repository. Unforunately the audio distortions are still present and they sound the same, in terms of pitch and harmonics.


RE: Kodi 17.6 Distorted Audio - yasij - 2019-02-16

(2019-02-16, 02:22)OS/2 Wrote: I don't have ffmpeg installed on the machine. I purged it. I believe Kodi uses it's own ffmpeg library if I'm not mistaken.

You are mistaken for the Debian packed version. They build against the system ffmpeg. It has a dependency on libavcodec which is part of ffmpeg. To help you, you need to provide a log with debugging turned on and reproduce the issue.


RE: Kodi 17.6 Distorted Audio - fritsch - 2019-02-16

If that's the case, problem is clear. The broken patched kodi in order to support old stretch version of ffmpeg. You can see the patch that breaks audio in the debian/patches folder


RE: Kodi 17.6 Distorted Audio - OS/2 - 2019-02-16

Curious though, I'm using the Kodi from the same exact repository on another machine and the sound is not distorted.

Debug log:
https://paste.kodi.tv/quteyaxihi.kodi

There are indeed ffmpeg errors reported


RE: Kodi 17.6 Distorted Audio - fritsch - 2019-02-16

Build from source. Debian's package is not supported out of that reason. ffmpeg 3.3 introduced an API change. Kodi 17.6 is only compatible with internal ffmpeg 3.1

Your choice :-)


RE: Kodi 17.6 Distorted Audio - OS/2 - 2019-02-16

I reverted back to 17.1 from the stable repository and the corresponding libavcodec57. Audio is back to normal.

It was libavcodec57 from bpo9 which was causing the problem for both Kodi 17.1 and 17.6.


RE: Kodi 17.6 Distorted Audio - fritsch - 2019-02-16

As I told you above ...