mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Enable BWDIF VideoToolbox deint filter when available (#12634)
This commit is contained in:
@@ -3237,9 +3237,12 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
if (hwDeintSuffix.Contains("videotoolbox", StringComparison.OrdinalIgnoreCase))
|
if (hwDeintSuffix.Contains("videotoolbox", StringComparison.OrdinalIgnoreCase))
|
||||||
{
|
{
|
||||||
|
var useBwdif = options.DeinterlaceMethod == DeinterlaceMethod.bwdif && _mediaEncoder.SupportsFilter("bwdif_videotoolbox");
|
||||||
|
|
||||||
return string.Format(
|
return string.Format(
|
||||||
CultureInfo.InvariantCulture,
|
CultureInfo.InvariantCulture,
|
||||||
"yadif_videotoolbox={0}:-1:0",
|
"{0}_videotoolbox={1}:-1:0",
|
||||||
|
useBwdif ? "bwdif" : "yadif",
|
||||||
doubleRateDeint ? "1" : "0");
|
doubleRateDeint ? "1" : "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||||||
"flip_vulkan",
|
"flip_vulkan",
|
||||||
// videotoolbox
|
// videotoolbox
|
||||||
"yadif_videotoolbox",
|
"yadif_videotoolbox",
|
||||||
|
"bwdif_videotoolbox",
|
||||||
"scale_vt",
|
"scale_vt",
|
||||||
"transpose_vt",
|
"transpose_vt",
|
||||||
"overlay_videotoolbox",
|
"overlay_videotoolbox",
|
||||||
|
|||||||
Reference in New Issue
Block a user