diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-08-23 16:13:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-23 16:13:36 -0400 |
| commit | 2bd37fd2c25cd740f4e9f69c4f9a766b10467ded (patch) | |
| tree | 8e847401c7f4f1d3bb4e4a873e1c5d9c1a319f22 /MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | |
| parent | 325ec18b1da59c86f13f05b20dd14491f0e83fe5 (diff) | |
| parent | 5e0f8fd8c486ac37e487786c10c2d3f9e1293ce8 (diff) | |
Merge pull request #2839 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs')
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index d99103852..736f1b32f 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -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())); |
