mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-23 21:47:14 -04:00
Extract DoVi thumbnail at 4000nit (#12771)
This commit is contained in:
parent
3edd6ab767
commit
18a621ec25
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue