Skip to content

Commit

Permalink
Extract DoVi thumbnail at 4000nit (jellyfin#12771)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnattu authored Oct 4, 2024
1 parent 3edd6ab commit 18a621e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,9 @@ private async Task<string> ExtractImageInternal(
{
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)
{
Expand Down

0 comments on commit 18a621e

Please sign in to comment.