mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-30 23:18:09 +00:00
separate deinterlacing params by video codec
This commit is contained in:
@@ -796,12 +796,13 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
|
||||
if (videoStream.IsInterlaced)
|
||||
{
|
||||
if (request.DeInterlace)
|
||||
if (state.DeInterlace(videoStream.Codec))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (videoStream.IsAnamorphic ?? false)
|
||||
{
|
||||
if (request.RequireNonAnamorphic)
|
||||
@@ -1357,7 +1358,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
filters.Add("hwupload");
|
||||
}
|
||||
|
||||
if (state.DeInterlace && !string.Equals(outputVideoCodec, "h264_vaapi", StringComparison.OrdinalIgnoreCase))
|
||||
if (state.DeInterlace("h264") && !string.Equals(outputVideoCodec, "h264_vaapi", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
if (string.Equals(options.DeinterlaceMethod, "bobandweave", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
@@ -1799,11 +1800,6 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||
state.InternalSubtitleStreamOffset = mediaStreams.Where(i => i.Type == MediaStreamType.Subtitle && !i.IsExternal).ToList().IndexOf(state.SubtitleStream);
|
||||
}
|
||||
|
||||
if (state.VideoStream != null && state.VideoStream.IsInterlaced)
|
||||
{
|
||||
state.DeInterlace = true;
|
||||
}
|
||||
|
||||
EnforceResolutionLimit(state);
|
||||
|
||||
NormalizeSubtitleEmbed(state);
|
||||
|
||||
Reference in New Issue
Block a user