expand on hardware decoding options

This commit is contained in:
Luke Pulverenti
2017-08-12 15:09:13 -04:00
parent b7867214ef
commit cf350f3b7e
7 changed files with 23 additions and 72 deletions

View File

@@ -13,9 +13,10 @@ namespace MediaBrowser.Model.Configuration
public string VaapiDevice { get; set; }
public int H264Crf { get; set; }
public string H264Preset { get; set; }
public bool EnableHardwareDecoding { get; set; }
public bool EnableHardwareEncoding { get; set; }
public string[] HardwareDecodingCodecs { get; set; }
public EncodingOptions()
{
DownMixAudioBoost = 2;
@@ -24,8 +25,9 @@ namespace MediaBrowser.Model.Configuration
EncodingThreadCount = -1;
VaapiDevice = "/dev/dri/card0";
H264Crf = 23;
EnableHardwareDecoding = true;
EnableHardwareEncoding = true;
HardwareDecodingCodecs = new string[] { "h264", "mpeg2video", "vc1" };
}
}
}