2014-12-21 20:40:37 +01:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class EncodingOptions
|
|
|
|
|
{
|
2015-07-31 03:52:11 +02:00
|
|
|
|
public int EncodingThreadCount { get; set; }
|
2014-12-21 20:40:37 +01:00
|
|
|
|
public string TranscodingTempPath { get; set; }
|
|
|
|
|
public double DownMixAudioBoost { get; set; }
|
2015-03-30 18:16:34 +02:00
|
|
|
|
public bool EnableThrottling { get; set; }
|
2016-01-09 05:27:58 +01:00
|
|
|
|
public int ThrottleDelaySeconds { get; set; }
|
2015-11-27 05:34:11 +01:00
|
|
|
|
public string HardwareAccelerationType { get; set; }
|
2016-06-20 08:19:28 +02:00
|
|
|
|
public string EncoderAppPath { get; set; }
|
2016-08-23 18:31:16 +02:00
|
|
|
|
public string VaapiDevice { get; set; }
|
2016-09-04 17:01:31 +02:00
|
|
|
|
public int H264Crf { get; set; }
|
|
|
|
|
public string H264Preset { get; set; }
|
2017-06-12 08:11:19 +02:00
|
|
|
|
public bool EnableHardwareEncoding { get; set; }
|
2017-08-23 21:45:40 +02:00
|
|
|
|
public bool EnableSubtitleExtraction { get; set; }
|
2014-12-21 20:40:37 +01:00
|
|
|
|
|
2017-08-12 21:09:13 +02:00
|
|
|
|
public string[] HardwareDecodingCodecs { get; set; }
|
|
|
|
|
|
2014-12-21 20:40:37 +01:00
|
|
|
|
public EncodingOptions()
|
|
|
|
|
{
|
|
|
|
|
DownMixAudioBoost = 2;
|
2015-03-30 18:16:34 +02:00
|
|
|
|
EnableThrottling = true;
|
2016-01-09 05:27:58 +01:00
|
|
|
|
ThrottleDelaySeconds = 180;
|
2015-07-31 03:52:11 +02:00
|
|
|
|
EncodingThreadCount = -1;
|
2016-08-24 22:14:35 +02:00
|
|
|
|
VaapiDevice = "/dev/dri/card0";
|
2016-09-04 17:01:31 +02:00
|
|
|
|
H264Crf = 23;
|
2017-06-12 08:11:19 +02:00
|
|
|
|
EnableHardwareEncoding = true;
|
2017-08-23 21:45:40 +02:00
|
|
|
|
EnableSubtitleExtraction = true;
|
2017-08-13 07:01:34 +02:00
|
|
|
|
HardwareDecodingCodecs = new string[] { "h264", "vc1" };
|
2014-12-21 20:40:37 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|