Extract DoVi thumbnail at 4000nit (#12771)

This commit is contained in:
gnattu 2024-10-04 20:51:17 +08:00 committed by GitHub
parent 3edd6ab767
commit 18a621ec25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -701,8 +701,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
{
if (SupportsFilter("tonemapx"))
{
var peak = videoStream.VideoRangeType == VideoRangeType.DOVI ? "400" : "100";
enableHdrExtraction = true;
filters.Add("tonemapx=tonemap=bt2390:desat=0:peak=100:t=bt709:m=bt709:p=bt709:format=yuv420p");
filters.Add($"tonemapx=tonemap=bt2390:desat=0:peak={peak}:t=bt709:m=bt709:p=bt709:format=yuv420p");
}
else if (SupportsFilter("zscale") && videoStream.VideoRangeType != VideoRangeType.DOVI)
{