mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-31 20:24:21 -04:00
Extract DoVi thumbnail at 4000nit (#12771)
This commit is contained in:
parent
3edd6ab767
commit
18a621ec25
@ -701,8 +701,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
{
|
{
|
||||||
if (SupportsFilter("tonemapx"))
|
if (SupportsFilter("tonemapx"))
|
||||||
{
|
{
|
||||||
|
var peak = videoStream.VideoRangeType == VideoRangeType.DOVI ? "400" : "100";
|
||||||
enableHdrExtraction = true;
|
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)
|
else if (SupportsFilter("zscale") && videoStream.VideoRangeType != VideoRangeType.DOVI)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user