forked from AydinAdn/MediaToolkit
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMediaStream.cs
More file actions
123 lines (84 loc) · 3.23 KB
/
MediaStream.cs
File metadata and controls
123 lines (84 loc) · 3.23 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace MediaToolkit.Model
{
public class MediaStream
{
public int Index { get; set; }
[JsonPropertyName("codec_name")]
public string CodecName { get; set; }
[JsonPropertyName("codec_long_name")]
public string CodecLongName { get; set; }
public string Profile { get; set; }
[JsonPropertyName("codec_type")]
public string CodecType { get; set; }
[JsonPropertyName("codec_time_base")]
public string CodecTimeBase { get; set; }
[JsonPropertyName("codec_tag_string")]
public string CodecTagString { get; set; }
[JsonPropertyName("codec_tag")]
public string CodecTag { get; set; }
public int Width { get; set; }
public int Height { get; set; }
[JsonPropertyName("coded_width")]
public int CodedWidth { get; set; }
[JsonPropertyName("coded_height")]
public int CodedHeight { get; set; }
[JsonPropertyName("has_b_frames")]
public int HasBFrames { get; set; }
[JsonPropertyName("sample_aspect_ratio")]
public string SampleAspectRatio { get; set; }
[JsonPropertyName("display_aspect_ratio")]
public string DisplayAspectRatio { get; set; }
[JsonPropertyName("pix_fmt")]
public string PixFmt { get; set; }
public int Level { get; set; }
[JsonPropertyName("chroma_location")]
public string ChromaLocation { get; set; }
public int Refs { get; set; }
[JsonPropertyName("is_avc")]
public string IsAvc { get; set; }
[JsonPropertyName("nal_length_size")]
public string NalLengthSize { get; set; }
[JsonPropertyName("r_frame_rate")]
public string RFrameRate { get; set; }
[JsonPropertyName("avg_frame_rate")]
public string AvgFrameRate { get; set; }
[JsonPropertyName("time_base")]
public string TimeBase { get; set; }
[JsonPropertyName("start_pts")]
public int StartPts { get; set; }
[JsonPropertyName("start_time")]
public string StartTime { get; set; }
[JsonPropertyName("duration_ts")]
public long DurationTs { get; set; }
public string Duration { get; set; }
[JsonPropertyName("bit_rate")]
public string BitRate { get; set; }
[JsonPropertyName("bits_per_raw_sample")]
public string BitsPerRawSample { get; set; }
[JsonPropertyName("nb_frames")]
public string NbFrames { get; set; }
public Disposition Disposition { get; set; }
[JsonPropertyName("sample_fmt")]
public string SampleFmt { get; set; }
[JsonPropertyName("sample_rate")]
public string SampleRate { get; set; }
public int? Channels { get; set; }
[JsonPropertyName("channel_layout")]
public string ChannelLayout { get; set; }
[JsonPropertyName("bits_per_sample")]
public int? BitsPerSample { get; set; }
[JsonPropertyName("max_bit_rate")]
public string MaxBitRate { get; set; }
[JsonPropertyName("color_range")]
public string ColorRange { get; set; }
[JsonPropertyName("color_space")]
public string ColorSpace { get; set; }
[JsonPropertyName("color_transfer")]
public string ColorTransfer { get; set; }
[JsonPropertyName("color_primaries")]
public string ColorPrimaries { get; set; }
public Dictionary<string, string> Tags { get; set; }
}
}