aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Playback/BaseStreamingService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
-rw-r--r--MediaBrowser.Api/Playback/BaseStreamingService.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs
index 98004dfcb..510808778 100644
--- a/MediaBrowser.Api/Playback/BaseStreamingService.cs
+++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs
@@ -318,7 +318,17 @@ namespace MediaBrowser.Api.Playback
if (videoCodec.Equals("libx264", StringComparison.OrdinalIgnoreCase))
{
- return "-preset superfast";
+ switch (GetQualitySetting())
+ {
+ case EncodingQuality.HighSpeed:
+ return "-preset ultrafast";
+ case EncodingQuality.HighQuality:
+ return "-preset superfast";
+ case EncodingQuality.MaxQuality:
+ return "-preset superfast";
+ default:
+ throw new Exception("Unrecognized MediaEncodingQuality value.");
+ }
}
if (videoCodec.Equals("mpeg4", StringComparison.OrdinalIgnoreCase))