|  | @@ -406,7 +406,13 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              if (string.Equals(codec, "aac", StringComparison.OrdinalIgnoreCase))
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  | -                return "aac -strict experimental";
 | 
	
		
			
				|  |  | +                // Use libfdk_aac for better audio quality if using custom build of FFmpeg which has fdk_aac support
 | 
	
		
			
				|  |  | +                if (_mediaEncoder.SupportsEncoder("libfdk_aac"))
 | 
	
		
			
				|  |  | +                {
 | 
	
		
			
				|  |  | +                    return "libfdk_aac";
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                return "aac";
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              if (string.Equals(codec, "mp3", StringComparison.OrdinalIgnoreCase))
 |