Kodi Community Forum

Full Version: Leia - Audio Passthrough Problem on Philips TV
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

Is audio Passthrough in Kodi Leia solved differently than in Krypton?

Because on my Philips TV PFT6550 (Android 5.1) passthrough works corectly in Kodi 17.6, but in Kodi 18 i have no sound, no output on receiver. Same Settings.

Some possible solutions?
Disable passthrough and let Kodi autput the audio as stereo? What benefit does one have to bitstream 5.1 channels to a TV with only 2 speakers?
(2018-11-06, 15:40)DaVu Wrote: [ -> ]Disable passthrough and let Kodi autput the audio as stereo? What benefit does one have to bitstream 5.1 channels to a TV with only 2 speakers?
 He said he have a receiver
oh damn. My apologies. Missed that part.
Might be SHIELD -> TV -> Receiver
I now guess more that it's Kodi on Androd on Philips TV -> Receiver

Probably via ARC.
I have tested and here are my other findings. The difference is most significant on DTS sound. In Kodi 17.6 works passthrough correctly on movies with DTS sound, i have 5.1 output on every file with this sound, in Leia nothing, no output, neither 5.1 nor 2.0. That is why I ask for info about difference between Krypton and Leia in audio processing, i dont understand why it works on one, and not on another.

With standard 5.1 sound (AC3) is situation more difficult, some movies passthrough correctly in Krypton and Leia, both, some movies not.
I don't think you are right. Krypton removed passthrough via PCM hack. It only works via standard APIs. And MediaTek devices (Sony and Philips) do not implement ENCODING_DTS currently.

You should provide a debug log of a playback attempt.
Sorry but i know i am right. In Krypton works passthrough for movies with DTS audio fine, maybe it is not true DTS, because is enabled Dolby Digital Transcoding, but for me is important, that output is surround, for 5 reproductors.

Now tested again, new clean instalation both, first Krypton, second Leia, same movie (Life of Pi), same settings, only allowed passthrough and enabled Dolby Digital Transcoding. Thats all.

In first case (Krypton) movie played correctly, with 5.1 output, in second (Leia) not.

Here is logfile from both:

https://paste.kodi.tv/qihahefaje
https://paste.kodi.tv/xuzedisaju
Have you actually enabled debug mode on both attempts cause a lot is missing.
Regardless the v18 log is full or errors making it seem like a completely broken Android firmware issue (blame Philips).
Sorry, my fault, here again: https://paste.kodi.tv/juqubudale

I understand that guilt is primarily on Philips side, their firmware for older TVs is peace of shit. But when passthrough of DTS works on Krypton, isnt possible make change in Leia code, some build for Philips TV, modified by working Krypton?
I have actually never seen an Android TV with MediaTek MT5593/MT5861. This really looks to be some very old unsupported HW (still on Lollipop).

As expected, DTS is not supported:
txt:
11:17:30.534 T:18446744072357239808 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_EAC3

DTS should work when being transcoded to Dolby Digital which happens on your side:
txt:
11:19:44.364 T:18446744072357239808 NOTICE: CAEEncoderFFmpeg::Initialize - AC3 encoder ready

Dunno why playback fails though. Works fine for me on Leia with the transcoding...
(2018-11-07, 13:15)alibagil Wrote: [ -> ]Sorry, my fault, here again: https://paste.kodi.tv/juqubudale

I understand that guilt is primarily on Philips side, their firmware for older TVs is peace of shit. But when passthrough of DTS works on Krypton, isnt possible make change in Leia code, some build for Philips TV, modified by working Krypton?
 Device specific changes is something we will never do again cause it's just not worth it for us.
We succesfully open AC3 for your DTS after transcoding:

Quote:11:57:06.388 T:18446744072357241088   DEBUG: Opening Passthrough RAW Format: STREAM_TYPE_AC3 Sink SampleRate: 48000
11:57:06.389 T:18446744072357241088   DEBUG: Created Audiotrackbuffer with playing time of 256.000000 ms min buffer size: 12288 bytes
11:57:06.390 T:18446744071839632384   DEBUG: OnAVChange: CApplication::OnAVChange
11:57:06.390 T:18446744071839636864   DEBUG: CVideoPlayer::HandleMessages - player started 2
11:57:06.400 T:18446744072355298560   DEBUG: CAnnouncementManager - Announcement: OnAVChange from xbmc
11:57:06.403 T:18446744072355298560   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnAVChange
11:57:06.408 T:18446744072357241088  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 48000 format: AE_FMT_RAW (AE) method: RAW (PT) stream-type: STREAM_TYPE_AC3 min_buffer_size: 12288 m_frames: 12288 m_frameSize: 1 channels: 2

But your real issue is the following:

Quote:11:57:06.409 T:18446744072357241088   DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
11:57:06.409 T:18446744072357241088   DEBUG:   Output Device : android
11:57:06.410 T:18446744072357241088   DEBUG:   Sample Rate   : 48000
11:57:06.410 T:18446744072357241088   DEBUG:   Sample Format : AE_FMT_RAW
11:57:06.411 T:18446744072357241088   DEBUG:   Channel Count : 2
11:57:06.411 T:18446744072357241088   DEBUG:   Channel Layout: FL, FR
11:57:06.411 T:18446744072357241088   DEBUG:   Frames        : 12288
11:57:06.412 T:18446744072357241088   DEBUG:   Frame Size    : 1

Quote:11:20:55.737 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17572.101122
11:20:55.738 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17542.104747
11:20:55.743 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17512.100455
11:20:55.903 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17477.102955
11:20:55.913 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17479.102330
11:20:55.914 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17481.102414
11:20:55.918 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17478.100788
11:20:55.920 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -17480.104621
11:20:56.059 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18183.670414
11:20:56.071 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18300.407664
11:20:56.077 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18316.946248
11:20:56.087 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18324.397123
11:20:56.090 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18326.398456
11:20:56.095 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18328.401539
11:20:56.195 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18325.396789
11:20:56.198 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18327.396039
11:20:56.210 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18324.398414
11:20:56.215 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18453.321956
11:20:56.225 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18465.126331
11:20:56.396 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18611.030330
11:20:56.405 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18613.027997
11:20:56.412 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18615.030288
11:20:56.500 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18736.492622
11:20:56.591 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18762.061248
11:20:56.607 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18764.062831
11:20:56.654 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18893.808247
11:20:56.664 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18900.528664
11:20:56.674 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18912.439872
11:20:56.804 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -19039.885706
11:20:56.804 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -19009.883748
11:20:56.804 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18979.882331
11:20:56.805 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18943.882247
11:20:56.805 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18913.882664
11:20:56.805 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18883.882290
11:20:56.886 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18859.095205
11:20:56.889 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18829.093998
11:20:56.891 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18794.094414
11:20:56.896 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18764.096706
11:20:56.901 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18734.095955
11:20:56.998 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18842.607665
11:20:57.008 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18812.606498
11:20:57.009 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18782.605998
11:20:57.013 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18747.607622
11:20:57.015 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18717.604998
11:20:57.149 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18826.497581
11:20:57.156 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18796.498497
11:20:57.157 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18766.499872
11:20:57.334 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18730.497664
11:20:57.339 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18700.498247
11:20:57.344 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18670.498872
11:20:57.348 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18635.499414
11:20:57.350 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18605.498039
11:20:57.440 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18570.500248
11:20:57.447 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18540.499664
11:20:57.463 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18510.498289
11:20:57.464 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18474.500580
11:20:57.475 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18444.499414
11:20:57.478 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18414.498997
11:20:57.613 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18379.500331
11:20:57.616 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18349.499164
11:20:57.624 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18346.501873
11:20:57.631 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18348.503456
11:20:57.635 T:18446744072357239808 WARNING: ActiveAE - large audio sync error: -18350.500956

That way nothing will come out ...
to Martijn: OK, I understand.

to fritsch: And what does "big audio sync error" mean, is audio too big for sync? Because in the same movie another track in standard dolby digital (not DTS) work correctly, passthrough success, 5.1 output on receiver.

https://paste.kodi.tv/padiyewaso

9.13 - start movie with DTS audio, no passthrough
9.14 - change track to Dolby Digital track, passthrough ok
9.15 - change back to DTS, no passthrough
Pages: 1 2