Page 1 of 1

Support A_MS/ACM as produced by MakeMKV

Posted: Fri Mar 25, 2022 7:53 pm
by Bullwinkle
This audio codec ID needs to be supported. :salute: tebasuna51

Support A_MS/ACM as produced by MakeMKV

Posted: Fri Mar 25, 2022 10:43 pm
by Guest 2
Bullwinkle wrote:
Fri Mar 25, 2022 7:53 pm
This audio codec ID needs to be supported. :salute: tebasuna51
AFAIK, if you force MakeMKV putting multi-channel audio in A_PCM/INT container, you will loose channel layout information.

Set "Expert mode" in MakeMKV preferences.

Then go to last tab (Advanced) and select FLAC profile.

Otherwise, if you already have a A_PCM/INT file, use Header editor of MKVToolnix GUI.

Scroll down to the audio track that contains the LPCM audio and change the Codec ID from "A_MS/ACM" to "A_PCM/INT/LIT".

Third option is use eac3to to convert the audio stream.

Support A_MS/ACM as produced by MakeMKV

Posted: Sat Mar 26, 2022 7:15 am
by Rocky
Why is any of that better than to just support A_MS/ACM directly?

Just changing the codec ID does not work. I tried.

Maybe I am missing your point.

Support A_MS/ACM as produced by MakeMKV

Posted: Sat Mar 26, 2022 8:59 am
by Guest 2
Rocky wrote:
Sat Mar 26, 2022 7:15 am
Why is any of that better than to just support A_MS/ACM directly?
AFAIK, just read never tried, ACM from MakeMKV loses channel order.

That's why I always use FLAC profile.

Support A_MS/ACM as produced by MakeMKV

Posted: Sat Mar 26, 2022 1:55 pm
by Bullwinkle
I'm sure FLAC profile must be better, but we're concerned with demuxing what is handed to us.

Support A_MS/ACM as produced by MakeMKV

Posted: Mon Mar 28, 2022 6:53 am
by Guest 3
Read some info about this https://forum.doom9.org/showthread.php? ... ost1966534

I think than DGIndex/Demux can create the wav/w64 headers, to insert before RAW data like now do, with the Codec Private data of A_MS/ACM without problems,

Support A_MS/ACM as produced by MakeMKV

Posted: Mon Mar 28, 2022 4:57 pm
by Bullwinkle
Exactly, thank you.

Support A_MS/ACM as produced by MakeMKV

Posted: Tue Mar 29, 2022 6:08 am
by Guest 3
Guest 2 wrote:
Sat Mar 26, 2022 8:59 am
...
That's why I always use FLAC profile.
Maybe is the same.
I don't know if BluRay specs can support some PCM channel mapping different than tsMuxeR supported, but I test BD's created by tsMuxeR loading wav's with different channel layouts and:

Code: Select all

             WAV                    tsMuxeR                MakeMkv
Channels  Map Source                Map m2ts               Map mkv (wav=flac)
--------  -----------------------   --------------------   ----------------------
   2      C LFE                   # L R                   = L R
   2      L R                     = L R                   = L R
   3      L R LFE                 = L R LFE               * L R Cb
   3      L R Cb                  # L R C                 = L R C
   3      L R C                   = L R C                 = L R C
   4      L R LFE Cb              # L C R LFE             * L R C Cb
   4      L R Lb Rb               ~ L R Ls Rs             = L R Ls Rs
   4      L R C LFE               = L C R LFE             * L R C Cb
   4      L R C Cb                # L R Ls Rs             = L R Ls Rs
   5      L R LFE Lb Rb           # L R C Ls Rs           = L R C Ls Rs
   5      L R C LFE Cb            # L R C Ls Rs           = L R C Ls Rs
   5      L R C Lb Rb             ~ L R C Ls Rs           = L R C Ls Rs
   6      L R C LFE Lb Rb         ~ L R C Ls Rs LFE       = L R C Ls Rs LFE
   6      L R C Lb Rb Cb          # L R C Ls Rs LFE       = L R C Ls Rs LFE
   6      L R C Cb Ls Rs          # L R C Ls Rs LFE       = L R C Ls Rs LFE
   7      L R C LFE Lb Rb Cb      # L R C Ls Rs Lb Rb     = L R C Ls Rs Lb Rb
   8      L R C LFE Lb Rb Ls Rs   = L R C Ls Rs Lb Rb LFE = L R C Ls Rs Lb Rb LFE
   8      L R C LFE Ls Rs Tfl Tfr # L R C Ls Rs Lb Rb LFE = L R C Ls Rs Lb Rb LFE

Notes:

~: With less than 7 channels the Lb Rb pair is considered equivalent to Ls Rs, and must be read as Surround channels (not back or side).

#: tsMuxeR seems can't preserve the channel layout in PCM data, only if LFE is present in 3/4 channels the layout is preserved. With 2/5/6/7/8 channels the layout is fix.

*: MakeMKV change the layout (the same for wav and flac) of m2ts, only when flac show a message:
FFMPEG_ERROR: FFENC002: [flac @ 0000015428fe84f0] Channel layout not supported by Flac, output stream will have incorrect channel layout.
FFMPEG_ERROR: FFENC005: [flac @ 0000015428f04f50] Channel layout not supported by Flac, output stream will have incorrect channel layout.
FFMPEG_ERROR: FFENC007: [flac @ 0000015428a5ba80] Channel layout not supported by Flac, output stream will have incorrect channel layout.
The behaviour with created tracks PCM or FLAC is the same