Play Atmos TrueHD/DTS:X audio through Apple Positional Audio Codec (APAC)

TrueHD Atmos/DTS:X object audio tracks are currently played by Infuse in a lossy way as it kills height channels. However, this can now be fixed by the Infuse devs, when this is implemented we’ll get perceptually lossless Atmos audio playback with height channels from our UHD Blu-Ray rips in Infuse!

The Atmos tracks can be decoded to raw object tracks with truehd, DTS:X with dca. To get back proper Atmos audio with height channels the the Infuse devs needs to render that audio into a speaker layout with heights, then encode it to Apple Positional Audio Codec (APAC) through the Apple APIs, which outputs Atmos using Dolby MAT.

This solution is proven already, has been implemented by the tvOS app, Native Player, thread here.

Hope Infuse can implement this soon!

This sure would be a welcome feature.

I think this plus enhanced DV on the new Apple TV would be a good 8.6. Design updates can be pushed, in my opinion. I spend 98% of the time watching or listening to a movie and only 2% browsing the app.

I’ve created and published an open source library for implementing this method in any Apple TV media app, should be fairly simple to implement.

This would be awesome!, the only thing I really want and need is Atmos and DTS:X height channels properly passed through to my processor, ideally bitstream pass through or via this solution, unfortunately not lossless but at 4Mb/s it might be close enough .Could Infuse become our almost perfect media player finally?. I am not holding my breath that the new ATV next week will passthrough the audio bitstream as is, or even in the near future.For the obvious reasons brought up many here on this forum. Thank you kristofferR for posting this!

This code could be the ticket to my shield’s retirement. Infuse could indeed become the perfect Apple TV solution.

4Mb/s is way above what is actually used when uncompressed if I’m not mistaken (long time since I was involved in bluray development now) so it’s basically the same you could say and it’s probably also a lot faster and easier for the player too this way.

If Infuse can pull this off, all the Shield users would jump ship so quickly and line up to buy ATVs. Needless to say Infuse subscriptions would be off the charts. @james

This is breaking so many patents that hope people implementing in app have very deep pocket

TLDR you cant touch spatial layer, render, mux, read speaker layout to adjust etc

    1. US 9,179,236

      What it covers: a mix of channel-based and object-based streams, rendered

      according to the playback room, using at least two metadata sets.

      Status: Active, until 2032-11-17

    2. US 10,477,339

      What it covers: metadata saying whether an object plays at its own position

      or snaps to the nearest speaker.

      Status: Active, until 2032-06-27

    3. US 10,904,692

      What it covers: metadata that excludes an object from certain speakers.

      Status: Active, until 2032-06-27

    4. US 11,412,342

      What it covers: the same as '692, plus decoding the encoded audio first.

      Status: Active, until 2032-06-27

If we ignore the Atmos or DTS:X height channels for a second, are you implying that Infuse does not provide lossless 7.1?

My understanding is that although height channels are not possible, TrueHD and DTS-HD MA tracks are output from the Apple TV via Infuse losslessly.

I’m sorry did I miss an announcement that made this suddenly possible?

It’s only in the suggestions thread so no it isn’t possible…yet.

“Lossless” is a weird word to use when such a huge part of the sound picture is lost. But yeah, if you ignore a big part of the sound, it’s lossless.

Re-encoded “lossy” audio with height channels (provided the bit-rate is high enough ofc), either through TrueHD->DDP+Atmos or APAC, sounds way closer to the source audio though.

Lossless is not really a weird word if you don’t have height speakers.

Just making the point because there is the implication that Infuse is sending lossless formats as lossy.

Replaced that with as it, in top post to make it clearer.

I came “here” to ask @james if they’ve gotten their hands on 4th Gen Apple TV documentation stating that Apple would finally allow these formats to be played. Does APAC means that the solution already exists?

This is certainly an interesting technical path and kudos to the creative minds behind it.

With that said, @Piotrasd is right to highlight the patent and licensing concerns. The relevant patents still have years remaining before expiration and implementing this approach carries significant legal risk.

The issue isn’t APAC itself, but the Atmos decoding and spatial-audio processing performed before the audio reaches APAC. Encoding the result in a different format doesn’t resolve the patent and licensing issues associated with those earlier steps. The same distinction applies to a DTS:X-to-APAC approach.

We will need to dig a bit further into this to confirm the details.

Atmos is currently solvable, if tediously so, in sense that deezy+truehdd+dee can create a natively playable lossy Atmos track.

I wonder if there’s enough documentation out there to create an Atmos version of standard DTS:X with its height channels, so that dee can convert it to a natively playable lossy Atmos track.

what if Infuse doesnt have to decode Dolby Atmos?

Cavernize can create ADM Broadcast Wave Format files from TrueHD+Atmos which is basically a lot of lossless PCMs streams tagged as objects with an embedded XML for the positional metadata. This is how Master files are delivered from Studios to digital stores like iTunes or Prime.

What if we added this WAV file to an MKV? The Apple TV could render the objects using Apple Spatial Audio Renderer

Could the Apple TV render it and send it via Dolby MAT?

Hi @james ,

What about infuse pro users? How much the dolby license cost? Can it be provided only to pro users to offset the cost? Or can’t you do nothing due to apple APIs limitations?