EncodingOptions.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace MediaBrowser.Model.Configuration
  2. {
  3. public class EncodingOptions
  4. {
  5. public int EncodingThreadCount { get; set; }
  6. public string TranscodingTempPath { get; set; }
  7. public double DownMixAudioBoost { get; set; }
  8. public bool EnableThrottling { get; set; }
  9. public int ThrottleDelaySeconds { get; set; }
  10. public string HardwareAccelerationType { get; set; }
  11. public string EncoderAppPath { get; set; }
  12. public string VaapiDevice { get; set; }
  13. public int H264Crf { get; set; }
  14. public string H264Preset { get; set; }
  15. public string DeinterlaceMethod { 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. // 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
  26. VaapiDevice = "/dev/dri/renderD128";
  27. H264Crf = 23;
  28. EnableHardwareEncoding = true;
  29. EnableSubtitleExtraction = true;
  30. HardwareDecodingCodecs = new string[] { "h264", "vc1" };
  31. }
  32. }
  33. }