mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
add mpdecimate option
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user