jellyfin-server/MediaBrowser.Model/Configuration/EncodingOptions.cs

37 lines
1.4 KiB
C#
Raw Normal View History

2014-12-21 19:40:37 +00:00

namespace MediaBrowser.Model.Configuration
{
public class EncodingOptions
{
2015-07-31 01:52:11 +00:00
public int EncodingThreadCount { get; set; }
2014-12-21 19:40:37 +00:00
public string TranscodingTempPath { get; set; }
public double DownMixAudioBoost { get; set; }
public bool EnableThrottling { get; set; }
2016-01-09 04:27:58 +00:00
public int ThrottleDelaySeconds { get; set; }
2015-11-27 04:34:11 +00:00
public string HardwareAccelerationType { get; set; }
2016-06-20 06:19:28 +00:00
public string EncoderAppPath { get; set; }
2016-08-23 16:31:16 +00:00
public string VaapiDevice { get; set; }
2016-09-04 15:01:31 +00:00
public int H264Crf { get; set; }
public string H264Preset { get; set; }
2017-09-17 06:42:23 +00:00
public string DeinterlaceMethod { get; set; }
public bool EnableHardwareEncoding { get; set; }
public bool EnableSubtitleExtraction { get; set; }
2014-12-21 19:40:37 +00:00
2017-08-12 19:09:13 +00:00
public string[] HardwareDecodingCodecs { get; set; }
2014-12-21 19:40:37 +00:00
public EncodingOptions()
{
DownMixAudioBoost = 2;
EnableThrottling = true;
2016-01-09 04:27:58 +00:00
ThrottleDelaySeconds = 180;
2015-07-31 01:52:11 +00:00
EncodingThreadCount = -1;
2017-09-24 01:03:46 +00:00
// This is a DRM device that is almost guaranteed to be there on every intel platform, plus it's the default one in ffmpeg if you don't specify anything
VaapiDevice = "/dev/dri/renderD128";
2016-09-04 15:01:31 +00:00
H264Crf = 23;
EnableHardwareEncoding = true;
EnableSubtitleExtraction = true;
2017-08-13 05:01:34 +00:00
HardwareDecodingCodecs = new string[] { "h264", "vc1" };
2014-12-21 19:40:37 +00:00
}
}
}