Fix pixel format in HEVC RExt SDR transcoding (#12973)

This commit is contained in:
Nyanmisaka 2024-11-06 21:37:47 +08:00 committed by GitHub
parent 3089e9e40a
commit aa08d3f2bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4131,7 +4131,7 @@ namespace MediaBrowser.Controller.MediaEncoding
else if (isD3d11vaDecoder || isQsvDecoder)
{
var isRext = IsVideoStreamHevcRext(state);
var twoPassVppTonemap = isRext;
var twoPassVppTonemap = false;
var doVppFullRangeOut = isMjpegEncoder
&& _mediaEncoder.EncoderVersion >= _minFFmpegQsvVppOutRangeOption;
var doVppScaleModeHq = isMjpegEncoder
@ -4140,6 +4140,12 @@ namespace MediaBrowser.Controller.MediaEncoding
var procampParams = string.Empty;
if (doVppTonemap)
{
if (isRext)
{
// VPP tonemap requires p010 input
twoPassVppTonemap = true;
}
if (options.VppTonemappingBrightness != 0
&& options.VppTonemappingBrightness >= -100
&& options.VppTonemappingBrightness <= 100)