yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Original Android Development] Syke21:
[MENTION=397727]Koying[/MENTION] it looks like they did make m it but didn't add it to certain areas of the site map.

I did think it odd that they did one of the older models but not all.
[Shield Android TV Original Android Development] Koying:
To my surprise, 8.2 now properly forward EAC3 to my TV if I force it in the Shield audio settings, and my TV properly do the EAC3 to AC3 conversion for ARC.

Might have been since 8.x actually, and the possibility to force EAC3, not sure I actually tested it then.

Sorry guys, that means I have no incentive to adapt the patch to 8.2 :(

I had a quick look, and code changed, so it would take me hours of decompiling to adapt it, for no personal benefit.

If I am really, really bored, I could have a shot at it at some point, but don't hold your breath...
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
Oh come on! You just want to relax and drink your Belgian beer. :D We understand that!

That is very sad. But thanks a lot for your work on the project here and also for releasing the source code so far.

Maybe you find the time to catch up the undefined steps, you mentioned in the first post here that there were "some more steps".

Of course this would be very important and useful in the open source sense if someone can be found to develop it further. My skills in ROM and C are not good enough, but I can help as much as I can. Just write me a letter.

But this is perhaps a good time to point out to the LineageOS Pie ROM from Steel01. It might make sense to integrate your work into this one instead of being dependent on the development and developers-rom of nvidia. The last update was published on 30th March 2020.

An EAC3_2_AC3 software encoder could be a huge advantage for this ROM and therefore the work of Steel01. In the spirit of OpenSource and against the disadvantage of nvidia for their older models. :fingers-crossed::fingers-crossed::fingers-crossed:

Your TV encoded EAC3_2_AC3. Wow, which model can do that?

Oh and another little question about the libaudiospdif, have you looked at the libs of fireTV. Yesterday I connected my old FireTV box (bueller) and found out that it encodes EAC3_2_AC3 extremely well. Is it possible to port the libs better or does amazon have a good open source approach?

Greetings by Idijt
[Shield Android TV Original Android Development] Koying:
As surprised as you are ;)

It's a 2015 Sony Android TV (X8509C). Android part was always a piece of sh...t, have to reboot the TV at least once a week, but well, it does that ;)

Should be semi-trivial to port with the source code.

Might be a fun side project to install lineage on one of my (semi-bricked) shield ;)
[Shield Android TV Original Android Development] jarayn:
oh man that sucks, not for you , but for us. I wonder how come it works for you now. I doubt its the shield, they have been very clear that they will not support decoding on the old boxes. Maybe sony updated your tv. I wish samsung would update mine.

Thanks for the work up till now. Ill stick with 8.01 with your patch. Theres not that much needed in 8.2, certainly not enough to give up 5.1.
[Shield Android TV Original Android Development] Syke21:
[MENTION=397727]Koying[/MENTION] that makes perfect sense pal! Thank you for all your work you've done so far!

Out of curiosity did you set the 'available formats' to manual or auto on the advanced audio settings?

---------- Post added at 01:16 PM ---------- Previous post was at 01:16 PM ----------

[/COLOR [MENTION=397727]Koying[/MENTION] that makes perfect sense pal! Thank you for all your work you've done so far!

Out of curiosity did you set the 'available formats' to manual or auto on the advanced audio settings?
[Shield Android TV Original Android Development] Koying:
Manual. The Shield wouldn't detect the EAC3 capabilities of the TV otherwise, for whatever reason.
[Shield Android TV Original Android Development] sorteds:
this mod was working perfect for me. Now i've got a new TV with eARC. How to "undo" it? Just restoring the three backup files by pushing them to the shield?

(8.2 was not rolled out for me sow far)

Thank you!
[Shield Android TV Original Android Development] jarayn:
download the 8.2 recovery image and flash that to return to stock.
[Shield Android TV Original Android Development] sorteds:
thank you. that's what i did today. Shield is working fine with 8.2

But Netflix still shows me no atmos :/ (used DARK in german and AWAY in english language). Both is with ATMOS sound and the internal LG app shows me ATMOS.

Don't know if this still belongs in this thread. But any ideas? :)
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
I think this is a nvidia bug. Please search within the xda community or nvidia shield community.

And no: This is offtopic :)
[Shield Android TV Original Android Development] Liquid_Static:
so this is true for me too until I fast forward or rewind - then I just get no audio. Anyone else have this issue?
[Shield Android TV Original Android Development] jarayn:
Oh man i wish someone knew how to update this since koying is out. I installed 8.2 today, theres quite a few improvements but the ****ty stereo sound is super annoying.
[Shield Android TV Original Android Development] androidfan001:
I accidentally upgraded to 8.2. - Now 5.1 stopped working for me :( Can I downgrade to 8.1 again?
[Shield Android TV Original Android Development] einstone:
Yes you can... Just follow some guide on YouTube.

I was on the same situation, did it and is working fine
[Shield Android TV Original Android Development] heatvslight:
So, first time I’ve done anything like this, but I managed to root my 2015 Shield TV last night using the 8.0.0 dev image from Nvidia. Everything seemed to work and I installed this amazing hack (thanks Koying), I now have 5.1 in Amazon Prime! Problem is I now get an error when starting Netflix (error -100) and I also can’t find Disney+ on the Play store. Do I now need to install these APKs from alternate sources? Are these safe? Has anybody else come across this issue?
[Shield Android TV Original Android Development] jarayn:
I'm going to have to do the same thing. Downgrade from 8.2. As much as I like the updated version i can't live without proper sound and I don't think buying a new TV or amp is a great solution.
[Shield Android TV Original Android Development] huaweiport77:
Does it work for other andoird tv
[Shield Android TV Original Android Development] Chainfire:
Once again many thanks for this @Koying . Still on my 2007 TV with 2007 soundsystem with only DD, not DD+, which otherwise works great. Had Netflix, Prime and Videoland working great, but recently joined Disney Plus.

After registering and paying, Disney Plus wasn't findable on the Play Store (oh no!), so I used this version from APK mirror: https://www.apkmirror.com/apk/disne...release/disney-1-16-0-2-android-apk-download/

Imagine my disappointment as things were once again stereo. Then I remembered you mentioning something about only 32-bit versions of the libraries being used, so I checked with ADB and Disney Plus was using the 64-bit versions. The solution was to re-install Disney Plus in 32-bit mode:

adb install --abi armeabi-v7a /path/to/disney.apk

Voila, 5.1. Might be useful for other problematic apps as well, particularly now all Play apps have to support 64-bit and thus will install 64-bit versions by default.
[Shield Android TV Original Android Development] jarayn:
Is there no one that can update this to work with the new firmware?

I either have to buy a new Shield or a new TV or never update and its a bit sad.

Obv I am going with never update but I would like to.
[Shield Android TV Original Android Development] onofalt:
Hi, any update on this ?
[Shield Android TV Original Android Development] jarayn:
I check regularly, hoping someone or even koying will update this but obv no joy. Just realised its been over a year now since your post. So disappointing.
[Shield Android TV Original Android Development] Lebrou0034:
Excellent work ! It is working perfectly ! Thanks !!!

Would it be possible to have a similar hack for DTS?

Alex
[Shield Android TV Original Android Development] Koying:
Which app uses DTS only?
[Shield Android TV Original Android Development] Lebrou0034:
On Plex if a movie is in DTS and your amp (or Sonos in my case) do not support DTS there is no sound... as Plex see DTS as supported by the Shield so do not convert it in 5.1...

Thanks again for your great work
[Shield Android TV Original Android Development] Koying:
Good point.

In the meantime, resetting surround to auto should fix Plex + DTS
[Shield Android TV Original Android Development] Lebrou0034:
Thanks for the trick. Indeed DTS is converted in stereo but not 5.1 and EAC stop working if I put audio surround on auto.
[Shield Android TV Original Android Development] Koying:
Yeah, EAC3 not working anymore is as-designed. The hack is disabled, then.

That DTS is not converted to AC3 by Plex is strange, but a Plex issue. Maybe some licensing issue as well. I know decoding is out of patents for plain AC3 but not sure about encoding.

I can translate DTS to AC3 as well, though. Just a bit worried about sync, as DTS and AC3/EAC3 do not have the same packet duration. Will try...

PS: I hate doing ads, but MrMC, the Kodi fork I'm working on, can use Plex as backend, and *do* convert DTS to AC3 as needed ;)

If you use it, you can keep the hack on, and disable DTS inside the app. Conversion is then automagic.
[Shield Android TV Original Android Development] Lebrou0034:
Thanks I was a big fan of spmc and I tried to install MrMC but as the shield has an unlocked bootloader it seems it is not compatible... And I need root :(
[Shield Android TV Original Android Development] Koying:
Right, forgot this incompatibility ;)
[Shield Android TV Original Android Development] jarayn:
Works great thanks. One small issue i have, is that the auto switching between DD and stereo when exiting a show (netflix) causes quite loud popping from the speakers as the amp changes mode. I wonder if theres a way to avoid that somehow. Like force even the UI of netflix to output DD instead of stereo, even if it wasnt genuine.

Thanks

Edit: the effect is also an issue with pausing and restarting playback.
[Shield Android TV Original Android Development] Koying:
2019-03-16:

- Added 7.2.3 version

- Added 7.2.3 version that also transcodes DTS, for those having a TV only supporting AC3
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
Wow, THX. I will try the DTS libs on my Samsung F-Serie TV. I had still some problems with my configuration.

I had a Sound-System (can handle DTS and DD 5.1) connected to my TV with optical cable and my shield just connected with HDMI to my TV. Perhaps ARC is making some trouble.

Greetings by Idijt

EDIT:

Yesterday I flashed the 7.2.2 libs to my 7.2.3 dev-rom with twrp. Is there another way to do this?
[Shield Android TV Original Android Development] DipsoNOR:
How do i upgrade to 7.2.3 without using root and settings on my shield (bootloader is still unlocked on it)
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
Sadly I had still no chance to use your libs without this device:

AMANKA Digitaler Audio Konverter HDMI zu HDMI SPDIF/Toslink RCA L/R Audio Konverter

or

ViewHD HDMI Audio Extractor | Optical Toslink + L/R Stereo Analog Converter

My TV is a Samsung TV from the F-Series. My Sound system had just Optical and Coaxial input and can just handle DTS, Dolby-Digital and Dolby Pro Logic II. I was hoping to be able to get rid of that device and would be able to use HDMI-CEC again. But when I connect my ShieldTV-Pro just to the HDMI on my Samsung, the Sound-System got no input.

So I guess the problem is the passthrough from samsung over the HDMI-ARC.

If you want to update to the new 7.2.3 you can do this with fastboot and the dev-rom from nvidia. You should take a look at this thread:

https://xdaforums.com/shield-tv/general/guide-root-nvidia-shield-experience-t3882254

Please read the last pages too about the 7.2.3 update.

Greetings by Idijt
[Shield Android TV Original Android Development] DipsoNOR:
Just flashed the dev rom, but now i cant push the files

it says i dont have write access when i try to remount and i tried to disable verity, but i still cant push

EDIT: ok, rebooted after disabling verity, and then it worked.

Installed the DTS one by mistake first, and that made netflix not have any audio at all, but once i installed the right binaries, it works great. :D
[Shield Android TV Original Android Development] fryheit:
Thank you so much, I really wasn't expecting this. After about 5 hours to update my rooted shield to the last version( with the magisk and boot.img stuff) finally everything worked out and i didnt brick my device and still got all my settings. Then one more hour to install your libraries. I had problems to push the files and thenn i removed magisk and then i suddenly worked :) now i dont have root anymore but i dont care, netflix in 5.1 is so great!! i have the sonos which doesnt support so your hack is like the best thing that happened to the shield. before i only could watch 5.1 trough kodi.. Now I have one question, youtube is 5.1 also nowadays, do you have any idea how to make that work also through sonos. I think the codec used there is aac and/or vorbis.. Do you think you could change this in the settings also, or is it a totally different thing? Anyway, Thank you sooooo much for now!!!???
[Shield Android TV Original Android Development] Koying:
Multichannel AAC or vorbis is a totally different beast, unfortunately
[Shield Android TV Original Android Development] jarayn:
Is this expected to break pass through for VLC / MX player?

I can't get that working. I'm not sure if it's this though or something else.

That's
[Shield Android TV Original Android Development] MajinChibi:
Thanks for this hack.

My Sonos Beam only supports AC3.

Everything worked fine. Was on 7.2.2 unlocked the bootloader, installed the developer image (just with the nvidia instructions), backuped the files, pushed the hack and it worked.

When 7.2.3 arrived i just installed that developer image and pushed the hack again :) (no wiping, all settings and my data was still their)

On which occasions can i benefit from the DTS transcoding? (netflix and amazon only have DD , DD+ right?)

And i think the backup code should look more like this:

adb pull /system/lib/libaudioflinger.so libaudioflinger.so.bak
adb pull /system/lib/libaudiopolicymanagerdefault.so libaudiopolicymanagerdefault.so.bak
adb pull /system/lib/libaudiospdif.so libaudiospdif.so.bak

right?

And where can i donate?
[Shield Android TV Original Android Development] Koying:
Thanks for the fix :)

The DTS is a request for, e.g., Plex users. As the shield reports all passthrough format as available, Plex doesn't transcode DTS anymore, so the hack does it instead.

Kodi (and derivatives) users can fine-adjust the capabilities inside the app, but Plex relies fully on what the system reports.
[Shield Android TV Original Android Development] BXM500:
What does the DTS fix exactly do? Transcodes DTS to AC3? Will it remain 5.1 or stereo? Any quality loss?
[Shield Android TV Original Android Development] jxordan:
With surround sound set to "Always" I get an error when attempting to play anything with surround sound on amazon/netflix. However, with it set to auto, or even never surround sound seems to work when playing an episode of game of thrones through amazon. For reference I'm using a usb audio dac on a 5.1 receiver. USB audio mode is set to 5.1

edit: 5.1 is not working for me. Receiver is getting stereo from amzn/netflix. Turns out it didn't copy over correctly. I was having issues via adb so used x-plore as root and it seems like it worked but really didn't. I rooted with magisk. Might have to switch to the dev image. Having issues writing to /system
[Shield Android TV Original Android Development] kjacksonmusic:
HBO Now streamed fine when I first installed this after a few reboots it gave an error code until I switched back to auto surround mode. ??*♂️.

Netflix and Amazon still work fine in forced surround mode.

Update:

After streaming something from hbonow and then setting surround to forced again it worked again..
[Shield Android TV Original Android Development] fryheit:
Suddenly my 5.1 stopped working in Netflix, it's going for some seconds but then silence. My Sonos is showing 5.1 is working and then it's showing silence. The video continues to play. If I switch to normal stereo stream everything is working. Does anybody have an idea or the same problem? I don't know what to do and I just was so happy to watch 5.1 with my shield.. it's strange because it's working but just mutes after some seconds..
[Shield Android TV Original Android Development] BXM500:
Yes. Exactly the same problem here.

I have the 7.2.3 DTS patch applied.
[Shield Android TV Original Android Development] Koying:
Yep, NF changed something in their EAC3 stream, apparently.

I'll post an update shortly, but you can use the non-DTS enabled version, in the meantime, that still works.
[Shield Android TV Original Android Development] jxordan:
Update: installed the dev image w/o magisk and was able to install this mod correctly via adb. However, still get an error on netflix/amazon with surround sound forced. Setting it to auto sends 2.0 to my receiver. Testing using a usb dac and an hdmi spdif extractor. No dts patch

edit: actually just started working via hdmi extractor. This hdmi extractor is kinda ****ty though I'l probably replace it with another. Would be nice if it worked via usb but I'll take it!
[Shield Android TV Original Android Development] jkaero:
First off this hack is awesome! I am however having issues with HBO Go, it works fine until i try to play something like an extra for GOT (maybe they are in 2 chan vs 5.1) after than all HBO shows stop working and wont work again until i go back to auto and back to surround. It appears non of the extras for GOT will play with it set to Surround....only with Auto. Anyone else seeing this?
[Shield Android TV Original Android Development] Koying:
7.2.3 DTS version updated. Might solve other issues...
[Shield Android TV Original Android Development] BXM500:
[MENTION=397727]Koying[/MENTION] What does the DTS version exactly do? It transcodes it to what format? Any quality loss?

Just curious.
[Shield Android TV Original Android Development] Koying:
It *also* transcodes DTS to AC3, for those whose TV *only* decides AC3.

Re quality, well, it's decoding-encoding, so it's just pointless if your audio output supports DTS. As if the quality of AC3 vs DTS, I'd say DTS is better
[Shield Android TV Original Android Development] PhaedraCorruption:
Thanks Koying for this great patch. I'm having an issue with the latest NF51-723-20190315.zip. In the netflix app, the 5.1 is working fine for about 15 seconds when I hit PLAY on a movie, then the entire app closes by itself and I'm back to the nvidia shield homescreen. I have my stereo mode set to "Always" and my receiver supports both AC3 and DTS.
[Shield Android TV Original Android Development] beatskk:
hi,

This will come in handy once I get a 4K TV.

until then I have a question:

Since the stream is processed on the shield, is it possible to control the outgoing volume? Changing volume with CEC/IR is unreliable on my system, so it would be great to be able to control 5.1 audio directly on the shield.
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
I am having root with Magisk and running the nvidia 7.2.3 dev-rom.

Sadly I am not able to follow your steps from the OP.

adb root

does not work on my machine and then

adb remount

just says "Not running as root. Try "adb root" first."

Then I thought I can do it with adb and su but I got:

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell
foster:/ $ su
foster:/ # mv /sdcard/NF51+DTS-723-20190505/
libaudioflinger.so libavcodec.so libswresample.so
libaudiopolicymanagerdefault.so libavformat.so
libaudiospdif.so libavutil.so
foster:/ # mv /sdcard/NF51+DTS-723-20190505/lib* /system/lib/
mv: /system/lib//libaudioflinger.so: Read-only file system
mv: /system/lib//libaudiopolicymanagerdefault.so: Read-only file system
mv: /system/lib//libaudiospdif.so: Read-only file system
mv: /system/lib//libavcodec.so: Read-only file system
mv: /system/lib//libavformat.so: Read-only file system
mv: /system/lib//libavutil.so: Read-only file system
mv: /system/lib//libswresample.so: Read-only file system
1|foster:/ # mount -o remount,rw /system
mount: '/dev/block/platform/tegra-sata.0/by-name/APP'->'/system': Device or resource busy
1|foster:/ # mount -o remount,rw /system

At the moment I am not able to run the foster-experimental twrp. I flashed the last version with twrp.

I hope for any help. Perhaps anybody can explain how you flash the libs on a runnung system....???

Greetings by Idijt

EDIT:

I was able to boot the experimental twrp after a lot different constealtions on my foster-device. Sadly I had still the same problem with netflix app on my Shield Pro. After about 15 seconds of Dolby-Digital 5.1 sound, my sound system getting no sound anymore. [MENTION=397727]Koying[/MENTION] what did you thing about a Magisk module. I think it would be wonderfull for the people.
[Shield Android TV Original Android Development] mLgz0rn:
if you got magisk installed you need to disable magisk hide and then reboot, that way you will be able to do adb root.

Magisk hide sets the build as user build to hide it being rooted hence why adb root dosnt work.

disabling magisk hide sets the build to debug.

https://xdaforums.com/showpost.php?p=79173888&postcount=205
[Shield Android TV Original Android Development] milenko79:
Does this method still work? I want to force my shield to output Dolby digital, but read some users were having issues recently after Netflix started scaling audio bitrate based on available bandwidth.

Has this been solved and does it still work correctly. If so, what file do I flash.

I would really hate to unlocky bootloader and wipe my shield in the process of this no longer works.

Thanks in advance.
[Shield Android TV Original Android Development] Koying:
Still works perfectly fine for me (in Belgium, at least).
[Shield Android TV Original Android Development] milenko79:
I'm in the Netherlands, so I guess it will be okay then. Would it be best to use the latest file from 05 05?
[Shield Android TV Original Android Development] milenko79:
So I installed the 7.2.3 Dev image and applied your files. In order to do that I had to disable verity. When I enabled verity again after copying the files the shield went into a bootloop. Is this normal?

I would like to protect my system files. If I can not enable verity, can I install something like super su. If yes, what version should I use?

Sorry, I'm new to modding my shield. So any help would be great.

Thanks.
[Shield Android TV Original Android Development] mLgz0rn:
Do you use magisk?
[Shield Android TV Original Android Development] I_did_it_just_tmrrow:
I think he is talking about dm-verity. So it should be magisk.

But [MENTION=1599085]milenko79[/MENTION] let us know if you have still problems. You did not need super-su if you have installed magisk. Magisk had a build in su/root method.

To my problem:

Jihpyyy! I fixed my 'netflix after 16 seconds no DolbyDigital' bug.

My hardware is:

ShieldTV Pro (HDMI) > Samsung TV F-Series (Optical cable) > Teufel 5.1 sound system (can handle DTS and DD)

Solution was to root my Samsung TV. See here for F-Series.

Then I enable this DTS passthough hack: [App] HDMI 5.1 audio passthrough patch E/F/H (MST only)

I set it to DTS not to auto.

I thought the newest release would be the best for me but with the NF51+DTS-723-20190505.zip release I was able to play DD/DTS with amazon-prime-video but with netflix I had still the 'no sound after 16 seconds' bug. So I flashed again the NF51-723-20190315.zip

Now everything is running like a charm!

So amazing! I can now play Netflix, kodi and Amazon-Video-Prime contents in 5.1!

Greetings by I_did_it_just_tmrrow