| 
					
				 | 
			
			
				@@ -2061,7 +2061,13 @@ namespace MediaBrowser.Controller.MediaEncoding 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // libx265 only accept level option in -x265-params. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // level option may cause libx265 to fail. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // libx265 cannot adjust the given level, just throw an error. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                param += " -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                param += " -x265-params:0 no-scenecut=1:no-open-gop=1:no-info=1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (encodingOptions.EncoderPreset < EncoderPreset.ultrafast) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    // The following params are slower than the ultrafast preset, don't use when ultrafast is selected. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    param += ":subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (string.Equals(videoEncoder, "libsvtav1", StringComparison.OrdinalIgnoreCase) 
			 |