diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-22 15:21:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-10-22 15:21:50 -0400 |
| commit | 7e05f03f0939543ce01b600358c6f4dfe191e033 (patch) | |
| tree | 6be2977754aa6cdcc9ecdbbb34626e8b8a29787f /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 10383a90e652c669060ca4f50a51660c15109a4a (diff) | |
update live tv transcoding params
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 dc26218a5..16175229b 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -352,6 +352,11 @@ namespace MediaBrowser.Api.Playback return defaultEncoder; } + protected virtual string GetDefaultH264Preset() + { + return "superfast"; + } + /// <summary> /// Gets the video bitrate to specify on the command line /// </summary> @@ -375,7 +380,7 @@ namespace MediaBrowser.Api.Playback } else { - param += "-preset superfast"; + param += "-preset " + GetDefaultH264Preset(); } if (encodingOptions.H264Crf >= 0 && encodingOptions.H264Crf <= 51) |
