-
Notifications
You must be signed in to change notification settings - Fork 0
/
ts_attrconst.py
71 lines (63 loc) · 1.72 KB
/
ts_attrconst.py
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
class StreamType:
Unknown = 0
MPEG1_VIDEO = 0x01
MPEG2_VIDEO = 0x02
AVC_VIDEO = 0x1B # referenced in libbluray strings.h and ExifTool10.29 as H.264
MVC_VIDEO = 0x20
VC1_VIDEO = 0xEA # referenced in libbluray strings.h as H.264 MVC
HEVC_VIDEO = 0x24 # referenced in libbluray bluray.h as H265/HEVC
MPEG1_AUDIO = 0x03
MPEG2_AUDIO = 0x04
LPCM_AUDIO = 0x80
AC3_AUDIO = 0x81
AC3_PLUS_AUDIO = 0x84
AC3_PLUS_SECONDARY_AUDIO = 0xA1
AC3_TRUE_HD_AUDIO = 0x83
DTS_AUDIO = 0x82
DTS_HD_AUDIO = 0x85
DTS_HD_SECONDARY_AUDIO = 0xA2
DTS_HD_MASTER_AUDIO = 0x86
PRESENTATION_GRAPHICS = 0x90
INTERACTIVE_GRAPHICS = 0x91
SUBTITLE = 0x92
class VideoFormat:
VIDEOFORMAT_480i = 1
VIDEOFORMAT_576i = 2
VIDEOFORMAT_480p = 3
VIDEOFORMAT_1080i = 4
VIDEOFORMAT_720p = 5
VIDEOFORMAT_1080p = 6
VIDEOFORMAT_576p = 7
VIDEOFORMAT_2160p = 8
class FrameRate:
Unknown = 0
FRAMERATE_23_976 = 1
FRAMERATE_24 = 2
FRAMERATE_25 = 3
FRAMERATE_29_97 = 4
FRAMERATE_50 = 6
FRAMERATE_59_94 = 7
class ChannelLayout:
Unknown = 0
CHANNELLAYOUT_MONO = 1
CHANNELLAYOUT_STEREO = 3
CHANNELLAYOUT_MULTI = 6
CHANNELLAYOUT_COMBO = 12
class SampleRate:
Unknown = 0
SAMPLERATE_48 = 1
SAMPLERATE_96 = 4
SAMPLERATE_192 = 5
SAMPLERATE_48_192 = 12
SAMPLERATE_48_96 = 14
class AspectRate:
Unknown = 0
ASPECT_4_3 = 2
ASPECT_16_9 = 3
ASPECT_2_21 = 4
class AudioMode:
Unknown = 0
DualMono = 1
Stereo = 2
Surround = 3
Extended = 4