aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Session/TranscodingInfo.cs
blob: 11e83844b05b122cc6abd0bb249dd5cf9bf26663 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#nullable disable

using MediaBrowser.Model.Entities;

namespace MediaBrowser.Model.Session;

/// <summary>
/// Class holding information on a running transcode.
/// </summary>
public class TranscodingInfo
{
    /// <summary>
    /// Gets or sets the thread count used for encoding.
    /// </summary>
    public string AudioCodec { get; set; }

    /// <summary>
    /// Gets or sets the thread count used for encoding.
    /// </summary>
    public string VideoCodec { get; set; }

    /// <summary>
    /// Gets or sets the thread count used for encoding.
    /// </summary>
    public string Container { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether the video is passed through.
    /// </summary>
    public bool IsVideoDirect { get; set; }

    /// <summary>
    /// Gets or sets a value indicating whether the audio is passed through.
    /// </summary>
    public bool IsAudioDirect { get; set; }

    /// <summary>
    /// Gets or sets the bitrate.
    /// </summary>
    public int? Bitrate { get; set; }

    /// <summary>
    /// Gets or sets the framerate.
    /// </summary>
    public float? Framerate { get; set; }

    /// <summary>
    /// Gets or sets the completion percentage.
    /// </summary>
    public double? CompletionPercentage { get; set; }

    /// <summary>
    /// Gets or sets the video width.
    /// </summary>
    public int? Width { get; set; }

    /// <summary>
    /// Gets or sets the video height.
    /// </summary>
    public int? Height { get; set; }

    /// <summary>
    /// Gets or sets the audio channels.
    /// </summary>
    public int? AudioChannels { get; set; }

    /// <summary>
    /// Gets or sets the hardware acceleration type.
    /// </summary>
    public HardwareAccelerationType? HardwareAccelerationType { get; set; }

    /// <summary>
    /// Gets or sets the transcode reasons.
    /// </summary>
    public TranscodeReason TranscodeReasons { get; set; }
}