This seems to be a semi-popular topic, but I don't think my specifc question has previously been answered.
With lord of the rings 6.1 dts-hd-ma audio
Code:
C:\> eac3to lotr.mkv
MKV, 1 video track, 5 audio tracks, 5 subtitle tracks, 2:07:41, 24p /1.001
1: h264/AVC, English, 1080p24 /1.001 (16:9)
2: DTS Master Audio, English, 6.1 channels, 24 bits, 48kHz
(core: DTS-ES, 6.1 channels, 24 bits, 1509kbps, 48kHz)
"Surround 6.1"
...
I decode it to flac (arcsoft 1.1.0.0)
Code:
C:\> eac3to lotr.mkv 1:lord_of_the_rings.flac
What order will the tracks be in the flac file for example if I open it in audacity?
I have verified that the flac is bit-for-bit identical (including channel order) to the makemkv decode results.
This post on the makemkv forum says that the channel order should therefore be
L R C LFE Ls Rs Cs
However, if I produce my own 7 channel flac file (with libsoundfile/audiolab), I find that downmixing it with eac3to
Code:
eac3to my_7_channel.flac my_7_channel.stereo.flac -downstereo
emperically uses the following matrix
Code:
[[ 1. 0. 0.7071 0. 0.7071 1. 0. ]
[ 0. 1. 0.7071 0. 0.7071 0. 1. ]]
which suggests that it is interpeting my file to have the order
L R C LFE Cs Ls Rs
Is this discrepancy due to differing channel mask between my file and that created by eac3to? Or is my first conclusion incorrect that eac3to places the centre surround channel last in the flac when decoding from dts-hd-ma?