TrickplayOptions.cs 2.0 KB

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