aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/TrickplayOptions.cs
blob: d527baaa463f05c4e77ec32fa50355b56cdc60bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Collections.Generic;
using System.Diagnostics;

namespace MediaBrowser.Model.Configuration
{
    /// <summary>
    /// Class TrickplayOptions.
    /// </summary>
    public class TrickplayOptions
    {
        /// <summary>
        /// Gets or sets a value indicating whether or not to use HW acceleration.
        /// </summary>
        public bool EnableHwAcceleration { 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;

        /// <summary>
        /// Gets or sets the process priority for the ffmpeg process.
        /// </summary>
        public ProcessPriorityClass ProcessPriority { get; set; } = ProcessPriorityClass.BelowNormal;

        /// <summary>
        /// Gets or sets the interval, in ms, between each new trickplay image.
        /// </summary>
        public int Interval { get; set; } = 10000;

        /// <summary>
        /// Gets or sets the target width resolutions, in px, to generates preview images for.
        /// </summary>
        public HashSet<int> WidthResolutions { get; set; } = new HashSet<int> { 320 };

        /// <summary>
        /// Gets or sets number of tile images to allow in X dimension.
        /// </summary>
        public int TileWidth { get; set; } = 10;

        /// <summary>
        /// Gets or sets number of tile images to allow in Y dimension.
        /// </summary>
        public int TileHeight { get; set; } = 10;

        /// <summary>
        /// Gets or sets the ffmpeg output quality level.
        /// </summary>
        public int Qscale { get; set; } = 10;

        /// <summary>
        /// Gets or sets the jpeg quality to use for image tiles.
        /// </summary>
        public int JpegQuality { get; set; } = 90;

        /// <summary>
        /// Gets or sets the number of threads to be used by ffmpeg.
        /// </summary>
        public int ProcessThreads { get; set; } = 0;
    }
}