add mpdecimate option

This commit is contained in:
Luke Pulverenti
2017-08-23 14:44:40 -04:00
parent 26f6f594ce
commit af02f9d692
5 changed files with 18 additions and 0 deletions

View File

@@ -778,6 +778,11 @@ namespace MediaBrowser.Controller.MediaEncoding
return false;
}
if (state.EnableMpDecimate)
{
return false;
}
if (videoStream.IsInterlaced)
{
if (request.DeInterlace)
@@ -1449,6 +1454,11 @@ namespace MediaBrowser.Controller.MediaEncoding
}
}
if (state.EnableMpDecimate)
{
filters.Add("mpdecimate,setpts=N/FRAME_RATE/TB");
}
if (filters.Count > 0)
{
output += string.Format(" -vf \"{0}\"", string.Join(",", filters.ToArray()));