aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-22 15:21:50 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-22 15:21:50 -0400
commit7e05f03f0939543ce01b600358c6f4dfe191e033 (patch)
tree6be2977754aa6cdcc9ecdbbb34626e8b8a29787f /MediaBrowser.Api/Playback/BaseStreamingService.cs
parent10383a90e652c669060ca4f50a51660c15109a4a (diff)
update live tv transcoding params
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs7
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)