xbmc icon indicating copy to clipboard operation
xbmc copied to clipboard

WebOS - Audio is out of sync

Open ivonovak opened this issue 2 years ago • 11 comments

Bug report

Describe the bug

Live Stream Video or MKV files with audio AAC codecs is out of sync.

Change : last build from 05/12/20023: mkv with aac codec from local storage (nfs) plays in sync

Stream Video, live stream from TVHeadend [ maybe other clients also ] or MKV (H264,H265) files with audio AAC codecs is out of sync., but : Stream Video , live stream from TVHeadend or MKV Files (H264,H265) with AC3, eAC3, DTS codec plays in sync

It is not possible to move the audio to get AV in sync. TV : LG OLEG65C, webOS 7 Audio Paththroug : ON AC3 transcoding : ON

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Actual Behavior

Possible Fix

To Reproduce

Steps to reproduce the behavior:

Debuglog

The debuglog can be found here: https://paste.kodi.tv/gahukeyogo.kodi

Screenshots

Here are some links or screenshots to help explain the problem:

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:

  • [ ] Android

  • [ ] iOS

  • [ ] tvOS

  • [ ] Linux

  • [ ] macOS

  • [ ] Windows

  • [ ] Windows UWP

  • [ x ] WebOS

  • Operating system version/name:

  • Kodi version: WebOS7, Latest KODI build

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

ivonovak avatar Dec 06 '23 06:12 ivonovak

Thank you for using Kodi and our issue tracker. This is your friendly Kodi GitHub bot :wink:

The issue that you have opened was marked as ignoring the rules of our bug tracker by a team member. Please review the following requirements for issue reports and make sure that you follow all of them:

  • Reports must follow our template and have all relevant fields filled in.
  • A full debug log is always mandatory.
    • Make sure that you restart Kodi after setting the log level to debug.
    • Log files may not be modified except for the removal of personally identifying information, usernames/passwords and similar.
    • For build errors, include a full build log instead.
  • You may not have any banned add-ons installed.
  • Bugs should be reproduced on a clean Kodi installation whenever possible.

Please understand that adherence to these rules is required for the team to be able to handle the volume of open issues efficiently. The issue will be closed after one week has passed without satisfactory follow-up from your side.

xbmc-gh-bot[bot] avatar Dec 06 '23 11:12 xbmc-gh-bot[bot]

Debug log is attached. Same problem : https://forum.kodi.tv/showthread.php?tid=368381&pid=3174506#pid3174506 https://forum.kodi.tv/showthread.php?tid=368381&pid=3173679#pid3173679

ivonovak avatar Dec 07 '23 06:12 ivonovak

There is no immediate fix for the mentioned issue. I am working on it but it's a rather complex issue requiring deeper access into the media frameworks which are closed source.

sundermann avatar Dec 07 '23 16:12 sundermann

Thank you in advance for the quality work done on the kodi fork on webos and for this information about audio synchro. It is a current problem for many people. It would be good to make a checklist of what works and what doesn't to eliminate such questions and post it here or at "https://forum.kodi.tv/showthread.php?tid=368381"

ivonovak avatar Dec 08 '23 07:12 ivonovak

On my side I don't have sync issues with Opus audio either. As long as passthrough + AC3 transcoding are enabled.

Didn't try AAC but I'd expect it to behave the same. So maybe it's related to live video.

quietvoid avatar Dec 08 '23 18:12 quietvoid

On my side I don't have sync issues with Opus audio either. As long as passthrough + AC3 transcoding are enabled.

Didn't try AAC but I'd expect it to behave the same. So maybe it's related to live video.

Yes, it's related to live video. File with AAC codec plays correctly

ivonovak avatar Dec 09 '23 10:12 ivonovak

the problem improves if I set audio passthrough in audio settings. but there is still some delay (less) also passthrough should be enabled by defalt, let the tv decide how to handle 2.0 or 5.1 streams. for example, sometimes I have a logitech 5.1 system connected, sometimes I don't. just pass the stream as it is to the tv so if the speaker setup is "internal speaker" it will be converted to normal stereo... if there is a surround connected, it will be sent as is to it (I enables passthrough also on the tv itself)

Zibri avatar Dec 31 '23 11:12 Zibri

I just installed Omega 21.0 final on my LG and see the same issue on all HD streams like ARD/ZDF/ONE/KikaHD and so on... everthing that is HD has stuttering video. The sound seems to be fine... but the picture stutters. No usable this way. All other non-HD sources like SAT1/RTL are streaming fine.

TVHeadend client.

alexhass avatar Apr 28 '24 13:04 alexhass

Since 21.0. was released now, could someone please tell me how to fix or mitigate the audio sync issues? They are still there for me after upgrading to 21.0. Thanks!

darkcheater avatar May 22 '24 05:05 darkcheater

Adding tags to m3u files may solve the problem that the audio and video of the live stream are out of sync

This article uses an online translation, and the expression is not very clear.

My environment, LG CX, WebOS 5.5, Kodi 21.0 rc2 version, make sure IPTV Simple Clinet and ffmpegdirect add-ons are enabled. In addition, Kodi and all add-ons settings remain default. You can also use the stable version of Kodi 21.0, but you need to download the ffmpegdirect add-ons by yourself, and the download address is https://raw.githubusercontent.com/satgit62/pvr.hts-tvhead-client-on-LG-webOS/main/inputstream.ffmpegdirect.zip

Edit the m3u file in the following format and upload the edited file in your own way. #KODIPROP:inputstream=inputstream.ffmpegdirect rtp://xx.xx.xx.xx:xxxx #KODIPROP:inputstream=inputstream.ffmpegdirect rtsp://xx.xx.xx.xx/.......xx.smil #KODIPROP:inputstream=inputstream.ffmpegdirect http://xx.xx.xx.xx/.......xx.m3u8 #KODIPROP:inputstream=inputstream.ffmpegdirect http://xx.xx.xx.xx/......./xx.php?id=ch1

Once you've done the above, use Kodi to open the channel of the M3U you just uploaded. Note that when opening a channel, two buttons must appear to force the use of the ffmpegdirect add-ons, as shown in pic 1. If one button appears (pic 2), you need to close the channel and re-open until two buttons appear.

Finally, with ffmpegdirect, there is an occasional problem, see pic 3, which buffers for a few seconds, and then plays normally and no longer buffers. But I didn't find the relevant setting to cancel it, and it doesn't come up every time.

1 2 3

tuzidaguai avatar May 23 '24 02:05 tuzidaguai

Is it better now with the latest release?

Is there still no solution?

Juancafr avatar Sep 01 '24 18:09 Juancafr