mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 15:28:23 +00:00
add mpdecimate option
This commit is contained in:
parent
26f6f594ce
commit
af02f9d692
5 changed files with 18 additions and 0 deletions
|
|
@ -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()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue