Page 1 of 1

Making on MKV with the right Atmos codec for AppleTV through Infuse or MrMC

Posted: Fri Sep 04, 2020 3:49 pm
by lblando
Hello,

This might be a known issue, but I wanted to post to see if the experts here might know/have an answer.

In short, whereas mediainfo shows a file with the "right" codec to play in Dolby Atmos on an AppleTV being served from a player such as Infuse, the Atmos part is stripped somewhere on the way. Thus, to try and solve the issue, I created one mkv file that contains only one 1080p video signal and one audio signal, and on the surface, through mediainfo, it seems to have the right codec.

It stills does not show up as "atmos" on my receiver.

I took one mkv with two/three audio tracks and I just simply created one with one of them. Details can be found here: https://community.firecore.com/t/dolby- ... work/21547

and also, the full mediainfo dump of the source and result file.

Any help would be much appreciated.
Thanks!
LB

Code: Select all

$ mediainfo dd-thd_Horizon_1080p_TrueHD-DD.m2ts
General
ID : 1 (0x1)
Complete name : dd-thd_Horizon_1080p_TrueHD-DD.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 351 MiB
Duration : 1 min 52 s
Overall bit rate mode : Variable
Overall bit rate : 26.2 Mb/s
Maximum Overall bit rate : 35.5 Mb/s

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : 27
Duration : 1 min 52 s
Bit rate mode : Variable
Bit rate : 23.3 Mb/s
Maximum bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.469
Stream size : 312 MiB (89%)
Language : English

Audio #1
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3 MLP FBA 16-ch
Format/Info : Audio Coding 3 + Meridian Lossless Packing FBA with 16-channel presentation
Commercial name : Dolby TrueHD with Dolby Atmos
Muxing mode : Stream extension
Codec ID : 131
Duration : 1 min 52 s
Bit rate mode : Variable
Bit rate : 640 kb/s
Maximum bit rate : 7 815 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 8.57 MiB (2%)
Service kind : Complete Main
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

Audio #2
ID : 4353 (0x1101)
Menu ID : 1 (0x1)
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Format profile : Blu-ray Disc
Muxing mode : Stream extension
Codec ID : 132
Duration : 1 min 52 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 15.4 MiB (4%)
Service kind : Complete Main
Complexity index : 12
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

$ mediainfo new_Horizon.mkv
General
Unique ID : 23451725425904218334705668296076359510 (0x11A4A3559358DD7B17B4642A7D9AF756)
Complete name : new_Horizon.mkv
Format : Matroska
Format version : Version 4
File size : 233 MiB
Duration : 1 min 52 s
Overall bit rate mode : Variable
Overall bit rate : 17.4 Mb/s
Encoded date : UTC 2020-09-03 22:03:57
Writing application : mkvmerge v49.0.0 (‘Sick Of Losing Soulmates’) 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 min 52 s
Bit rate mode : Variable
Bit rate : 16.2 Mb/s
Maximum bit rate : 40.0 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.326
Stream size : 217 MiB (93%)
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Format profile : Blu-ray Disc
Codec ID : A_EAC3
Duration : 1 min 52 s
Bit rate mode : Constant
Bit rate : 1 152 kb/s
Channel(s) : 8 channels
Channel layout : L R C LFE Ls Rs Lb Rb
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 15.4 MiB (7%)
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 12
Number of dynamic objects : 11
Bed channel count : 1 channel
Bed channel configuration : LFE

Re: Making on MKV with the right Atmos codec for AppleTV through Infuse or MrMC

Posted: Fri Sep 04, 2020 7:38 pm
by dcoke22
When I look with mediainfo at a MKV file I have with a Dolby Atmos audio track, it looks different than yours.

Code: Select all

Audio #1
ID                                       : 2
ID in the original source medium         : 4352 (0x1100)
Format                                   : MLP FBA 16-ch
Format/Info                              : Meridian Lossless Packing FBA with 16-channel presentation
Commercial name                          : Dolby TrueHD with Dolby Atmos
Codec ID                                 : A_TRUEHD
Duration                                 : 2 h 21 min
Bit rate mode                            : Variable
Bit rate                                 : 4 279 kb/s
Maximum bit rate                         : 7 509 kb/s
Channel(s)                               : 8 channels
Channel layout                           : L R C LFE Ls Rs Lb Rb
Sampling rate                            : 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 4.22 GiB (17%)
Title                                    : Surround 7.1
Language                                 : English
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray
Number of dynamic objects                : 11
Bed channel count                        : 1 channel
Bed channel configuration                : LFE
The most notable difference is the 'Compress mode' says Lossless. Yours says Lossy.

Re: Making on MKV with the right Atmos codec for AppleTV through Infuse or MrMC

Posted: Thu Dec 03, 2020 5:27 pm
by iamlilysdad
I am having a similar issue with LotR. When I use MakeMKV to create an MKV I see Dolby Vision and Atmos as expected (same as the screenshot in the second post) and it plays back in Plex on my SHIELD Pro just fine.

When I go through the process of creating a .ts file using any method I've come across I get results like in the first post (lossy, AC3 + Meridian, etc). This happens even if I use the audio track from the mkv that makemkv made.

Any ideas.

See this post for more info. https://www.makemkv.com/forum/viewtopic ... 05#p100754

Re: Making on MKV with the right Atmos codec for AppleTV through Infuse or MrMC

Posted: Thu Dec 03, 2020 6:45 pm
by dcoke22
I've never used tsmuxer, but it sure seems like tsmuxer doesn't support lossless TrueHD audio tracks.

https://www.makemkv.com/forum/viewtopic ... 260#p95673
RESET_9999's process seems to acknowledge tsmuxer's limitation and tries to overcome it with some magic that isn't clear to me.

https://www.makemkv.com/forum/viewtopic ... 50#p100470
DaMacFunkin seems to have a slightly different process, but may be trying to achieve a different goal.

The most recent build of tsmuxer seems to be from November 17, 2020. https://github.com/justdan96/tsMuxer Maybe you need a newer version?

Re: Making on MKV with the right Atmos codec for AppleTV through Infuse or MrMC

Posted: Thu Dec 03, 2020 7:26 pm
by iamlilysdad
dcoke22 wrote:
Thu Dec 03, 2020 6:45 pm
I've never used tsmuxer, but it sure seems like tsmuxer doesn't support lossless TrueHD audio tracks.

https://www.makemkv.com/forum/viewtopic ... 260#p95673
RESET_9999's process seems to acknowledge tsmuxer's limitation and tries to overcome it with some magic that isn't clear to me.

https://www.makemkv.com/forum/viewtopic ... 50#p100470
DaMacFunkin seems to have a slightly different process, but may be trying to achieve a different goal.

The most recent build of tsmuxer seems to be from November 17, 2020. https://github.com/justdan96/tsMuxer Maybe you need a newer version?
Yeah those were the steps I followed. Step 3 says it should accept the Atmos track (and it does display in a way that shows it sees the Atmos "stuff"). I had done these steps a few months ago with another movie and it worked ok. Maybe I should do that movie again just to verify the steps work.

Given that the mkv that makemkv spits out works exactly as expected I'm thinking that makemkv is doing some sort of muxing to prevent issues like what I'm seeing. No idea though, I'm far from an expert on this subject. I would be totally fine with just using the mkv files if I didn't want wider device support for playback.