EncodingOptions.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. namespace MediaBrowser.Model.Configuration
  3. {
  4. public class EncodingOptions
  5. {
  6. public int EncodingThreadCount { get; set; }
  7. public string TranscodingTempPath { get; set; }
  8. public double DownMixAudioBoost { get; set; }
  9. public bool EnableThrottling { get; set; }
  10. public int ThrottleDelaySeconds { get; set; }
  11. public string HardwareAccelerationType { get; set; }
  12. public string EncoderAppPath { get; set; }
  13. public string VaapiDevice { get; set; }
  14. public int H264Crf { get; set; }
  15. public string H264Preset { get; set; }
  16. public bool EnableHardwareEncoding { get; set; }
  17. public bool EnableSubtitleExtraction { get; set; }
  18. public string[] HardwareDecodingCodecs { get; set; }
  19. public EncodingOptions()
  20. {
  21. DownMixAudioBoost = 2;
  22. EnableThrottling = true;
  23. ThrottleDelaySeconds = 180;
  24. EncodingThreadCount = -1;
  25. VaapiDevice = "/dev/dri/card0";
  26. H264Crf = 23;
  27. EnableHardwareEncoding = true;
  28. EnableSubtitleExtraction = true;
  29. HardwareDecodingCodecs = new string[] { "h264", "vc1" };
  30. }
  31. }
  32. }