2014-12-21 12:40:37 -07:00
namespace MediaBrowser.Model.Configuration
{
public class EncodingOptions
{
2015-07-30 18:52:11 -07:00
public int EncodingThreadCount { get ; set ; }
2014-12-21 12:40:37 -07:00
public string TranscodingTempPath { get ; set ; }
public double DownMixAudioBoost { get ; set ; }
2015-03-30 09:16:34 -07:00
public bool EnableThrottling { get ; set ; }
2016-01-08 21:27:58 -07:00
public int ThrottleDelaySeconds { get ; set ; }
2015-11-26 21:34:11 -07:00
public string HardwareAccelerationType { get ; set ; }
2016-06-19 23:19:28 -07:00
public string EncoderAppPath { get ; set ; }
2016-08-23 09:31:16 -07:00
public string VaapiDevice { get ; set ; }
2016-09-04 08:01:31 -07:00
public int H264Crf { get ; set ; }
public string H264Preset { get ; set ; }
2017-09-16 23:42:23 -07:00
public string DeinterlaceMethod { get ; set ; }
2017-06-11 23:11:19 -07:00
public bool EnableHardwareEncoding { get ; set ; }
2017-08-23 12:45:40 -07:00
public bool EnableSubtitleExtraction { get ; set ; }
2014-12-21 12:40:37 -07:00
2017-08-12 12:09:13 -07:00
public string [ ] HardwareDecodingCodecs { get ; set ; }
2014-12-21 12:40:37 -07:00
public EncodingOptions ( )
{
DownMixAudioBoost = 2 ;
2015-03-30 09:16:34 -07:00
EnableThrottling = true ;
2016-01-08 21:27:58 -07:00
ThrottleDelaySeconds = 180 ;
2015-07-30 18:52:11 -07:00
EncodingThreadCount = - 1 ;
2017-09-23 18:03:46 -07: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 08:01:31 -07:00
H264Crf = 23 ;
2017-06-11 23:11:19 -07:00
EnableHardwareEncoding = true ;
2017-08-23 12:45:40 -07:00
EnableSubtitleExtraction = true ;
2017-08-12 22:01:34 -07:00
HardwareDecodingCodecs = new string [ ] { "h264" , "vc1" } ;
2014-12-21 12:40:37 -07:00
}
}
}