forked from gtxaspec/prudynt-t
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prudynt.cfg.example
112 lines (103 loc) · 5.62 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
# 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 = "0.6"; # Configuration file version
# General Settings
# ----------------
general: {
loglevel: "INFO"; # Logging level. Options: DEBUG, INFO, WARNING, ERROR.
};
# 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.
# fps: 24; # Frames per second captured by the sensor.
# width: 1920; # Width of the sensor's image (in pixels).
# height: 1080; # Height of the sensor's image (in pixels).
};
# Stream0 Settings
# ----------------
stream0: {
# rtsp_endpoint: "ch0"; # 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).
# 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: 24; # Frames per second for the stream.
# gop: 30; # Group of Pictures size for the stream.
# max_gop: 60; # Maximum GOP size for the stream.
# osd_pos_time_x: 10; # X position for the On-Screen Display (OSD) time.
# osd_pos_time_y: 10; # Y position for the OSD.
# osd_pos_user_text_x: 900; # X position for the user-defined text in the OSD.
# osd_pos_user_text_y: 5; # Y position for the user-defined text in the OSD.
# osd_pos_uptime_x: 1600; # X position for the uptime display in the OSD.
# osd_pos_uptime_y: 5; # Y position for the uptime display in the OSD.
# osd_pos_logo_x: 1800; # X position for the logo in the OSD.
# osd_pos_logo_y: 1030; # Y position for the logo in the OSD.
# osd_logo_transparency: 255; # Transparency (0-255) for the logo in the OSD.
# rotation: 0; # Rotation of the video stream. 0: no rotation, 1: 90 degrees, 2: 270 degrees.
# scale_enabled: false; # Enable scaling of the stream (true/false).
# scale_width: 640; # Width of the scaled video stream (in pixels).
# scale_height: 360; # Height of the scaled video stream (in pixels).
};
# Stream1 Settings (JPEG snapshots)
# ---------------------------------
stream1: {
# jpeg_enabled: true; # Enable JPEG snapshots for Stream1.
# 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).
};
osd: {
# enabled: true; # Enable or disable the OSD (On-Screen Display).
# font_path: "/usr/share/fonts/UbuntuMono-Regular2.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: "%I:%M:%S%p %m/%d/%Y"; # Format string for displaying time.
# user_text_enabled: true; # Enable or disable the display of custom user text.
# user_text_string: "thingino"; # Custom text to display in the OSD.
# uptime_display_enabled: true; # Enable or disable the display of system uptime.
# uptime_display_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/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.
};
motion: {
enabled: false; # Enable or disable motion detection.
# 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.
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
};