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



    OK, I heard back from Bert and an engineer working with him on the Atmos releases. 

     

    Selecting the 2.0 channel playback in the Reference Player give you the stereo version. It will work on stereo speakers and give some semblance of spatialization, but it's mostly a fancy fold-down from the 5.1.

     

    To get a binaural, it needs to be created either from the master file or with Dolby's new headphone format (which also takes into account the binaural metadata (which is specified by the mixer as 'Off' 'Near', 'Mid' or 'Far')) which is called AC-4 IMS (stands for Immersive Stereo). The AC-4 is better than DD+ in terms of compression, but not lossless.

     

    Share this comment


    Link to comment
    Share on other sites

    Inspired by @The Computer Audiophile's journey, I've been doing some exploration with immersive audio for headphones. It has not been smooth sailing, and I clearly have a lot more to learn about navigating this space. My intent with this initial foray was to just explore the potential of this experience on headphones. I decided to explore Apple Music, played back on an M2 Macbook Air, playing to Meze Empyrean headphones, both directly from the MB headphone out, or through an Audioquest Dragonfly Cobalt.

     

    Even with this non-demanding setup, I was plagued by gotchas. Inexcusably, the Music app does not appear to use Exclusive Mode (or whatever the equivalent is in MacOS-speak)! I wanted to avoid sample rate conversions, but I don't know if I really succeeded. With Hi-Res tracks, you can at least see the sample rate of the track, but there is no sample rate view for Atmos. I made the assumption that all Atmos tracks were 24/48. Is that correct?

     

    My patchwork solution to getting the best SQ for both the stereo and Atmos mixes of tracks was:

    • only pick hi-res tracks up to 24/96, since the DF Cobalt does not do 24/192
      • Set the same sample rate in Audio Midi Setup before hitting play
    • For Atmos, select "Always On" for Dolby Atmos in the Music app preferences
      • Set the sample rate to 24/48 in Audio Midi Setup before hitting play

    Now to the punchline: my listening tests so far have not been very compelling. On the whole, the stereo tracks tend to sound better. Yes, I can hear the "immersive" aspect of Atmos, but it seems contrived, and comes at a noticeable drop in resolution and transparency. Will lossless Atmos (TrueHD) solve this? Possibly the resolution issue, but I suspect the true benefit of immersion comes from the physical separation of speakers in a 7.1.4 (and other) layout. Trying to simulate it with DSP for headphones seems to be a fraught endeavor, and I certainly did not have any Aha! moments.

     

    Before I draw any conclusions from this, I need to ensure I have done everything right. I also need to understand exactly how and when Atmos mixes are decoded for headphones, and if there are any lossless (TrueHD?) mixes with headphone encoding. I'm not even sure I've got the terminology right!

     

    Chris said this was a marathon, not a sprint. No kidding! Right now, I'm just looking over the trophy, and trying to decide if the race is worth running. 😁

    Share this comment


    Link to comment
    Share on other sites

     

    27 minutes ago, austinpop said:

    but I suspect the true benefit of immersion comes from the physical separation of speakers in a 7.1.4 (and other) layout. Trying to simulate it with DSP for headphones seems to be a fraught endeavor, and I certainly did not have any Aha! moments

     

    I think you nailed it.... 

     

    It will take a tremendous amount of DSP to create all of the timing cues for 2 drivers that  our brain uses from 11 speakers to locate objects in space. Even if it can be done, hard to imagine this amount of processing won't have unintended consequences

     

    I suggest you take the easy route. Buy > $100K worth of amps, speakers, cables, and processors to do it properly . 😉

     

     

     

    Share this comment


    Link to comment
    Share on other sites

    9 minutes ago, bbosler said:

    I suggest you take the easy route. Buy > $100K worth of amps, speakers, cables, and processors to do it properly . 😉

     

    🤦‍♂️ Of course. Why didn't I think of that. Thanks for the sage advice! 😂 

    Share this comment


    Link to comment
    Share on other sites

    13 minutes ago, bbosler said:

     

     

    I think you nailed it.... 

     

    It will take a tremendous amount of DSP to create all of the timing cues for 2 drivers that  our brain uses from 11 speakers to locate objects in space. Even if it can be done, hard to imagine this amount of processing won't have unintended consequences

     

    I suggest you take the easy route. Buy > $100K worth of amps, speakers, cables, and processors to do it properly . 😉

     

     

     

    Or buy a Smyth A16 Realizer and get an in person PRIR done in a studio by someone who know what they're doing.

    Share this comment


    Link to comment
    Share on other sites

    14 minutes ago, phoenixdogfan said:

    Or buy a Smyth A16 Realizer and get an in person PRIR done in a studio by someone who know what they're doing.

    I’d love to compare an A16 to my 7.1.4 system. I’m a big fan of the power of DSP. 

    Share this comment


    Link to comment
    Share on other sites

    10 minutes ago, The Computer Audiophile said:

    I’d love to compare an A16 to my 7.1.4 system. I’m a big fan of the power of DSP. 

    Or in your case, your home, given what's already in your listening room.  

    Share this comment


    Link to comment
    Share on other sites

    27 minutes ago, phoenixdogfan said:

    Or buy a Smyth A16 Realizer and get an in person PRIR done in a studio by someone who know what they're doing.

     

    PRIR?

     

    Google returns:

    • Puerto Rico Immunization Registry
    • Pacific Region Industrial Relations
    • Pine Ridge Indian Reservation
    • Primitive Irish.

    I'm guessing none of the above? 😂

    Share this comment


    Link to comment
    Share on other sites

    10 minutes ago, austinpop said:

     

    PRIR?

     

    Google returns:

    • Puerto Rico Immunization Registry
    • Pacific Region Industrial Relations
    • Pine Ridge Indian Reservation
    • Primitive Irish.

    I'm guessing none of the above? 😂

    To quote the Smyth Research site:

     

    "The best and easiest solution ... is to personalise the playback of the sounds through the headphones so that they recreate how our own ears hear each sound. We do this by measuring how sound propagates from an external source to each ear, and use this to create digital filters that mimic the normal analogue filtering action of each ear. During this measurement process we also determine the distance apart of the ears, and measure the acoustic impact (or reverberation) of the environment on what we hear.

    The overall result is a personalised room impulse response (PRIR) that contains all the information needed to accurately recreate how an individual hears an external sound through their own ears. In combination with low-latency head-tracking personalisation ensures that the listener cannot tell whether the sounds through the headphones are real or virtual."

     

    So a PRIR (a Personalized Room Impulse Response) measures how the transfer function of the room and your own anatomy (head shape and size, external ear, etc) alters a given digital signal before it comes to your ear canal as sound waves.  It then applies that measured transfer function to the output of your headphones to duplicate what you personally would have heard from speakers playing in the room where you were listening to them.

    Share this comment


    Link to comment
    Share on other sites

    6 minutes ago, The Computer Audiophile said:

    All music streaming in DD+  is decoded by the app already. 

    You mean Apple Music on a Mac? But this opens up possibilities on a PC, doesn't it..?

    I'll give it a test drive later..🙂

    Share this comment


    Link to comment
    Share on other sites

    1 minute ago, retro said:

    But this opens up possibilities on a PC, doesn't it..?

    No because none of the services stream Atmos / DD+ to a PC.

    Share this comment


    Link to comment
    Share on other sites

    20 minutes ago, The Computer Audiophile said:

    No because none of the services stream Atmos / DD+ to a PC.

    Of course, but for downloaded DD+ Atmos files it has a use though.

    Share this comment


    Link to comment
    Share on other sites

    1 minute ago, retro said:

    Of course, but for downloaded DD+ Atmos files it has a use though.

    I've never seen a downloadable DD+ music file. Have you?

    Oh wait, I have sen a couple MP4 DD+.

    Share this comment


    Link to comment
    Share on other sites

    8 minutes ago, The Computer Audiophile said:

    I've never seen a downloadable DD+ music file. Have you?

    Oh wait, I have sen a couple MP4 DD+.

    Right, you're only into music, forgot..🙂

    But as for myself, I'm also big into music concerts, as well as movies. Content is available from various sources..

     

    BTW, I predict: Within a year, U will have a high-end projector and a retractable screen to complete your system..😉

    Share this comment


    Link to comment
    Share on other sites

    On 4/23/2022 at 11:40 PM, El Guapo said:

    You didn't miss anything. 😅 

     

    Media players' capabilities and video format limitations are two major issues. 

    • For Kodi, unfortunately the max output channel is 7.1. The JRiver can support many audio channels but it's just for audio. The video playback is still limited to 8 audio channels.
    • Most of the video file formats are only support / contain 8 uncompressed audio channels.

    So that's why I choose DaVinci Resolve as a solution on PC for editing and playback. Or use Resolve to export .mov with 16ch, 24/48 LPCM and playback from QuickTime for Windows.

    1. Go Workspace: Switch to Page: Deliver 

    1661616119_Image2022-4-24at12_03PM.thumb.jpg.e02ff24779af9cfc124b9d40a3a2f941.jpg

     

    2. Click video tab and select QuickTime + H.264

     

    3. Click audio tab and select 24bit LPCM. Add all of the 16 buses. Check 'Render one track per channel' and 'Render as discrete audio track' then add to / start the render queue:

    751357934_Image2022-4-24at12_04PM.thumb.jpg.9a8cdb781ce8c7a191e97a926db25473.jpg

     

    I don't know why JRiver didn't use the QuickTime engine for playback the video with 16ch LPCM audio...🤔

     

     

    Di you see the JRiver 30.0.32 update for Windows?

     

     

    30.0.32 (11/15/2022)

    1. Fixed: The links toolbar could crop some buttons since the addition of Spotlight even when there was space for more.
    2. Fixed: The option at the top of smartlists to expand links was not working properly.  Now it changes the visible files.
    3. Changed: Links are expanded when adding files to a playlist (instead of when viewing since the view should map exactly to the actual files).
    4. Changed: Pulled in the Modern Cards Dark updated frame borders from Marko (thanks!).
    5. Changed: Updated German translation file (thanks Bytestar).
    6. Fixed: (Possibly fixed) bda tuners could crash when recording is finished.
    7. Changed: Play Doctor does not play a local file first when Include Files From Cloudplay option is set to 100%.
    8. Fixed: Play Doctor would fail to get any Cloudplay files in some circumstances.
    9. Changed: Updated LAV Filters to 0.77.1, for improved performance, compatibility, and bugfixes.
    10. Fixed: Video files (and audio files using the video engine, eg. MKA) with more then 8 audio channels did not work.
     

    Share this comment


    Link to comment
    Share on other sites

    7 hours ago, The Computer Audiophile said:

    10. Fixed: Video files (and audio files using the video engine, eg. MKA) with more then 8 audio channels did not work.

    Will try! Thanks for the info. I didn’t follow this issue for a while. 😅

    Share this comment


    Link to comment
    Share on other sites

    Is there a Mac-only (or Mac + linux) way to go from a Blu-ray Disc to individual files that the Dolby Reference Player (DRP) can play?

     

    I tried makemkv to make a backup of the blu-ray and then DVDAE to extract the truehd/mlp files but DRP did not like the way that they were split. MMH does a an unspilt mlp file it's unspilt and windows.

    Share this comment


    Link to comment
    Share on other sites

    30 minutes ago, mkt said:

    Is there a Mac-only (or Mac + linux) way to go from a Blu-ray Disc to individual files that the Dolby Reference Player (DRP) can play?

     

    I tried makemkv to make a backup of the blu-ray and then DVDAE to extract the truehd/mlp files but DRP did not like the way that they were split. MMH does a an unspilt mlp file it's unspilt and windows.

    I’ll see if I can make it work. 
     

    what happened in DRP when you tried to play the mlp?

    Share this comment


    Link to comment
    Share on other sites

    Opening individual files (except for the first one) gives

    image.thumb.png.b23f8252768d38f7a8990127a78ebeee.png

    when the 16 channel option is set

    image.png.fb44b90a9ac1188ea66b5f14b2b14753.png

    They open without error if an option other than "16 channel" is selected. So opening with individual files with Auto works and I can then switch to 16 channel to get atmos, but playlists don't work.   

     

    I might try with truehd downloads.

    Share this comment


    Link to comment
    Share on other sites

    18 minutes ago, mkt said:

    Opening individual files (except for the first one) gives

    image.thumb.png.b23f8252768d38f7a8990127a78ebeee.png

    when the 16 channel option is set

    image.png.fb44b90a9ac1188ea66b5f14b2b14753.png

    They open without error if an option other than "16 channel" is selected. So opening with individual files with Auto works and I can then switch to 16 channel to get atmos, but playlists don't work.   

     

    I might try with truehd downloads.

    Ah yes. This is a known issue that the developer of mkvtoolnix refuses to fix. Even with a PC you will run into this issue. 
     

    Many people play the extracted album as a whole, into Audacity and capture as WAV. Then split it with a cue sheet. Then you can play it in any app that supports WAV and multichannel. 
     

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

    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...