mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-23 00:57:02 +01:00
Trickplay generation, manager, storage
This commit is contained in:
@@ -48,7 +48,9 @@ public class EncodingOptions
|
||||
EnableIntelLowPowerH264HwEncoder = false;
|
||||
EnableIntelLowPowerHevcHwEncoder = false;
|
||||
EnableHardwareEncoding = true;
|
||||
EnableTrickplayHwAccel = false;
|
||||
AllowHevcEncoding = false;
|
||||
AllowMjpegEncoding = false;
|
||||
EnableSubtitleExtraction = true;
|
||||
AllowOnDemandMetadataBasedKeyframeExtractionForExtensions = new[] { "mkv" };
|
||||
HardwareDecodingCodecs = new string[] { "h264", "vc1" };
|
||||
@@ -244,11 +246,21 @@ public class EncodingOptions
|
||||
/// </summary>
|
||||
public bool EnableHardwareEncoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether hardware acceleration is enabled for trickplay generation.
|
||||
/// </summary>
|
||||
public bool EnableTrickplayHwAccel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether HEVC encoding is enabled.
|
||||
/// </summary>
|
||||
public bool AllowHevcEncoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether MJPEG encoding is enabled.
|
||||
/// </summary>
|
||||
public bool AllowMjpegEncoding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether subtitle extraction is enabled.
|
||||
/// </summary>
|
||||
|
||||
@@ -568,6 +568,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The chapters.</value>
|
||||
public List<ChapterInfo> Chapters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the trickplay manifest.
|
||||
/// </summary>
|
||||
/// <value>The trickplay manifest.</value>
|
||||
public Dictionary<Guid, Dictionary<int, TrickplayTilesInfo>> Trickplay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the location.
|
||||
/// </summary>
|
||||
|
||||
50
MediaBrowser.Model/Entities/TrickplayTilesInfo.cs
Normal file
50
MediaBrowser.Model/Entities/TrickplayTilesInfo.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
namespace MediaBrowser.Model.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Class TrickplayTilesInfo.
|
||||
/// </summary>
|
||||
public class TrickplayTilesInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets width of an individual tile.
|
||||
/// </summary>
|
||||
/// <value>The width.</value>
|
||||
public int Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets height of an individual tile.
|
||||
/// </summary>
|
||||
/// <value>The height.</value>
|
||||
public int Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets amount of tiles per row.
|
||||
/// </summary>
|
||||
/// <value>The tile grid's width.</value>
|
||||
public int TileWidth { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets amount of tiles per column.
|
||||
/// </summary>
|
||||
/// <value>The tile grid's height.</value>
|
||||
public int TileHeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets total amount of non-black tiles.
|
||||
/// </summary>
|
||||
/// <value>The tile count.</value>
|
||||
public int TileCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets interval in milliseconds between each trickplay tile.
|
||||
/// </summary>
|
||||
/// <value>The interval.</value>
|
||||
public int Interval { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets peak bandwith usage in bits per second.
|
||||
/// </summary>
|
||||
/// <value>The bandwidth.</value>
|
||||
public int Bandwidth { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,11 @@ namespace MediaBrowser.Model.Querying
|
||||
/// </summary>
|
||||
Chapters,
|
||||
|
||||
/// <summary>
|
||||
/// The trickplay manifest.
|
||||
/// </summary>
|
||||
Trickplay,
|
||||
|
||||
ChildCount,
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user