-
Notifications
You must be signed in to change notification settings - Fork 9
/
prudynt.cfg.example
246 lines (234 loc) · 12.2 KB
/
prudynt.cfg.example
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# Prudynt Configuration
# ---------------------
# This configuration file allows customization of Prudynt's behavior.
# Uncomment the desired lines to override the default settings.
# Some options are only supported on specific SOC versions. See the wiki for details:
# https://github.com/gtxaspec/prudynt-t/wiki/Configuration
version = "1.0"; # Configuration file version
# General Settings
# ----------------
general: {
loglevel: "INFO"; # Logging level. Options: EMERGENCY, ALERT, CRITICAL, ERROR, WARN, NOTICE, INFO, DEBUG.
# osd_pool_size: 1025; # OSD pool size (0-1024).
# imp_polling_timeout: 500; # IMP polling timeout (1-5000 ms).
};
# RTSP (Real-Time Streaming Protocol) Settings
# -------------------------------------------
rtsp: {
# port: 554; # Port number for RTSP service.
# name: "thingino prudynt"; # Descriptive name for the RTSP service.
# est_bitrate: 5000; # Estimated bitrate for RTSP streaming (in kbps).
# out_buffer_size: 500000; # Output buffer size for RTSP streaming (in bytes).
# send_buffer_size: 307200; # Send buffer size for RTSP streaming (in bytes).
# auth_required: true; # Enable RTSP authentication (true/false).
# username: "thingino"; # Username for RTSP authentication.
# password: "thingino"; # Password for RTSP authentication.
};
# Sensor Settings
# ---------------
sensor: {
# model: "gc2053"; # Sensor model.
# i2c_address: 0x37; # I2C address of the sensor (0x0 - 0x7F).
fps: 25; # Frames per second captured by the sensor (0-60).
# width: 1920; # Width of the sensor's image (in pixels).
# height: 1080; # Height of the sensor's image (in pixels).
};
# Image Settings
# ----------------
image: {
# vflip = false;
# hflip = false;
# ae_compensation = 128;
# anti_flicker = 2;
# backlight_compensation = 0;
# brightness = 128;
# contrast = 128;
# core_wb_mode = 0;
# defog_strength = 128;
# dpc_strength = 128;
# drc_strength = 128;
# highlight_depress = 0;
# hue = 128;
# max_again = 160;
# max_dgain = 80;
# running_mode = 0;
# saturation = 128;
# sharpness = 128;
# sinter_strength = 128;
# temper_strength = 128;
# wb_bgain = 0;
# wb_rgain = 0;
};
# Stream0 Settings
# ----------------
stream0: {
# enabled: true; # Enable or disable Stream0.
# audio_enabled: true; # Enable audio on the stream.
# rtsp_endpoint: "ch0"; # Endpoint name for the RTSP url stream.
# format: "H264"; # Video format for the stream (H264 or H265).
# bitrate: 3000; # Bitrate for the stream (in kbps).
# mode: "SMART"; # Rate control mode: ("CBR", "VBR", "FIXQP", ("SMART" on T1x, T2x, T30), ("CAPPED_VBR", "CAPPED_QUALITY" on T31))
# width: 1920; # Width of the video stream (in pixels).
# height: 1080; # Height of the video stream (in pixels).
# buffers: 2; # Number of buffers for the stream.
fps: 25; # Frames per second for the stream (0-60).
# gop: 20; # Group of Pictures size for the stream.
# max_gop: 60; # Maximum GOP size for the stream.
# profile: 2; # Profile of the stream (0: baseline, 1: main, 2: high).
# rotation: 0; # Rotation of the video stream (0: no rotation, 1: 90 degrees, 2: 270 degrees).
osd: {
# enabled: true; # Enable or disable the OSD (On-Screen Display).
# start_delay: 0; # Delayed start of the OSD display
# font_path: "/usr/share/fonts/NotoSansDisplay-Condensed2.ttf"; # Path to the font file for the OSD text.
# font_size: 64; # Font size for OSD text.
# font_color: 0xFFFFFFFF; # Font color for OSD text in ARGB format.
# font_stroke_enabled: true; # Enable or disable a stroke (outline) for OSD text.
# font_stroke_size: 64; # Size of the font stroke.
# font_stroke_color: 0xFF000000; # Color of the font stroke in ARGB format.
# time_enabled: true; # Enable or disable the time display in the OSD.
# time_format: "%F %T"; # Format string for displaying time.
# user_text_enabled: true; # Enable or disable the display of custom user text.
# user_text_format: "%hostname"; # Custom text to display in the OSD.
# uptime_enabled: true; # Enable or disable the display of system uptime.
# uptime_format: "Uptime: %02lu:%02lu:%02lu"; # Format string for displaying uptime.
# logo_enabled: true; # Enable or disable the display of a logo image.
# logo_path: "/usr/share/images/thingino_logo_1.bgra"; # Path to the logo image file.
# logo_width: 100; # Width of the logo image.
# logo_height: 30; # Height of the logo image.
# logo_transparency: 255; # Transparency (0-255) for the logo in the OSD.
# pos_time_x: 10; # X position for the OSD time.
# pos_time_y: 10; # Y position for the OSD time.
# pos_user_text_x: 900; # X position for the user-defined text in the OSD.
# pos_user_text_y: 5; # Y position for the user-defined text in the OSD.
# pos_uptime_x: 1600; # X position for the uptime display in the OSD.
# pos_uptime_y: 5; # Y position for the uptime display in the OSD.
# pos_logo_x: 1800; # X position for the logo in the OSD.
# pos_logo_y: 1030; # Y position for the logo in the OSD.
# font_stroke: 1; # Stroke width for the font.
# font_xscale: 100; # X scale for the font.
# font_yscale: 100; # Y scale for the font.
# font_yoffset: 3; # Y offset for the font.
# logo_rotation: 0; # Rotation for the logo (0-360 degrees).
# time_rotation: 0; # Rotation for the time display (0-360 degrees).
# time_transparency: 255; # Transparency for the time display (0-255).
# uptime_rotation: 0; # Rotation for the uptime display (0-360 degrees).
# uptime_transparency: 255; # Transparency for the uptime display (0-255).
# user_text_rotation: 0; # Rotation for the user text (0-360 degrees).
# user_text_transparency: 255; # Transparency for the user text (0-255).
# pos_logo_x: 1800; # X position for the logo.
# pos_logo_y: 1030; # Y position for the logo.
};
};
# Stream1 Settings
# ---------------------------------
stream1: {
# enabled: true; # Enable or disable Stream1.
# audio_enabled: true; # Enable audio on the stream.
# rtsp_endpoint: "ch1"; # Endpoint name for the RTSP url stream.
# format: "H264"; # Video format for the stream (H264 or H265).
# bitrate: 1000; # Bitrate for the stream (in kbps).
# mode: "SMART"; # Rate control mode: ("CBR", "VBR", "FIXQP", ("SMART" on T1x, T2x, T30), ("CAPPED_VBR", "CAPPED_QUALITY" on T31))
# width: 640; # Width of the video stream (in pixels).
# height: 360; # Height of the video stream (in pixels).
# buffers: 2; # Number of buffers for the stream.
fps: 25; # Frames per second for the stream (0-60).
# gop: 20; # Group of Pictures size for the stream.
# max_gop: 60; # Maximum GOP size for the stream.
# profile: 2; # Profile of the stream (0: baseline, 1: main, 2: high).
osd: {
# enabled: true; # Enable or disable the OSD (On-Screen Display).
# start_delay: 0; # Delayed start of the OSD display
# font_path: "/usr/share/fonts/NotoSansDisplay-Condensed2.ttf"; # Path to the font file for the OSD text.
# font_size: 64; # Font size for OSD text.
# font_color: 0xFFFFFFFF; # Font color for OSD text in ARGB format.
# font_stroke_enabled: true; # Enable or disable a stroke (outline) for OSD text.
# font_stroke_size: 64; # Size of the font stroke.
# font_stroke_color: 0xFF000000; # Color of the font stroke in ARGB format.
# time_enabled: true; # Enable or disable the time display in the OSD.
# time_format: "%F %T"; # Format string for displaying time.
# user_text_enabled: true; # Enable or disable the display of custom user text.
# user_text_format: "%hostname"; # Custom text to display in the OSD.
# uptime_enabled: true; # Enable or disable the display of system uptime.
# uptime_format: "Uptime: %02lu:%02lu:%02lu"; # Format string for displaying uptime.
# logo_enabled: true; # Enable or disable the display of a logo image.
# logo_path: "/usr/share/images/thingino_logo_1.bgra"; # Path to the logo image file.
# logo_width: 100; # Width of the logo image.
# logo_height: 30; # Height of the logo image.
# logo_transparency: 255; # Transparency (0-255) for the logo in the OSD.
# pos_time_x: 10; # X position for the OSD time.
# pos_time_y: 10; # Y position for the OSD time.
# pos_user_text_x: 900; # X position for the user-defined text in the OSD.
# pos_user_text_y: 5; # Y position for the user-defined text in the OSD.
# pos_uptime_x: 1600; # X position for the uptime display in the OSD.
# pos_uptime_y: 5; # Y position for the uptime display in the OSD.
# pos_logo_x: 1800; # X position for the logo in the OSD.
# pos_logo_y: 1030; # Y position for the logo in the OSD.
# font_stroke: 1; # Stroke width for the font.
# font_xscale: 100; # X scale for the font.
# font_yscale: 100; # Y scale for the font.
# font_yoffset: 3; # Y offset for the font.
# logo_rotation: 0; # Rotation for the logo (0-360 degrees).
# time_rotation: 0; # Rotation for the time display (0-360 degrees).
# time_transparency: 255; # Transparency for the time display (0-255).
# uptime_rotation: 0; # Rotation for the uptime display (0-360 degrees).
# uptime_transparency: 255; # Transparency for the uptime display (0-255).
# user_text_rotation: 0; # Rotation for the user text (0-360 degrees).
# user_text_transparency: 255; # Transparency for the user text (0-255).
};
};
# Stream2 Settings (JPEG)
# ---------------------------------
stream2: {
# enabled: true; # Enable or disable Stream2.
# jpeg_path: "/tmp/snapshot.jpg"; # File path for JPEG snapshots.
# jpeg_quality: 75; # Quality of JPEG snapshots (1-100).
# jpeg_refresh: 1000; # Refresh rate for JPEG snapshots (in milliseconds).
# jpeg_channel: 0; # JPEG channel (0 or 1).
# jpeg_idle_fps: 1; # fps if no requests made via ws / http. 0 = sleep on idle. ! affects jpeg_path
};
# WebSocket Settings
# ------------------
websocket: {
# enabled: true; # Enable or disable WebSocket.
# secured: false; # Enable or disable secured WebSocket.
# loglevel: 4096; # Log level for WebSocket.
# port: 8089; # Port number for WebSocket service.
};
# Audio Settings
# --------------
audio: {
# input_enabled: true; # Enable or disable audio input.
# input_format: "OPUS"; # Audio format to use ("OPUS", "AAC", "PCM", "G711A", "G711U", "G726").
# input_bitrate: 40; # Audio encoder bitrate to use in kbps (from 6 to 256).
# input_sample_rate: 16000; # Input audio sampling in Hz (8000, 16000, 24000, 44100, 48000).
# input_high_pass_filter: false; # Enable or disable high pass filter for audio input.
# input_agc_enabled: false; # Enable or disable AGC for audio input.
# input_vol: 80; # Input volume for audio (-30 to 120).
# input_gain: 25; # Input gain for audio (0 to 31).
# input_alc_gain: 0; # ALC gain for audio input (0 to 7).
# input_agc_target_level_dbfs: 10; # AGC target level in dBFS for audio input (0 to 31).
# input_agc_compression_gain_db: 0; # AGC compression gain in dB for audio input (0 to 90).
# input_noise_suppression: 0; # Noise suppression for audio input (0 to 3).
};
# Motion Settings
# ---------------
motion: {
enabled: false; # Enable or disable motion detection.
# ivs_polling_timeout: 1000; # Query timeout for the motion detection frames
# monitor_stream: 1; # Stream on which motion is to be monitored (0/1)
# script_path: "/usr/sbin/motion"; # Path to the script executed when motion is detected.
# debounce_time: 0; # Time to wait before triggering motion detection again (debounce period).
# post_time: 0; # Time after motion detection stops to continue recording.
cooldown_time: 5; # Time to wait after a motion event before detecting new motion.
# init_time: 5; # Time for motion detection to initialize at startup.
# min_time: 1; # Minimum time to track motion detection.
sensitivity: 1; # Sensitivity level of motion detection.
# skip_frame_count: 5; # Number of frames to skip for motion detection (to reduce CPU load).
# frame_width: 1920; # Width of the frame used for motion detection.
# frame_height: 1080; # Height of the frame used for motion detection.
# roi_0_x: 0; # X coordinate of the top-left corner of the first Region Of Interest (ROI).
# roi_0_y: 0; # Y coordinate of the top-left corner of the first ROI.
# roi_1_x: 1920; # X coordinate of the bottom-right corner of the first ROI.
# roi_1_y: 1080; # Y coordinate of the bottom-right corner of the first ROI.
# roi_count: 1; # Number of active Regions Of Interest
};