Apple TV settings for Dolby Digital encoded files

I’ve been working with Surround Sound and the new Apple TV a bit lately, and I can’t quite understand some of the results I’m seeing.

My setup:

  • Apple TV connected to a Dolby Digital compliant receiver via HDMI. This receiver supports HDMI v1.4
  • 5.1 speaker setup

I encode my audio files using Adobe Audition CC 2015. This version of Audition supports exporting ac3 and ec3 Dolby Digital and Dolby Digital Plus formats. The resulting ec3 files are 48KHz, 320bps with 5.1 channels.


My app uses AVAudioPlayer to play back these files. I set my audio session and preferred number of channels appropriately before starting playback.

When I have my Apple TV’s Audio/Video Surround mode set to Dolby Digital, everything works as I would expect. My receiver switches over to DD, and all sounds play on the correct channels. Querying my AVAudioSessions maxOutputNumberOfChannels returns 6, as I would expect.

If I leave the Apple TV in its default “auto” state, I get different results. The AVAudioSession maxOutputNumberOfChannels returns 8 (more than the receiver supports), and playing back my files results in a completely different (and wrong) channel mapping. I don’t see my receiver switch over to Dolby Digital like I do when the Apple TV is forced into Dolby Digital mode.

The last test I did was to export my audio files in pcm (wav) form. This results in surround sound files that work for all channels regardless of the Apple TV Dolby Digital setting (as I would expect since they aren’t Dolby Digital encoded). However, wav files are massive, and I really don’t want to go that route…


So what exactly is happening here? Why might I be seeing different channel mappings depending on the Apple TV audio setting?


My guess is that with Dolby Digital encoded files, leaving the Apple TV in auto mode causes the Apple TV to decode the files and send raw audio to the receiver, but with an incorrect channel mapping. If the Apple TV is in Dolby Digital=On mode, that enables HDMI passthrough and the receiver does the decoding of the file.

Is there a different way I should be encoding my files so that they are decoded correctly by both the Apple TV and receiver?

Hi pnb2001,


When set to "Dolby Digital = On" mode, the Apple TV re-encodes audio to Dolby Digital (AC-3) for compatibility with devices that only support Dolby Digital bitstream passthrough.


When set to "Auto", the Apple TV will decode audio (including Dolby Digital or Dolby Digital Plus audio) to multichannel PCM and pass that over HDMI. This means that the receiver will not say "Dolby Digital Plus" or "Dolby Digital" since it is not receiving a bitstream, however you should get the correct decoded audio (this is what happens for iTunes movies for example).


What is the incorrect channel mapping that you are seeing?


cheers,

Hugo

I would like some clarity from Apple about this.

The sound output is a total mess. It seems one has to change to Dolby Digital when playing such content sand then change back to Stereo for the reciever to behave as AppleTV2/3 and Bluray players, Boxee Box etc. It can't be Apples point in doing it the opposite ov everyone else.

When set to Auto I don't get a correct decoded audi stream, you can hear that easily. Same when setting Dolby Digital to On everything is interpreted as Dolby 5.1 even though it is Stereo audio.

Apple TV settings for Dolby Digital encoded files
 
 
Q