forked from iizukanao/node-rtsp-rtmp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.coffee
100 lines (73 loc) · 2.6 KB
/
config.coffee
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
module.exports =
#######################
## Basic configurations
#######################
# Server listen port
serverPort: 80
# Server name which will be embedded in
# RTSP and HTTP response headers.
# Default server name is used when this value is null.
serverName: 'node-rtsp-rtmp-server'
# Average frame rate of video (informative)
videoFrameRate: 30
# Video bitrate in Kbps (informative)
videoBitrateKbps: 2000
# Audio bitrate in Kbps (informative)
audioBitrateKbps: 40
# What transport is used for feeding audio/video data
receiverType: 'unix' # 'unix' or 'tcp' or 'udp'
# For receiverType == 'unix'
# UNIX domain socket used for receiving audio/video data
videoControlReceiverPath: '/tmp/node_rtsp_rtmp_videoControl'
audioControlReceiverPath: '/tmp/node_rtsp_rtmp_audioControl'
videoDataReceiverPath : '/tmp/node_rtsp_rtmp_videoData'
audioDataReceiverPath : '/tmp/node_rtsp_rtmp_audioData'
# For receiverType == 'tcp' or 'udp'
receiverListenHost : '0.0.0.0'
videoControlReceiverPort: 1111
audioControlReceiverPort: 1112
videoDataReceiverPort : 1113
audioDataReceiverPort : 1114
# For receiverType == 'tcp'
receiverTCPBacklog: 511
# Server ports for RTP and RTCP
audioRTPServerPort : 7042 # even
audioRTCPServerPort: 7043 # odd and contiguous
videoRTPServerPort : 7044 # even
videoRTCPServerPort: 7045 # odd and contiguous
# RTMP stream name
rtmpApplicationName: 'live'
# Enable RTMPT and RTMPTE
enableRTMPT: true
flv:
# Has video?
hasVideo: true
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.3.1 VIDEODATA
videocodecid: 7 # H.264
# See: Adobe Flash Video File Format Specification Version 10.1 - E.4.2.1 AUDIODATA
audiocodecid: 10 # AAC
##########################
## Advanced configurations
##########################
# Period size of each audio frame. Use 1024 for picam.
audioPeriodSize: 1024
# HTTP keepalive timeout
keepaliveTimeoutMs: 30000 # milliseconds
# RTSP
rtcpSenderReportIntervalMs: 5000 # milliseconds
# RTMP ping timeout
rtmpPingTimeoutMs: 5000 # milliseconds
# RTMP session timeout
rtmpSessionTimeoutMs: 600000 # milliseconds
# RTMPT session timeout
rtmptSessionTimeoutMs: 600000 # milliseconds
# RTMP play chunk size
rtmpPlayChunkSize: 4096 # bytes
# Maximum number of RTMP messages being sent at once
rtmpMessageQueueSize: 5
# If true, H.264 access unit delimiter NAL units are
# not sent to clients
dropH264AccessUnitDelimiter: true
debug:
# If true, all incoming data are ignored
dropAllData: false