-
Notifications
You must be signed in to change notification settings - Fork 42
/
moment.conf
72 lines (58 loc) · 1.35 KB
/
moment.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
// Put your server's IP address or hostname here
#define HOST 127.0.0.1
#define WEBHOST HOST/index.php/cams/check
#define RTMP 1935
#define RTMPT 8081
#define HTTP 8080
#define ADMIN 8082
moment {
this_rtmp_server_addr = HOST:RTMP
this_http_server_addr = HOST:HTTP
this_rtmpt_server_addr = HOST:RTMPT
// Allow anonymous publishing
publish_all = yes
confd_dir = "/opt/nvr/conf.d"
num_threads = 0
}
http {
http_bind = :HTTP
}
mod_rtmp {
rtmp_bind = :RTMP
rtmpt_bind = :RTMPT
// Server-side buffering time in milliseconds.
// Set to 0 for real-time communication applications.
// Higher values reduce CPU usage.
send_delay = 100
enable_validation = y
validation_server_addr = WEBHOST
}
mod_gst {
enable = y
}
mod_hls {
enable = y
}
mod_nvr {
enable = y
recpath_conf = "/opt/nvr/recpath.conf"
file_duration = 60
// 31 день == 44640 минут
max_age = 44640
download_limit = 3600 // in sec
}
mod_file {
{
prefix = "nvrserver"
path = "/opt/nvr/share/moment/myplayer"
vars {
enable MyPlayerPlaylist = "/server/playlist.json"
enable MyPlayerPlaylistHeader = "Sources"
enable MyPlayerRecords = "/mod_nvr/existence?stream="
enable MyPlayerRecordsHeader = "Archive"
disable MyPlayerAutoplay
// Player buffer duration in seconds
MyPlayerBuffer = "2.0"
}
}
}