mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Apply double rate option to hardware deinterlacers
This commit is contained in:
parent
9dc95074a3
commit
ce51775e74
@ -2120,7 +2120,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
{
|
||||
if (isVaapiH264Encoder)
|
||||
{
|
||||
filters.Add(string.Format(CultureInfo.InvariantCulture, "deinterlace_vaapi"));
|
||||
filters.Add(
|
||||
string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
"deinterlace_vaapi=rate={0}",
|
||||
doubleRateDeinterlace ? "field" : "frame"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -2378,6 +2382,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
if (state.DeInterlace("h264", true))
|
||||
{
|
||||
inputModifier += " -deint 1";
|
||||
|
||||
if (!encodingOptions.DeinterlaceDoubleRate || (videoStream?.RealFrameRate ?? 60) > 30)
|
||||
{
|
||||
inputModifier += " -drop_second_field 1";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user