EncodingOptions.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 string[] HardwareDecodingCodecs { get; set; }
  18. public EncodingOptions()
  19. {
  20. DownMixAudioBoost = 2;
  21. EnableThrottling = true;
  22. ThrottleDelaySeconds = 180;
  23. EncodingThreadCount = -1;
  24. VaapiDevice = "/dev/dri/card0";
  25. H264Crf = 23;
  26. EnableHardwareEncoding = true;
  27. HardwareDecodingCodecs = new string[] { "h264", "vc1" };
  28. }
  29. }
  30. }