mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Fix thumbnail extraction in DoVi
This commit is contained in:
		
							parent
							
								
									be28f940b7
								
							
						
					
					
						commit
						84c9e7a22b
					
				@ -637,10 +637,15 @@ namespace MediaBrowser.MediaEncoding.Encoder
 | 
				
			|||||||
                filters.Add("thumbnail=n=" + (useLargerBatchSize ? "50" : "24"));
 | 
					                filters.Add("thumbnail=n=" + (useLargerBatchSize ? "50" : "24"));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Use SW tonemap on HDR video stream only when the zscale filter is available.
 | 
					            // Use SW tonemap on HDR10/HLG video stream only when the zscale filter is available.
 | 
				
			||||||
            var enableHdrExtraction = string.Equals(videoStream?.VideoRange, "HDR", StringComparison.OrdinalIgnoreCase) && SupportsFilter("zscale");
 | 
					            var enableHdrExtraction = false;
 | 
				
			||||||
            if (enableHdrExtraction)
 | 
					
 | 
				
			||||||
 | 
					            if ((string.Equals(videoStream?.ColorTransfer, "smpte2084", StringComparison.OrdinalIgnoreCase)
 | 
				
			||||||
 | 
					                || string.Equals(videoStream?.ColorTransfer, "arib-std-b67", StringComparison.OrdinalIgnoreCase))
 | 
				
			||||||
 | 
					                && SupportsFilter("zscale"))
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
					                enableHdrExtraction = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                filters.Add("zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0:peak=100,zscale=t=bt709:m=bt709,format=yuv420p");
 | 
					                filters.Add("zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0:peak=100,zscale=t=bt709:m=bt709,format=yuv420p");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user