diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-12 02:05:36 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-12-12 02:05:36 -0500 |
| commit | 4999b47b475d248a2e3fa43352bf6057bcb40d9d (patch) | |
| tree | f25271e4e28b4437e467530e3bd27ab358ccf992 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 02938e7bcb0459a44dfa6c9e7dfa2a04be3467be (diff) | |
update transcoding for chrome
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index eacd7999c..64862da60 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -2178,7 +2178,18 @@ namespace MediaBrowser.Api.Playback inputModifier += " " + videoDecoder; } - //inputModifier += " -noaccurate_seek"; + if (state.VideoRequest != null) + { + var videoCodec = GetVideoEncoder(state); + // See if we can save come cpu cycles by avoiding encoding + if (string.Equals(videoCodec, "copy", StringComparison.OrdinalIgnoreCase)) + { + if (string.Equals(state.OutputContainer, "mkv", StringComparison.OrdinalIgnoreCase)) + { + inputModifier += " -noaccurate_seek"; + } + } + } return inputModifier; } |
