diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-08-19 16:28:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-19 16:28:43 -0400 |
| commit | 1bce9a89b6fe6b37cddfc13f6c8ed9bf570a76f5 (patch) | |
| tree | 7e3193614c5a132ae63034c2bb7e07956a5670e6 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | d99278da1dcac4d3c60739e864597aa01f916636 (diff) | |
| parent | d95c04787cc4486f4ea5caaef20f6ac407a3f84a (diff) | |
Merge pull request #1433 from fhriley/h265
Add support for encoding with libx265 and hevc_nvenc
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 1f78f5afc..1054badd9 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -154,7 +154,12 @@ namespace MediaBrowser.Api.Playback return Path.Combine(folder, filename + ext); } - protected virtual string GetDefaultH264Preset() => "superfast"; + protected readonly CultureInfo UsCulture = new CultureInfo("en-US"); + + protected virtual string GetDefaultEncoderPreset() + { + return "superfast"; + } private async Task AcquireResources(StreamState state, CancellationTokenSource cancellationTokenSource) { |
