Jump to content
  • The Computer Audiophile
    The Computer Audiophile

    How To Decode and Play Dolby TrueHD Atmos on Windows and macOS

     


    Yes, you read the title correctly. Here is a little background and all the information you'll need to decode and play lossless Dolby TrueHD with Atmos on a Windows or macOS computer, without the need for HDMI output. 

     


    Housekeeping

     

    There are two codecs used with Dolby Atmos content. 

     

    Lossy - Dolby Digital Plus
    Lossless - Dolby TrueHD

     

    Atmos offers additional height channels to the more traditional 5.1 or 7.1. For example I'm putting together a 7.1.4 Atmos system. 7 main channels, 1 subwoofer, and 4 height channels. 

     

    Both DD+ and TrueHD carry the height channels in metadata. This makes the content on Blu-ray Discs appear like plain 7.1, but when decoded, the height channels are filled. It isn't practical to extract the height channels to a separate file, these are available at the time of decoding.

     

    macOS has a built-in Dolby Digital Plus decoder using what's called DD+JOC. This is how Atmos / Spatial Audio content can be played and listened to on a Mac. However, this is the lossy version, not TrueHD lossless. 

     

    The only source of lossless Dolby TrueHD Atmos is on Blu-ray Discs. 

     


    Why?

     

    Why would someone want to decode and play Dolby TrueHD Atmos content on a computer rather than an AVR or processor? Mainly it's about cost, flexibility, and performance. The cost of a high end processor can set you back $10,000 or much more. The flexibility of a computer based system is endless (for better or worse). With respect to performance, a computer based system can use several types of room correction, 65,000+ taps, upsample to high rate PCM or DSD, and output to high end DACs with interfaces much better than HDMI.

     


    Here We Go

     

    Start by ripping the Dolby TrueHD content from a Blu-ray Disc. To do this, use a Blu-ray drive such as the Archgon BU40N that can also rip UHD 4K Blu-ray Discs (although a firmware adjustment is required to rip UHD). 

     

    Ripping the content is done by the MakeMKV application - https://makemkv.com

     

    Here you can see The Beatles Abbey Road Blu-ray. I have the TrueHD Surround 7.1 English track selected to rip. Again, it says 7.1, but the metadata will be used to create a 5.1.2, 7.1.4, 9.1.4 or greater mix. 

     

     

    TrueHD ripping decoding 01.jpg

     

     


    Once MakeMKV has ripped the track into an MKV file, you'll have both the audio and video together. 

     

    I prefer to extract only the audio portion of these tracks, so I use an application called Music Media Helper 6. This app will enable you to extract individual audio tracks in MKA format. 

     

    Once you have both MKV and MKA files, you're ready to extract the lossless TrueHD files needed for decoding. Note: if you want to output the MKV or MKA files via HDMI into an AVR with Dolby Atmos decoding, then you don't need to go any further. However, if you want to decode TrueHD on a computer, keep reading. 

     

    Install the app named mkvtoolnix and the gui for the app, named MKVCLeaver.

     

    The reason I have both a single MKV file and individual MKA files is because I want a single track (for listening to the entire album) and separate tracks for picking and choosing. 

     

    Open MKVCleaver, then select the MKV file from within the app. Once open, select the audio track you wish. Here you can see I've selected what says MLP FBA 16-ch... on Abbey Road. Then click extract. This will extract the entire track into a TrueHD file with the TrueHD file extension. 

     

     

    TrueHD ripping decoding 02.jpg

     

     

     


    If you want individual files, open all the MKA files with MKVCLeaver, and select the Audio Track like I've done in this screenshot, and click extract. This will give you individual TrueHD files. 

     

     

    TrueHD ripping decoding 03.jpg

     

     

     

    Once you have your TrueHD files extracted, change the file extension from .truehd to .mlp. Now you have files ready to decode from 7.1 to 7.1.4 or more, and 100% lossless. 

     

     

    Where The Rubber Meets The Road

     

    Now for the good part. Purchase a license for the Dolby Media Encoder ($400 /yr). The Dolby Media Encoder comes with the Dolby Reference Player. The Dolby Reference Player is the app that's needed. Note: the Media Encoder is what's licensed for $400 per year, but only the Reference Player is what we need. The Reference Player will continue to work after one's Media Encoder license has expired, but updates will not be available.

     

    You can purchase the Dolby media Encoder here.


    Install the Reference Player on either macOS or Windows. I have it working on macOS 12.3 and Windows 11. 

     

    Open the Dolby Reference Player and change the settings to match your audio needs. I disable Dynamic Range Control, set the presentation to 16 channels, speaker layout to 7.1.4, and audio device to my Merging Technologies Anubis. Then open one of the ripped MLP files and extracted earlier, and enjoy the glorious lossless Dolby TrueHD with Atmos content. 

     

    HDMI output isn't required because the audio is already decoded into PCM.

     

    Here is a screenshot of me playing The Beatle Abbey Road. You can see the 7 main channels, 1 LFE subwoofer, and 4 height channels, all with content. 

     

    TrueHD ripping decoding 04.jpg

     

     


    Wrap Up

     

    This was the quick and dirty how-to. There are many more items to cover, such as room correction and issues that may pop up with different audio interfaces. Right now, I can send audio from the Dolby Reference Player to HQPlayer for room correction and upsampling, then out to my Merging Technologies Anubis for playback. The decoding is all done by the Reference Player. Regular 12 channels of PCM is delivered to HQPlayer, so I can do whatever DSP I need. I also send Apple Music Atmos / Spatial Audio content through the same digital signal processing.

     

    I want to thank @El Guapo for helping me with this project. Without his input, I'd still be trying to figure this out. 


     

     

     




    User Feedback

    Recommended Comments



    2 minutes ago, mkt said:

    Thanks for the info.

    The developer isn’t the friendliest. He told me, “…If that doesn't apply to you, then I'm sorry, but I'm not really interested in spending time on splitting TrueHD. MKVToolNix is not a full blown audio editor. Please use different programs for that task.”

    Share this comment


    Link to comment
    Share on other sites

    16 hours ago, The Computer Audiophile said:

    Music Media Helper on Windows will soon extract to Atmos WAV without needed to use DRP. 

    Could you please expain more of this? Thanks!

     

    Currently I'm able to get 12 or 16 individual WAV files through DRP, but I would like to ask if there is a way to merge those 12 wav files into a single 7.1.6 multi-channel PCM or WAV?

     

    Best regards

    Share this comment


    Link to comment
    Share on other sites

    1 hour ago, sw5163 said:

    Could you please expain more of this? Thanks!

     

    Currently I'm able to get 12 or 16 individual WAV files through DRP, but I would like to ask if there is a way to merge those 12 wav files into a single 7.1.6 multi-channel PCM or WAV?

     

    Best regards

     

    The update to Music Media Helper isn't out yet. So, we have to use MLP files played through DRP, into Audacity. Audacity will capture 12 or 16 or whatever channel files and save them as WAV files with all the channels in a single file. When you have the capture in Audacity, just select Export Audio and it will work perfectly. 

    Share this comment


    Link to comment
    Share on other sites

    2 minutes ago, The Computer Audiophile said:

    The update to Music Media Helper isn't out yet

    So Beta 4 doesn't do it?

    Share this comment


    Link to comment
    Share on other sites

    4 minutes ago, ted_b said:

    So Beta 4 doesn't do it?

    Beta 4 looks to fix the DRP issue, not not create WAV files as 7.1.4 etc...

    Share this comment


    Link to comment
    Share on other sites

    8 minutes ago, The Computer Audiophile said:

    The update to Music Media Helper isn't out yet. So, we have to use MLP files played through DRP, into Audacity. Audacity will capture 12 or 16 or whatever channel files and save them as WAV files with all the channels in a single file. When you have the capture in Audacity, just select Export Audio and it will work perfectly. 

    I'm using atmos_decode.py script to decode to 16 individual WAV files Decode E-AC3 and TrueHD with Atmos to WAVs (up to 16 channels) (github.com)

     

    I will look into Audacity, thanks!

    Share this comment


    Link to comment
    Share on other sites

    2 minutes ago, The Computer Audiophile said:

    You can drag the files into Audacity and output as a single file. The script should do this though.

    Sorry this may be a stupid question, I have imported all 12 wav files into Audacity but when I click output, it remix all 12 channels into 1 single channel. Clearly I have done something wrong. How should I output as a 12 channel 7.1.4 WAV?

    Share this comment


    Link to comment
    Share on other sites

    1 minute ago, sw5163 said:

    Sorry this may be a stupid question, I have imported all 12 wav files into Audacity but when I click output, it remix all 12 channels into 1 single channel. Clearly I have done something wrong. How should I output as a 12 channel 7.1.4 WAV?

    Make sure your output device has 12 channels, then it should work. I have this - 

     

    Screenshot 2023-01-17 at 1.35.05 PM.png

    Share this comment


    Link to comment
    Share on other sites

    31 minutes ago, The Computer Audiophile said:

    Make sure your output device has 12 channels, then it should work. I have this - 

    It turns out I need to enable "Use custom mix" exporting AC3 5.1 audio - Audacity Forum (audacityteam.org)

    But here comes another question, it didn't ask me to select channel mapping. How could I check they are mapped correctly to 7.1.4 instead of something like 11.1? I don't have proper 7.1.4 playback devices near by.

    Share this comment


    Link to comment
    Share on other sites

    2 minutes ago, sw5163 said:

    It turns out I need to enable "Use custom mix" exporting AC3 5.1 audio - Audacity Forum (audacityteam.org)

    But here comes another question, it didn't ask me to select channel mapping. How could I check they are mapped correctly to 7.1.4 instead of something like 11.1? I don't have proper 7.1.4 playback devices near by.

     

    You didn't see this screen?

     

    Screenshot 2023-01-17 at 2.16.41 PM.png

     

     

    Do you have these options enabled?

     

    Screenshot 2023-01-17 at 2.17.13 PM.png

    Share this comment


    Link to comment
    Share on other sites

    6 minutes ago, The Computer Audiophile said:

    You didn't see this screen?

    I saw that, but is there a document how they map channel 1-12?

    I thought channels need to be specifically mapped to L R C LFE Ls Rs Lrs Rrs Ltf Rtf Ltr Rtr for 7.1.4 PCM to work?

    If it just adds 12 channels to a WAV, won't that result in a 11.1 layout?

    Share this comment


    Link to comment
    Share on other sites

    Just now, sw5163 said:

    I saw that, but is there a document how they map channel 1-12?

    I thought channels need to be specifically mapped to L R C LFE Ls Rs Lrs Rrs Ltf Rtf Ltr Rtr for 7.1.4 PCM to work?

    If it just adds 12 channels to a WAV, won't that result in a 11.1 layout?

     

    It depends on how the channels are added to Audacity. If I play them with DRP to Audacity, the channel order is perfect for 7.1.4. 

     

    How are you adding the files to Audacity?

     

    If you add them in the right order, it will be perfect. The order you have them, L R C LFE Ls Rs Lrs Rrs Ltf Rtf Ltr Rtr, is one through twelve.

    Share this comment


    Link to comment
    Share on other sites

    2 minutes ago, The Computer Audiophile said:

     

    It depends on how the channels are added to Audacity. If I play them with DRP to Audacity, the channel order is perfect for 7.1.4. 

     

    How are you adding the files to Audacity?

     

    If you add them in the right order, it will be perfect. The order you have them, L R C LFE Ls Rs Lrs Rrs Ltf Rtf Ltr Rtr, is one through twelve.

    The script I mentioned above decode TrueHD atmos to this:

    image.png.0b9e7062ce58d5d7407269ff2277bc45.png

    I drag them over to the Audacity, and the order is according.

    Advanced Mixing Options - Audacity Manual (audacityteam.org):

    image.thumb.png.55f84f76f92723c38407f7e8459c735f.png

    I will give it a test later, thank you so much, you really help me a lot!

    Share this comment


    Link to comment
    Share on other sites

    2 minutes ago, sw5163 said:

    I think I have to specify channel mapping at least for Apple, 8_Channel_ID.wav on AIFF / AIFC Sample Files (mcgill.ca) fails when I remix it in Audacity.

    Hmmm. 
     

    if you look at the file and play the channels individually (you can mute them), do they play to the correct channel?

     

    My guess is the file isn’t the same. Atmos uses different channel numbers than some other formats. 
     

    if you have Apple Music, play the Dolby album with track IDs and capture it in Audacity. Route through Blackhole of course. 
     

    Then export. The channels will be perfect. 

    Share this comment


    Link to comment
    Share on other sites

    I think DaVinci Resolve is required to achieve proper channel mapping

    Share this comment


    Link to comment
    Share on other sites

    10 hours ago, sw5163 said:

    I think DaVinci Resolve is required to achieve proper channel mapping

    I have perfect channel mapping using Audacity. 
     

    Why do you think Resolve is required?

    Share this comment


    Link to comment
    Share on other sites

    11 hours ago, sw5163 said:

    I think DaVinci Resolve is required to achieve proper channel mapping

    Did you see the new beta of Music Media Helper, out today? 
     

    It should split an MKV into 7.1.4 WAV. 

    Share this comment


    Link to comment
    Share on other sites

    1 hour ago, The Computer Audiophile said:

    I have perfect channel mapping using Audacity. 
    Why do you think Resolve is required?

    I can't use loopback for audio recoding, it just takes too long.

    The output of the python script is 12 separate WAV, they need to have proper channel mapping for 7.1.4 playback on ATV.

    Although I'm not sure, but I think without channel mapping, QuickTime won't be able to tell which channel to go where, other players may be able to do that.

    For example, I don't think there's a way to specify 5.1.4 or 7.1.2 layout when input is 10 WAV files in Audacity.

    And when decoding atmos to these two layout, the sound of last four channel will not be same.

    image.thumb.png.681e44b7deb3588e965ab50ccd245717.png

    You can simply check this on an iPhone, the original 8_Channel_ID.wav on AIFF / AIFC Sample Files (mcgill.ca) will play L R C  Ls Rs. However if import and export it in Audacity, there will be only L R sound, which is not correct.

    Share this comment


    Link to comment
    Share on other sites

    48 minutes ago, sw5163 said:

    I can't use loopback for audio recoding, it just takes too long.

    The output of the python script is 12 separate WAV, they need to have proper channel mapping for 7.1.4 playback on ATV.

    Although I'm not sure, but I think without channel mapping, QuickTime won't be able to tell which channel to go where, other players may be able to do that.

    For example, I don't think there's a way to specify 5.1.4 or 7.1.2 layout when input is 10 WAV files in Audacity.

    And when decoding atmos to these two layout, the sound of last four channel will not be same.

    image.thumb.png.681e44b7deb3588e965ab50ccd245717.png

    You can simply check this on an iPhone, the original 8_Channel_ID.wav on AIFF / AIFC Sample Files (mcgill.ca) will play L R C  Ls Rs. However if import and export it in Audacity, there will be only L R sound, which is not correct.

     

    That 8 channel doesn't use the same channel numbers as Atmos.

     

    AppleTV won't pay TrueHD anyway, so best to stream the DD+JOC.

     

    If you have 12 separate WAV files, just put them in the right order in Audacity and export. The only thing it can do is export in that order. It can't be wrong.

    Share this comment


    Link to comment
    Share on other sites

    I have MMH working perfectly extracting 7.1.4 WAVs from MKVs. This is a dream. If I only had a Mac, I'd install UTM Virtual Machines, and run Windows on it, just for this .

     

    I'm working on an article for publication tomorrow.

    Share this comment


    Link to comment
    Share on other sites




    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now




×
×
  • Create New...