aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/TrickplayOptions.cs
diff options
context:
space:
mode:
authorgnattu <gnattuoc@me.com>2024-05-08 13:50:03 +0800
committergnattu <gnattuoc@me.com>2024-07-17 00:47:22 +0800
commit68bfabbaba2fc6f7b5b6cd63b388f4669a476713 (patch)
tree0f3220a6486bf2c03811461ea9e71d7398eec149 /MediaBrowser.Model/Configuration/TrickplayOptions.cs
parentc050abf3e848a3dc0968b18baaee5d0ffb54b334 (diff)
Add option to extract keyframe only during trickplay image generation
This would be significantly faster than decoding every frame, but it does have compatibility issues. Not all decoders support this mode, notably the VP9 decoder, CUVID decoders, and QSV decoders. Some videos with very long key-frame intervals may also perform poorly with this mode, as the image timing could become too inaccurate to reflect the actual frame. Signed-off-by: gnattu <gnattuoc@me.com>
Diffstat (limited to 'MediaBrowser.Model/Configuration/TrickplayOptions.cs')
-rw-r--r--MediaBrowser.Model/Configuration/TrickplayOptions.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/TrickplayOptions.cs b/MediaBrowser.Model/Configuration/TrickplayOptions.cs
index a151d3429..578bb306a 100644
--- a/MediaBrowser.Model/Configuration/TrickplayOptions.cs
+++ b/MediaBrowser.Model/Configuration/TrickplayOptions.cs
@@ -19,6 +19,12 @@ public class TrickplayOptions
public bool EnableHwEncoding { get; set; } = false;
/// <summary>
+ /// Gets or sets a value indicating whether to only extract key frames.
+ /// Significantly faster, but is not compatible with all decoders and/or video files.
+ /// </summary>
+ public bool EnableKeyFrameOnlyExtraction { get; set; } = false;
+
+ /// <summary>
/// Gets or sets the behavior used by trickplay provider on library scan/update.
/// </summary>
public TrickplayScanBehavior ScanBehavior { get; set; } = TrickplayScanBehavior.NonBlocking;