2
0

EncodingOptions.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. /// <summary>
  12. /// FFmpeg path as set by the user via the UI
  13. /// </summary>
  14. public string EncoderAppPath { get; set; }
  15. /// <summary>
  16. /// The current FFmpeg path being used by the system and displayed on the transcode page
  17. /// </summary>
  18. public string EncoderAppPathDisplay { get; set; }
  19. public string VaapiDevice { get; set; }
  20. public int H264Crf { get; set; }
  21. public string H264Preset { get; set; }
  22. public string DeinterlaceMethod { get; set; }
  23. public bool EnableHardwareEncoding { get; set; }
  24. public bool EnableSubtitleExtraction { get; set; }
  25. public string[] HardwareDecodingCodecs { get; set; }
  26. public EncodingOptions()
  27. {
  28. DownMixAudioBoost = 2;
  29. EnableThrottling = true;
  30. ThrottleDelaySeconds = 180;
  31. EncodingThreadCount = -1;
  32. // 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
  33. VaapiDevice = "/dev/dri/renderD128";
  34. H264Crf = 23;
  35. EnableHardwareEncoding = true;
  36. EnableSubtitleExtraction = true;
  37. HardwareDecodingCodecs = new string[] { "h264", "vc1" };
  38. }
  39. }
  40. }