2
0

EncodingOptions.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 int H265Crf { get; set; }
  22. public string EncoderPreset { get; set; }
  23. public string DeinterlaceMethod { get; set; }
  24. public bool EnableHardwareEncoding { get; set; }
  25. public bool EnableSubtitleExtraction { get; set; }
  26. public string[] HardwareDecodingCodecs { get; set; }
  27. public EncodingOptions()
  28. {
  29. DownMixAudioBoost = 2;
  30. EnableThrottling = true;
  31. ThrottleDelaySeconds = 180;
  32. EncodingThreadCount = -1;
  33. // 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
  34. VaapiDevice = "/dev/dri/renderD128";
  35. H264Crf = 23;
  36. H265Crf = 28;
  37. EnableHardwareEncoding = true;
  38. EnableSubtitleExtraction = true;
  39. HardwareDecodingCodecs = new string[] { "h264", "vc1" };
  40. }
  41. }
  42. }