-
Notifications
You must be signed in to change notification settings - Fork 2
/
box.conf
227 lines (186 loc) · 5.62 KB
/
box.conf
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# stream input
[STREAM]
# [1 - 32]
count = 32
# [1 - 64], default is same as 'count'. if show logo, max. is 63.
# vdec count = 32
# sata
# - sata path: if path is empty(default), no file will be saved.
# - max sata file size: MBytes of each file, default is 100MB
# - max space size: MBytes of max. space of each stream, default is 300MB
# sata path = /mnt/
# max sata file size = 100
# max space size = 300
# width and height of all streams cannot exceed below max values
# default: 1920x1080
max width = 1920
max height = 1080
# VDEC pp output depth but ref frame is excluded, default: 8
# 2023-09-08: VB = vo in fifo depth + online shadow 2 + 1
chn1 depth = 5
chn2 depth = 3
# usually fps is auto parsed whatever file or rtsp stream
# if fps = 0, Use fps parsed by file stream, if fail to parse, 30 is replaced.
default fps = 0
# 0: frame (rtsp) 1: stream (file or rtsp), default: 0
input mode = 0
# 1: user pool (default), 0: common pool, 2: vdec private pool
user pool = 2
# max stream buf size if stream input mode, max:0x200000, default: 0x200000
# max stream buf size = 0x200000
# vo link to vdec, but box will not be drawn. default: unlink
# linked mode = 0
# absolute stream file path or rtsp url (eg: rtsp://192.168.2.6:8554/stream)
stream01 =/root/Videos/sample_1080p_h264.mp4
stream02 =/root/Videos/sample_1080p_h264.mp4
stream03 =/root/Videos/sample_1080p_h264.mp4
stream04 =/root/Videos/sample_1080p_h264.mp4
stream05 =/root/Videos/sample_1080p_h264.mp4
stream06 =/root/Videos/sample_1080p_h264.mp4
stream07 =/root/Videos/sample_1080p_h264.mp4
stream08 =/root/Videos/sample_1080p_h264.mp4
stream09 =/root/Videos/sample_1080p_h264.mp4
stream10 =/root/Videos/sample_1080p_h264.mp4
stream11 =/root/Videos/sample_1080p_h264.mp4
stream12 =/root/Videos/sample_1080p_h264.mp4
stream13 =/root/Videos/sample_1080p_h264.mp4
stream14 =/root/Videos/sample_1080p_h264.mp4
stream15 =/root/Videos/sample_1080p_h264.mp4
stream16 =/root/Videos/sample_1080p_h264.mp4
stream17 =/root/Videos/sample_1080p_h264.mp4
stream18 =/root/Videos/sample_1080p_h264.mp4
stream19 =/root/Videos/sample_1080p_h264.mp4
stream20 =/root/Videos/sample_1080p_h264.mp4
stream21 =/root/Videos/sample_1080p_h264.mp4
stream22 =/root/Videos/sample_1080p_h264.mp4
stream23 =/root/Videos/sample_1080p_h264.mp4
stream24 =/root/Videos/sample_1080p_h264.mp4
stream25 =/root/Videos/sample_1080p_h264.mp4
stream26 =/root/Videos/sample_1080p_h264.mp4
stream27 =/root/Videos/sample_1080p_h264.mp4
stream28 =/root/Videos/sample_1080p_h264.mp4
stream29 =/root/Videos/sample_1080p_h264.mp4
stream30 =/root/Videos/sample_1080p_h264.mp4
stream31 =/root/Videos/sample_1080p_h264.mp4
stream32 =/root/Videos/sample_1080p_h264.mp4
[DETECT]
enable = 1
# input image size to detect
width = 1024
height = 576
# each x frame to detect
skip rate = 2
fifo depth = 1
# model directory path
# /opt/etc/skelModels/1024x576/full ==> Virtual npu disable
# /opt/etc/skelModels/1024x576/part ==> Virtual npu standard/big-little
model path = /root/Workspace/yolov8n_skel
# model path = /root/Workspace/yolov10n_skel
# model path = /root/Workspace/yolo11n_skel
# NPU Engine Mode
# 0: Virtual npu disable
# 1: Virtual npu standard
# 2: Virtual npu big-little
npu mode = 0
# channel number [1 - 32]
channel num = 3
# each channel x attribute [ppl, track, VNPU]
# ppl: [ 4: HVCP; 5: FACE ]
# Virtual npu disable ==> VNPU: [ 0 ]
# Virtual npu standard ==> VNPU: [ 0: STD VPNU default; 1: STD VPNU1; 2: STD VPNU2; 3: STD VPNU3 ]
# Virtual npu big-little ==> VNPU: [ 0: BL VPNU default; 1: BL VPNU1; 2: BL VPNU2 ]
channel0 attr = [4, 1, 0]
channel1 attr = [4, 1, 1]
channel2 attr = [4, 1, 3]
channel3 attr = [4, 1, 0]
channel4 attr = [4, 1, 1]
channel5 attr = [4, 1, 3]
channel6 attr = [4, 1, 0]
channel7 attr = [4, 1, 1]
channel8 attr = [4, 1, 3]
channel9 attr = [4, 1, 0]
channel10 attr = [4, 1, 1]
channel11 attr = [4, 1, 3]
channel12 attr = [4, 1, 0]
channel13 attr = [4, 1, 1]
channel14 attr = [4, 1, 3]
channel15 attr = [4, 1, 0]
channel16 attr = [4, 1, 1]
channel17 attr = [4, 1, 3]
channel18 attr = [4, 1, 0]
channel19 attr = [4, 1, 1]
channel20 attr = [4, 1, 3]
channel21 attr = [4, 1, 0]
channel22 attr = [4, 1, 1]
channel23 attr = [4, 1, 3]
channel24 attr = [4, 1, 0]
channel25 attr = [4, 1, 1]
channel26 attr = [4, 1, 3]
channel27 attr = [4, 1, 0]
channel28 attr = [4, 1, 1]
channel29 attr = [4, 1, 3]
channel30 attr = [4, 1, 0]
channel31 attr = [4, 1, 1]
[DISPC]
dev = 0
# 8: 1920x1080P60
# 22: 3840x2160P30
# 24: 3840x2160P60
HDMI = 8
online mode = 1
layer depth = 3
# rc
show logo = 1
show no video = 1
record enable = 0
record path = /opt/data/record/
# 1: mp4 (default) 0: raw
# record muxer = 1
# max record file size in MB, no limit set to <= 0
# default is 1024 MB
max record size = 1024
[DISPC1]
dev = -1
# 8: 1920x1080P60
# 24: 3840x2160P60
HDMI = 8
online mode = 1
layer depth = 3
# rc
show logo = 1
show no video = 1
record enable = 0
record path = /opt/data/record/
# 1: mp4 (default) 0: raw
# record muxer = 1
# max record file size in MB, no limit set to <= 0
# default is 1024 MB
max record size = 1024
# 0:same src 1:diff src 2:other
disp type = 1
[VENC]
# [h264, hevc]
encoder = "h264"
bitrate = 8192
# 0: same as fps
gop = 0
# [CBR, VBR, AVBR]
rc type = "CBR"
min qp = 0
max qp = 51
min iqp = 0
max iqp = 51
min i prop = 10
max i prop = 40
intra qp delta = -2
[FBC]
# 0: no compress
# 1: lossess
# 2: lossy
compress mode = 0
compress level = 0
[UT]
# tick: 9656
# if > 0, send nalu interval milliseconds to VDEC [0, PlaybackMaxSendNaluIntervalMilliseconds]
# unit: milliseconds
PlaybackMaxSendNaluIntervalMilliseconds = 0