update live tv transcoding params

This commit is contained in:
Luke Pulverenti
2016-10-22 15:21:50 -04:00
parent 10383a90e6
commit 7e05f03f09
5 changed files with 25 additions and 9 deletions

View File

@@ -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)