diff options
| author | gnattu <gnattuoc@me.com> | 2024-08-01 07:45:16 +0800 |
|---|---|---|
| committer | gnattu <gnattuoc@me.com> | 2024-08-01 07:45:16 +0800 |
| commit | 3788ccd447ffaa4638f3fe5d235c5bb92b809692 (patch) | |
| tree | 3c753a6380567f2fc6be7a640aab7c43ab2f5318 /MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs | |
| parent | c171b6def22b32740654d7830f4ef6440854c404 (diff) | |
Add comments for Dave750/NightmodeDialogue 7.1 downmix
Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs b/MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs index 64a0f5992..749f87271 100644 --- a/MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/DownMixAlgorithmsHelper.cs @@ -15,8 +15,10 @@ public static class DownMixAlgorithmsHelper public static readonly Dictionary<(DownMixStereoAlgorithms, string), string> AlgorithmFilterStrings = new() { { (DownMixStereoAlgorithms.Dave750, "5.1"), "pan=stereo|c0=0.5*c2+0.707*c0+0.707*c4+0.5*c3|c1=0.5*c2+0.707*c1+0.707*c5+0.5*c3" }, + // Use AC-4 algorithm to downmix 7.1 inputs to 5.1 first { (DownMixStereoAlgorithms.Dave750, "7.1"), "pan=5.1(side)|c0=c0|c1=c1|c2=c2|c3=c3|c4=0.707*c4+0.707*c6|c5=0.707*c5+0.707*c7,pan=stereo|c0=0.5*c2+0.707*c0+0.707*c4+0.5*c3|c1=0.5*c2+0.707*c1+0.707*c5+0.5*c3" }, { (DownMixStereoAlgorithms.NightmodeDialogue, "5.1"), "pan=stereo|c0=c2+0.30*c0+0.30*c4|c1=c2+0.30*c1+0.30*c5" }, + // Use AC-4 algorithm to downmix 7.1 inputs to 5.1 first { (DownMixStereoAlgorithms.NightmodeDialogue, "7.1"), "pan=5.1(side)|c0=c0|c1=c1|c2=c2|c3=c3|c4=0.707*c4+0.707*c6|c5=0.707*c5+0.707*c7,pan=stereo|c0=c2+0.30*c0+0.30*c4|c1=c2+0.30*c1+0.30*c5" }, { (DownMixStereoAlgorithms.Rfc7845, "3.0"), "pan=stereo|c0=0.414214*c2+0.585786*c0|c1=0.414214*c2+0.585786*c1" }, { (DownMixStereoAlgorithms.Rfc7845, "quad"), "pan=stereo|c0=0.422650*c0+0.366025*c2+0.211325*c3|c1=0.422650*c1+0.366025*c3+0.211325*c2" }, |
