mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Enable BWDIF VideoToolbox deint filter when available (#12634)
This commit is contained in:
parent
6deebb4498
commit
0ff7f28753
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user