TrickplayOptions.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Collections.Generic;
  2. using System.Diagnostics;
  3. namespace MediaBrowser.Model.Configuration;
  4. /// <summary>
  5. /// Class TrickplayOptions.
  6. /// </summary>
  7. public class TrickplayOptions
  8. {
  9. /// <summary>
  10. /// Gets or sets a value indicating whether or not to use HW acceleration.
  11. /// </summary>
  12. public bool EnableHwAcceleration { get; set; } = false;
  13. /// <summary>
  14. /// Gets or sets the behavior used by trickplay provider on library scan/update.
  15. /// </summary>
  16. public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking;
  17. /// <summary>
  18. /// Gets or sets the process priority for the ffmpeg process.
  19. /// </summary>
  20. public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal;
  21. /// <summary>
  22. /// Gets or sets the interval, in ms, between each new trickplay image.
  23. /// </summary>
  24. public int Interval { get; set; } = 10000;
  25. /// <summary>
  26. /// Gets or sets the target width resolutions, in px, to generates preview images for.
  27. /// </summary>
  28. public int[] WidthResolutions { get; set; } = new[] { 320 };
  29. /// <summary>
  30. /// Gets or sets number of tile images to allow in X dimension.
  31. /// </summary>
  32. public int TileWidth { get; set; } = 10;
  33. /// <summary>
  34. /// Gets or sets number of tile images to allow in Y dimension.
  35. /// </summary>
  36. public int TileHeight { get; set; } = 10;
  37. /// <summary>
  38. /// Gets or sets the ffmpeg output quality level.
  39. /// </summary>
  40. public int Qscale { get; set; } = 4;
  41. /// <summary>
  42. /// Gets or sets the jpeg quality to use for image tiles.
  43. /// </summary>
  44. public int JpegQuality { get; set; } = 90;
  45. /// <summary>
  46. /// Gets or sets the number of threads to be used by ffmpeg.
  47. /// </summary>
  48. public int ProcessThreads { get; set; } = 1;
  49. }