Enable BWDIF VideoToolbox deint filter when available (#12634)

This commit is contained in:
gnattu 2024-09-12 23:52:24 +08:00 committed by GitHub
parent 6deebb4498
commit 0ff7f28753
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -3237,9 +3237,12 @@ namespace MediaBrowser.Controller.MediaEncoding
if (hwDeintSuffix.Contains("videotoolbox", StringComparison.OrdinalIgnoreCase))
{
var useBwdif = options.DeinterlaceMethod == DeinterlaceMethod.bwdif && _mediaEncoder.SupportsFilter("bwdif_videotoolbox");
return string.Format(
CultureInfo.InvariantCulture,
"yadif_videotoolbox={0}:-1:0",
"{0}_videotoolbox={1}:-1:0",
useBwdif ? "bwdif" : "yadif",
doubleRateDeint ? "1" : "0");
}

View File

@ -137,6 +137,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
"flip_vulkan",
// videotoolbox
"yadif_videotoolbox",
"bwdif_videotoolbox",
"scale_vt",
"transpose_vt",
"overlay_videotoolbox",