TrickplayOptions.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 a value indicating whether or not to use HW accelerated MJPEG encoding.
  15. /// </summary>
  16. public bool EnableHwEncoding { get; set; } = false;
  17. /// <summary>
  18. /// Gets or sets the behavior used by trickplay provider on library scan/update.
  19. /// </summary>
  20. public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking;
  21. /// <summary>
  22. /// Gets or sets the process priority for the ffmpeg process.
  23. /// </summary>
  24. public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal;
  25. /// <summary>
  26. /// Gets or sets the interval, in ms, between each new trickplay image.
  27. /// </summary>
  28. public int Interval { get; set; } = 10000;
  29. /// <summary>
  30. /// Gets or sets the target width resolutions, in px, to generates preview images for.
  31. /// </summary>
  32. public int[] WidthResolutions { get; set; } = new[] { 320 };
  33. /// <summary>
  34. /// Gets or sets number of tile images to allow in X dimension.
  35. /// </summary>
  36. public int TileWidth { get; set; } = 10;
  37. /// <summary>
  38. /// Gets or sets number of tile images to allow in Y dimension.
  39. /// </summary>
  40. public int TileHeight { get; set; } = 10;
  41. /// <summary>
  42. /// Gets or sets the ffmpeg output quality level.
  43. /// </summary>
  44. public int Qscale { get; set; } = 4;
  45. /// <summary>
  46. /// Gets or sets the jpeg quality to use for image tiles.
  47. /// </summary>
  48. public int JpegQuality { get; set; } = 90;
  49. /// <summary>
  50. /// Gets or sets the number of threads to be used by ffmpeg.
  51. /// </summary>
  52. public int ProcessThreads { get; set; } = 1;
  53. }