parent
dd8ef08592
commit
3377032228
@ -1,61 +1,60 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Class TrickplayOptions.
|
||||||
|
/// </summary>
|
||||||
|
public class TrickplayOptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class TrickplayOptions.
|
/// Gets or sets a value indicating whether or not to use HW acceleration.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TrickplayOptions
|
public bool EnableHwAcceleration { get; set; } = false;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether or not to use HW acceleration.
|
/// Gets or sets the behavior used by trickplay provider on library scan/update.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool EnableHwAcceleration { get; set; } = false;
|
public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the behavior used by trickplay provider on library scan/update.
|
/// Gets or sets the process priority for the ffmpeg process.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking;
|
public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the process priority for the ffmpeg process.
|
/// Gets or sets the interval, in ms, between each new trickplay image.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal;
|
public int Interval { get; set; } = 10000;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the interval, in ms, between each new trickplay image.
|
/// Gets or sets the target width resolutions, in px, to generates preview images for.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Interval { get; set; } = 10000;
|
public int[] WidthResolutions { get; set; } = new[] { 320 };
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the target width resolutions, in px, to generates preview images for.
|
/// Gets or sets number of tile images to allow in X dimension.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int[] WidthResolutions { get; set; } = new[] { 320 };
|
public int TileWidth { get; set; } = 10;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets number of tile images to allow in X dimension.
|
/// Gets or sets number of tile images to allow in Y dimension.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int TileWidth { get; set; } = 10;
|
public int TileHeight { get; set; } = 10;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets number of tile images to allow in Y dimension.
|
/// Gets or sets the ffmpeg output quality level.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int TileHeight { get; set; } = 10;
|
public int Qscale { get; set; } = 4;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the ffmpeg output quality level.
|
/// Gets or sets the jpeg quality to use for image tiles.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Qscale { get; set; } = 4;
|
public int JpegQuality { get; set; } = 90;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the jpeg quality to use for image tiles.
|
/// Gets or sets the number of threads to be used by ffmpeg.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int JpegQuality { get; set; } = 90;
|
public int ProcessThreads { get; set; } = 0;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the number of threads to be used by ffmpeg.
|
|
||||||
/// </summary>
|
|
||||||
public int ProcessThreads { get; set; } = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
namespace MediaBrowser.Model.Configuration
|
namespace MediaBrowser.Model.Configuration;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Enum TrickplayScanBehavior.
|
||||||
|
/// </summary>
|
||||||
|
public enum TrickplayScanBehavior
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Enum TrickplayScanBehavior.
|
/// Starts generation, only return once complete.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum TrickplayScanBehavior
|
Blocking,
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Starts generation, only return once complete.
|
|
||||||
/// </summary>
|
|
||||||
Blocking,
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Start generation, return immediately.
|
/// Start generation, return immediately.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
NonBlocking
|
NonBlocking
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,50 +1,49 @@
|
|||||||
namespace MediaBrowser.Model.Entities
|
namespace MediaBrowser.Model.Entities;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Class TrickplayTilesInfo.
|
||||||
|
/// </summary>
|
||||||
|
public class TrickplayTilesInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class TrickplayTilesInfo.
|
/// Gets or sets width of an individual tile.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class TrickplayTilesInfo
|
/// <value>The width.</value>
|
||||||
{
|
public int Width { get; set; }
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets width of an individual tile.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The width.</value>
|
|
||||||
public int Width { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets height of an individual tile.
|
/// Gets or sets height of an individual tile.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The height.</value>
|
/// <value>The height.</value>
|
||||||
public int Height { get; set; }
|
public int Height { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets amount of tiles per row.
|
/// Gets or sets amount of tiles per row.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The tile grid's width.</value>
|
/// <value>The tile grid's width.</value>
|
||||||
public int TileWidth { get; set; }
|
public int TileWidth { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets amount of tiles per column.
|
/// Gets or sets amount of tiles per column.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The tile grid's height.</value>
|
/// <value>The tile grid's height.</value>
|
||||||
public int TileHeight { get; set; }
|
public int TileHeight { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets total amount of non-black tiles.
|
/// Gets or sets total amount of non-black tiles.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The tile count.</value>
|
/// <value>The tile count.</value>
|
||||||
public int TileCount { get; set; }
|
public int TileCount { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets interval in milliseconds between each trickplay tile.
|
/// Gets or sets interval in milliseconds between each trickplay tile.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The interval.</value>
|
/// <value>The interval.</value>
|
||||||
public int Interval { get; set; }
|
public int Interval { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets peak bandwith usage in bits per second.
|
/// Gets or sets peak bandwith usage in bits per second.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The bandwidth.</value>
|
/// <value>The bandwidth.</value>
|
||||||
public int Bandwidth { get; set; }
|
public int Bandwidth { get; set; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue