[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
I fixed this with the help of a little device with an optical & spdif output. It extract the audio from the HDMI cable, coming from my shield.

Here in germany, I buyed this one: https://www.amazon.de/FeinTech-VAX00102-Audio-Extractor-Schwarz/dp/B07K5SGLHZ/

But any of these should do the same: https://www.amazon.com/s?k=audio+extractor+hdmi

So my new config is now:

ShieldTV Pro aka FOSTER (HDMI) > Audio SPDIF TOSLINK Extractor > Optical cable aka TOSLINK > Teufel 5.1 sound system (can handle DTS and DD)

My old Samsung TV was to stupid to handle the converted EAC3->AC3(DD5.1) signal over his own TOSLINK. I don't know exactly why.

Netflix is showing me Dolby-Digital 5.1 as option and Amazon Video Prime is showing me the DD symbol too. Everything seems to work but yesterday while watching "Rocketman" on Amazon-Video-Prime it felt like a bit off-sync. In the scene where the actor is singing "tiny dancer" (about 52:38) I see it.

So I try the nvidia-stock sync tool but its getting worse. It felt like I need to put in a negative value, but this is not possible.

To get (almost) sure that this is not vault of my HDMI-Audio-Extractor I try to find a video available in AVP, Netflix and lokal (using Mx-Player, vlc, kodi). I find an episode of big-bang-theory. I am really (almost :D) sure that this is a problem by the libs-hack and not my converter device, I guess it takes to long to convert the audio internally.

My evidences:

-No async when playing the episode with ac3-dd-5.1 in kodi 18.6

-No async when playing the episode with disabled passthrough in vlc, kodi, netflix or avp

-No async when playing the episode in netflix but choosing non-dd-5.1 audio

-Async when playing the episode in avp or netflix or with MX-Player or with this trick here to force kodi to passthrough the eac3

The async is really short but now I know it :( @Koying do you think there is something to fix that? I have the feeling the EAC3 conversion from Mx-Player and kodi is a lot better/closer to the video then the conversation with amazon-video-prime or netflix.

@xda-91

Okay let us try to get closer to your problem.

1# all libs correctly replaced?

To get sure that you successfully copied all the files for 8.x rom out of this zip, you should connect your shield over adb or adb-network and then check the mdsum's:

adb connect YOUR-SHIELD-IP
adb shell
cd /system/lib/
md5sum libaudioflinger.so libaudiospdif.so libavcodec.so libavformat.so libavutil.so libswresample.so

Result should be:

e793559e878a021783cb76e349aa8130 libaudioflinger.so
a01e853d4f553a4b806284fe522c2819 libaudiospdif.so
886dd7cf2b3dbc4b810418488a0ebecd libavcodec.so
f26863cde1b639133a9cf16070f3a0bf libavformat.so
4af2629d919c6289c8b673828d36b43d libavutil.so
7bdfb590beb90a3a2cdd114ec4b42c54 libswresample.so

2# setup shield audio settings

Like Koying mentioned, you need to set minimal this:

If your sound-system can handle for example Dolby-Digital 5.1 and DTS you should enable it like me:

3# is netflix give me dd sound?

You can easily see it in the available audio source for your stream:

But netflix is offering a test video too. This is really useful to check the real output. You should check the different 5.1 audios sources there. You can here a voice saying left, right, center , rear and so on and you can hear a sync-sound:

And you can see a "5.1" text beneath the "HD" mention.

4# is disney+ give me dd sound?

Here you can not select the specific audio but you see again a "5.1" mention.

5# How to setup kodi 18

Go to system -Audio and setup it up to this:

With this settings I am able to play files with 5.1: DTS, DD, DD-Plus and DTS-MA

If you need a DD+ channel check, see here: https://samples.ffmpeg.org/A-codecs/AC3/eac3/channelcheck-ddplus_480.mp4