mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 09:14:45 +03:00
Add perf tradeoff mode to image extractor (#12744)
This commit is contained in:
@@ -39,6 +39,11 @@ namespace MediaBrowser.Controller.Extensions
|
||||
/// </summary>
|
||||
public const string FfmpegAnalyzeDurationKey = "FFmpeg:analyzeduration";
|
||||
|
||||
/// <summary>
|
||||
/// The key for the FFmpeg image extraction performance tradeoff option.
|
||||
/// </summary>
|
||||
public const string FfmpegImgExtractPerfTradeoffKey = "FFmpeg:imgExtractPerfTradeoff";
|
||||
|
||||
/// <summary>
|
||||
/// The key for the FFmpeg path option.
|
||||
/// </summary>
|
||||
@@ -107,6 +112,14 @@ namespace MediaBrowser.Controller.Extensions
|
||||
public static bool GetFFmpegSkipValidation(this IConfiguration configuration)
|
||||
=> configuration.GetValue<bool>(FfmpegSkipValidationKey);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the server should trade off for performance during FFmpeg image extraction.
|
||||
/// </summary>
|
||||
/// <param name="configuration">The configuration to read the setting from.</param>
|
||||
/// <returns><c>true</c> if the server should trade off for performance during FFmpeg image extraction, otherwise <c>false</c>.</returns>
|
||||
public static bool GetFFmpegImgExtractPerfTradeoff(this IConfiguration configuration)
|
||||
=> configuration.GetValue<bool>(FfmpegImgExtractPerfTradeoffKey);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether playlists should allow duplicate entries from the <see cref="IConfiguration"/>.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user