<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">вс, 7 окт. 2018 г. в 16:42, Karl Ove Hufthammer <<a href="mailto:karl@huftis.org">karl@huftis.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Alexander E. Patrakov skreiv 07.10.2018 09:44:<br>
><br>
> I don’t understand why this is happening. Shouldn’t<br>
> ‘remixing-use-all-sink-channels = no’ just affect *upmixing* of<br>
> sound,<br>
> and leave 5.1 material alone?<br>
><br>
><br>
> This is a known bug that appears because there are two 5.1 standards: <br>
> proper 5.1 and 5.1 Side. The video player (I guess you use mpv) says: <br>
> the extra two channels have to come from the side.<br>
<br>
Looks like you’re right. If I run ‘ffprobe’ on my 5.1 test file, it returns:<br>
<br>
Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / <br>
0x0086), 48000 Hz, 5.1(side), s32p (24 bit)<br>
<br>
So the video file (and mpv) seems to use the ‘5.1(side)’ standard. <br>
(Which is a bit strange, since this is supposed to be a video file to <br>
test a normal 5.1 setup, AFAICS.)<br></blockquote><div><br></div><div>(speaking with my "DTS encoder author" hat on)</div><div><br></div><div>The issue is that it is a DTS file. DTS uses completely different channel names than what's found in PulseAudio source. The proper normative reference is:</div><div><br></div><div><a href="https://www.etsi.org/deliver/etsi_ts/102100_102199/102114/01.03.01_60/ts_102114v010301p.pdf">https://www.etsi.org/deliver/etsi_ts/102100_102199/102114/01.03.01_60/ts_102114v010301p.pdf</a><br></div><div>page 19, table 5.4 (note that the presence of the LFE channel is transmitted separately).</div><div><br></div><div>Your file uses AMODE=0b001001=9, so the list of channels is: "Center", "Left", "Right", "Surround Left", "Surround Right". And there is also a 64x downsampled LFE channel. FFMmpeg-based decoders map "Surround" to "Side" because "Rear" also exists in other channel layouts and means something different. There is no way in DTS to express a layout with "Rear" but no "Surround" channels.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
> But your system does not have speakers there, it has them on the rear. <br>
> So PulseAudio attempts to remix. In fact, sound both with and without <br>
> remixing-use-all-sink-channels is wrong.<br>
<br>
What’s wrong about the remixing when one uses <br>
‘remixing-use-all-sink-channels = yes’?<br></blockquote><div><br></div><div>The rear channels will get not a copy of the side, but an average of front and side.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Alexander E. Patrakov</div></div></div></div>