-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.ts
78 lines (74 loc) · 1.51 KB
/
interface.ts
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
export interface IFFProbeResponse {
streams: FFStream[]
format: FFFormat
}
export interface FFStream {
index: number
codec_name: string
codec_long_name: string
profile: string
codec_type: string
codec_tag_string: string
codec_tag: string
width?: number
height?: number
coded_width?: number
coded_height?: number
closed_captions?: number
film_grain?: number
has_b_frames?: number
sample_aspect_ratio?: string
display_aspect_ratio?: string
pix_fmt?: string
level?: number
color_range?: string
chroma_location?: string
refs?: number
r_frame_rate: string
avg_frame_rate: string
time_base: string
start_pts: number
start_time: string
extradata_size?: number
disposition: Disposition
tags: Tags
sample_fmt?: string
sample_rate?: string
channels?: number
channel_layout?: string
bits_per_sample?: number
initial_padding?: number
}
interface Disposition {
default: number
dub: number
original: number
comment: number
lyrics: number
karaoke: number
forced: number
hearing_impaired: number
visual_impaired: number
clean_effects: number
attached_pic: number
timed_thumbnails: number
non_diegetic: number
captions: number
descriptions: number
metadata: number
dependent: number
still_image: number
}
interface Tags {
variant_bitrate: string
}
export interface FFFormat {
filename: string
nb_streams: number
nb_programs: number
format_name: string
format_long_name: string
start_time: string
size: string
probe_score: number
}