mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07: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))
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
||||
|
@ -137,6 +137,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
||||
"flip_vulkan",
|
||||
// videotoolbox
|
||||
"yadif_videotoolbox",
|
||||
"bwdif_videotoolbox",
|
||||
"scale_vt",
|
||||
"transpose_vt",
|
||||
"overlay_videotoolbox",
|
||||
|
Loading…
Reference in New Issue
Block a user