mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Backport pull request #11774 from jellyfin/release-10.9.z
Apply audio boost when downmixing regardless of downmixalgo Original-merge: 06a5ddda5e6123dab6608f8907c8976a92e398e2 Merged-by: nielsvanvelzen <nielsvanvelzen@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
		
							parent
							
								
									e7145acd56
								
							
						
					
					
						commit
						c7e0be3c3b
					
				@ -2631,10 +2631,14 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
			
		||||
                && state.AudioStream.Channels.HasValue
 | 
			
		||||
                && state.AudioStream.Channels.Value == 6)
 | 
			
		||||
            {
 | 
			
		||||
                if (!encodingOptions.DownMixAudioBoost.Equals(1))
 | 
			
		||||
                {
 | 
			
		||||
                    filters.Add("volume=" + encodingOptions.DownMixAudioBoost.ToString(CultureInfo.InvariantCulture));
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                switch (encodingOptions.DownMixStereoAlgorithm)
 | 
			
		||||
                {
 | 
			
		||||
                    case DownMixStereoAlgorithms.Dave750:
 | 
			
		||||
                        filters.Add("volume=4.25");
 | 
			
		||||
                        filters.Add("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");
 | 
			
		||||
                        break;
 | 
			
		||||
                    case DownMixStereoAlgorithms.NightmodeDialogue:
 | 
			
		||||
@ -2642,11 +2646,6 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
			
		||||
                        break;
 | 
			
		||||
                    case DownMixStereoAlgorithms.None:
 | 
			
		||||
                    default:
 | 
			
		||||
                        if (!encodingOptions.DownMixAudioBoost.Equals(1))
 | 
			
		||||
                        {
 | 
			
		||||
                            filters.Add("volume=" + encodingOptions.DownMixAudioBoost.ToString(CultureInfo.InvariantCulture));
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        break;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user