Kodi Community Forum

Full Version: Audio tearing while playing aac
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I just upgraded to Fedora 28.. I can run videos with ac3 5.1 channels audio perfectly fine. Whenever I run videos with x264 and 2 channel aac audio, there is a lot of tearing and audio dropping. Here is the log -
https://paste.fedoraproject.org/paste/p9...sINz7ih8BA
Quote:17:12:19.092 T:139656713868544  NOTICE: Starting Kodi from RPM Fusion (17.6 Git:Unknown). Platform: Linux x86 64-bit
17:12:19.092 T:139656713868544  NOTICE: Using Release Kodi x64 build
17:12:19.092 T:139656713868544  NOTICE: Kodi compiled Apr 23 2018 by GCC 8.0.1 for Linux x86 64-bit version 4.16.2 (266242)
17:12:19.092 T:139656713868544  NOTICE: Running on Fedora 28 (Workstation Edition), kernel: Linux x86 64-bit version 4.16.5-300.fc28.x86_64
17:12:19.092 T:139656713868544  NOTICE: FFmpeg version/source: 4.0
17:12:19.092 T:139656713868544  NOTICE: Host CPU: AMD A10-7850K Radeon R7, 12 Compute Cores 4C+8G, 4 cores available

Not supported at all. You run kodi 17.6 with an ffmpeg version that was not even nearly available when kodi 17.6 was done. Use our internal ffmpeg and try again.
Well since there is no earlier version of ffmpeg at RPMFusion to downgrade to and no other kodi rpm available for fedora other than rpmfusion, I will just have to wait this out I guess...
I'm pretty sure it won't  magically fix itself. Distro packages are often broken due to "external libs only" and not taking into account which lib versions are needed by some applications.
Same problem with Kodi 17.6 on Fedora 28. Is it possible to configure Kodi to use internal codec instead of system from RPMFusion repository?
sure, but you must compiled it yourself
Compile codec or Kodi? what version of ffmpeg needed?
I can't really spare time to compile kodi and go through all of that..  Have you guys thought about using AppImage? That would solve all compatibility and distro / dependencies problems..
appimage is dead. Flatpak and Snap both have their own issues.
If you want vanilla kodi without having to compile it, use ubuntu, which we provide official packages for.
Hi, Kodi maintainer for RPMFusion here.

I've tried Kodi 17.6 against ffmpeg 3.4 and the audio distortion persists. My gut feeling is that this is a gcc 8 issue. When I have time to debug further I will do so, but my time at the moment is limited.
(2018-05-03, 17:37)mooninite Wrote: [ -> ]Hi, Kodi maintainer for RPMFusion here.

I've tried Kodi 17.6 against ffmpeg 3.4 and the audio distortion persists. My gut feeling is that this is a gcc 8 issue. When I have time to debug further I will do so, but my time at the moment is limited.
 Hi, thanks for looking into this. Take your time Smile
Hi,

I'm in the exact same situation, upgraded to F28 yesterday and now sound's stuttering/jittering.

Recompiling Kodi from source did fix it for me, here's how I did it (I think I didn't forget anything) :
Quote:# Remove Kodi from RPMfusion
sudo dnf remove kodi
# Get most build deps from RPMfusion
sudo dnf builddep kodi
# Get missing deps
sudo dnf install wayland-protocols-devel waylandpp-devel crossguid-devel giflib-devel fmt fmt-devel rapidjson-devel libxkbcommon-devel doxygen libidn2-devel
# Get back to home dir
cd ~/
# Git clone repo
git clone git://github.com/xbmc/xbmc.git
# Create build dir and get into it
mkdir -p xbmc/kodi-build & cd xbmc/kodi-build
# Configure build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local -DCORE_PLATFORM_NAME=wayland -DWAYLAND_RENDER_SYSTEM=gl
# Build (took around 30 minutes on my ooold Pentium G3220)
nohup cmake --build . -- VERBOSE=1 -j2 &
# Install
sudo make install
(2018-05-03, 19:18)yasij Wrote: [ -> ]It's probably this: https://bugs.debian.org/cgi-bin/bugrepor...bug=881536 .

Note: Kodi 17 shipped with ffmpeg 3.1 : https://github.com/xbmc/xbmc/commit/5ba6...33b62953ff
 
That is the problem. Thanks for the link! Kodi 17.6 and ffmpeg 4.0 now play nicely.

I will push an update to RPMFusion for this ASAP.

@wsnipex and @fritsch it was Kodi's fault behind this and Kodi 18 already has this fix. Please change your attitude from "don't use upstream ffmpeg" to "please ask your distro to give us a patch" because we will be happy to! FFmpeg is a quite fluid with its development as you know and you should embrace these changes instead of being rude towards others.

Two outstanding issues for those who use Fedora:
1. Kodi 18 still won't run with gcc 8. Will debug this next.
2. Ffmpeg 4.0 and Kodi 17.6 do not smoothly skip the video. Skipping forward or backwards introduces artifacts as complete frames are not rendered initially. I'm sure this is fixed in Kodi 18, but I will have to debug it further.
RPMFusion Bugzilla reports problem solved: https://bugzilla.rpmfusion.org/show_bug.cgi?id=4882
After update to kodi-17.6-9.fc28 everything works perfect. The update will be pushed out in the next few days to testing and then a few days later it will hit stable.
Pages: 1 2