Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678222 - media-tv/kodi-17.3-r1 with media-video/ffmpeg-3.4.5 - sound output issues
Summary: media-tv/kodi-17.3-r1 with media-video/ffmpeg-3.4.5 - sound output issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-17 10:31 UTC by Sebastian
Modified: 2019-03-28 14:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2019-02-17 10:31:38 UTC
Hi all,

Yesterday ffmpeg was upgraded from 3.3.6 to 3.4.5. Afterwards I noticed that the sound was not working in kodi. The sound just was bad. Lots of noise (seemingly unrelated to the codec - I tried mp2, ac3 and dts, they were all sounding way off).

I found a Debian bug report about the same, see URL above. It includes a small patch to fix this. Alpine uses the same (https://raw.githubusercontent.com/alpinelinux/aports/master/community/kodi/19-fix-audio-with-latest-ffmpeg.patch).

I'm using stable kodi 17.3. With the patch applied the sound is back to normal.

Kind regards,
Seb

Reproducible: Always
Comment 1 Sebastian 2019-02-17 21:25:09 UTC
Video is also a bit off. When skipping the video goes green for a few seconds. This was already reported elswhere and fixed upstream (https://github.com/xbmc/xbmc/pull/12988).

The patches that Debian uses are here: https://sources.debian.org/src/kodi/2:17.6+dfsg1-4/debian/patches/


19f28e88a5dfed82e9844f69210f7c045f18ca8e.patch
c7e2acc1b2ee781af6e14d80da0edd0aa23bdf03.patch

They apply cleanly to 17.3. The green screens after skipping are gone.

Regards,
Seb
Comment 2 Larry the Git Cow gentoo-dev 2019-02-18 03:01:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9b28fe5e5935dccc94539383cba437071a4254c

commit b9b28fe5e5935dccc94539383cba437071a4254c
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2019-02-18 02:59:41 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2019-02-18 02:59:41 +0000

    media-tv/kodi: ffmpeg 3.4.5 fixes, don't unbundle fonts
    
    Bug: https://bugs.gentoo.org/678222
    Closes: https://bugs.gentoo.org/669204
    Package-Manager: Portage-2.3.60, Repoman-2.3.12
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 ...adapt-to-deprecated-symbols-and-functions.patch | 401 +++++++++++++++++++++
 .../kodi-17-fix-audio-with-latest-ffmpeg.patch     |  15 +
 media-tv/kodi/kodi-17.6-r10.ebuild                 | 278 ++++++++++++++
 3 files changed, 694 insertions(+)
Comment 3 Craig Andrews gentoo-dev 2019-02-18 03:02:15 UTC
Can you please test again with media-tv/kodi-17.6-r10 which I just added? I included the referenced patches - please let me know if it fixes the issues. If it does, I'll request that version to go stable.

And thanks for reporting the issue!
Comment 4 Sebastian 2019-02-18 19:02:59 UTC
Hello Craig,

When trying to "emerge" media-tv/kodi-17.6-r10 it wanted to downgrade ffmpeg to 3.3.6. media-tv/kodi-17.3-r1 didn't do that and then it'd be pointless to add the patches. I suppose that was not your intention :-)

I removed the "<media-video/ffmpeg-3.4" line from

  system-ffmpeg? (
    >=media-video/ffmpeg-${FFMPEG_VERSION}:=[encode,openssl,postproc]
    <media-video/ffmpeg-3.4
  )

and built against 3.4.5. And indeed it all works fine.

Thanks!

Best regards,
Seb
Comment 5 Craig Andrews gentoo-dev 2019-02-18 20:16:27 UTC
(In reply to Sebastian from comment #4)
> Hello Craig,
> 
> When trying to "emerge" media-tv/kodi-17.6-r10 it wanted to downgrade ffmpeg
> to 3.3.6. media-tv/kodi-17.3-r1 didn't do that and then it'd be pointless to
> add the patches. I suppose that was not your intention :-)
> 
> I removed the "<media-video/ffmpeg-3.4" line from
> 
>   system-ffmpeg? (
>     >=media-video/ffmpeg-${FFMPEG_VERSION}:=[encode,openssl,postproc]
>     <media-video/ffmpeg-3.4
>   )
> 
> and built against 3.4.5. And indeed it all works fine.
> 
> Thanks!
> 
> Best regards,
> Seb

Great - I'm adding -r11 with this change.

I'll file a stabilization request on March 18 (one month from now).
Comment 6 Ewoud Kohl van Wijngaarden 2019-03-12 21:38:22 UTC
Can confirm 17.6-r11 fixes my issues.
Comment 7 Craig Andrews gentoo-dev 2019-03-28 14:57:56 UTC
Resolved by -r11 stabilization, see bug 680852