Add first draft of keyframe extraction for Matroska

This commit is contained in:
cvium
2021-09-23 15:29:12 +02:00
parent 1ebd3c9ac3
commit 9c15f96e12
23 changed files with 893 additions and 112 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections.Generic;
namespace Jellyfin.MediaEncoding.Keyframes
{
public class KeyframeData
{
/// <summary>
/// Initializes a new instance of the <see cref="KeyframeData"/> class.
/// </summary>
/// <param name="totalDuration">The total duration of the video stream in ticks.</param>
/// <param name="keyframeTicks">The video keyframes in ticks.</param>
public KeyframeData(long totalDuration, IReadOnlyList<long> keyframeTicks)
{
TotalDuration = totalDuration;
KeyframeTicks = keyframeTicks;
}
/// <summary>
/// Gets the total duration of the stream in ticks.
/// </summary>
public long TotalDuration { get; }
/// <summary>
/// Gets the keyframes in ticks.
/// </summary>
public IReadOnlyList<long> KeyframeTicks { get; }
}
}