mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Force original aspect ratio can be used for QSV subtitle scaling
This commit is contained in:
		
							parent
							
								
									8368815788
								
							
						
					
					
						commit
						7d2bfabb32
					
				@ -1593,15 +1593,13 @@ namespace MediaBrowser.Controller.MediaEncoding
 | 
			
		||||
                    state.VideoStream.Width.Value,
 | 
			
		||||
                    state.VideoStream.Height.Value);
 | 
			
		||||
 | 
			
		||||
                videoSizeParam += ":force_original_aspect_ratio=decrease";
 | 
			
		||||
 | 
			
		||||
                //For QSV, feed it into hardware encoder
 | 
			
		||||
                if (string.Equals(outputVideoCodec, "h264_qsv", StringComparison.OrdinalIgnoreCase))
 | 
			
		||||
                {
 | 
			
		||||
                    //For QSV, feed it into hardware encoder
 | 
			
		||||
                    videoSizeParam += ",hwupload=extra_hw_frames=64";
 | 
			
		||||
                }
 | 
			
		||||
                else 
 | 
			
		||||
                {
 | 
			
		||||
                    videoSizeParam += ":force_original_aspect_ratio=decrease";
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            var mapPrefix = state.SubtitleStream.IsExternal ?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user