From 9c15f96e12a0d48a70cbca8380bf78a4f2512b03 Mon Sep 17 00:00:00 2001 From: cvium Date: Thu, 23 Sep 2021 15:29:12 +0200 Subject: Add first draft of keyframe extraction for Matroska --- .../KeyframeData.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs (limited to 'src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs') diff --git a/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs b/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs new file mode 100644 index 000000000..3122f827c --- /dev/null +++ b/src/Jellyfin.MediaEncoding.Keyframes/KeyframeData.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; + +namespace Jellyfin.MediaEncoding.Keyframes +{ + public class KeyframeData + { + /// + /// Initializes a new instance of the class. + /// + /// The total duration of the video stream in ticks. + /// The video keyframes in ticks. + public KeyframeData(long totalDuration, IReadOnlyList keyframeTicks) + { + TotalDuration = totalDuration; + KeyframeTicks = keyframeTicks; + } + + /// + /// Gets the total duration of the stream in ticks. + /// + public long TotalDuration { get; } + + /// + /// Gets the keyframes in ticks. + /// + public IReadOnlyList KeyframeTicks { get; } + } +} -- cgit v1.2.3