Hello all,
I'm new here and I encountered a problem with my new Sony KD-65A89 TV (Android TV 9) and Kodi 18.9. In many aspects, it resembles what is described here, but with some differences.
The TV is connected to a Samsung HW-Q90R soundbar via eARC.
Playing MKV h264 videos works great: video quality is excellent and no issue with audio sync, even at different frame rates (mostly 24 and 25 fps contents).
Playing some old AVIs with MP3 audio, though, seems to be problematic. In particular I'm making my tests with a 25 fps AVI encoded with XviD and a 2.0 MP3 soundtrack.
Problem #1: audio is out of sync when playing the video with audio set to "audio system". This resembles the problem you're talking about. However, I can get it fixed in two ways:
- by using the TV speaker: ok, this is not a solution, but rather an information
- by using the soundbar, but setting the audio output mode from "Auto 1" to "Auto 2": in other words, it seems like some device in the chain does not work well when I send the 2.0 MP3 compressed stream directly to the soundbar; setting the output mode to "Auto 2", if I understand it correctly, leads the TV to decode the audio (since it's a 2.0 track, not a multichannel one) and send it to the soundbar as PCM; this way the audio is in sync
But the most annoying problem is #2: the video is heavily stuttering. This happens even if I set Kodi to change the refresh rate based on context (although I'm not sure it's actually working, this Sony TV doesn't seem to print anywhere what is the currently used output frequency) and even if I set Motionflow to maximum. Stuttering occurs independently of whether the audio is in sync or not.
The only workaround I found is to disable both "MediaCodec" options for hardware acceleration, but if I do that I see video quality is severely impacted (on this AVI file, but also on h264 videos).
VLC with audio passthrough enabled works well from a video quality point of view (no stuttering), even when I set hardware acceleration mode to "full", but I still have to use "Auto 2" digital audio output mode to get the audio in sync when using the soundbar. This makes me think that the audio problem is more related to my setup rather than to Kodi itself.
So, my final problem seems like a video stuttering problem, rather than an audio sync problem, but it's interesting that the scenario in which it occurs is much similar to the one you describe (here and on Kodi issue tracker at
https://github.com/xbmc/xbmc/issues/15784), that is an AVI encoded with XviD at 25 fps, while problems with h264 videos are observed. For this reason, I decided to write to ask you whether you think the problem is the same one or not, possibly slightly changed by the fact that I'm using Android 9 rather than Oreo.
Thanks in advance.