mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +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))
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user