config.ini 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. ; auto-generated by mINI class {
  2. [api]
  3. apiDebug=1
  4. defaultSnap=./www/logo.png
  5. secret=034523TF8yT83wh5Wvz73f7
  6. snapRoot=./www/snap/
  7. [cluster]
  8. origin_url=
  9. retry_count=3
  10. timeout_sec=15
  11. [ffmpeg]
  12. bin=/usr/bin/ffmpeg
  13. cmd=%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s
  14. log=./ffmpeg/ffmpeg.log
  15. restart_sec=0
  16. snap=%s -i %s -y -f mjpeg -t 0.001 %s
  17. [general]
  18. check_nvidia_dev=1
  19. enableVhost=0
  20. enable_ffmpeg_log=0
  21. flowThreshold=1024
  22. maxStreamWaitMS=15000
  23. mediaServerId=GQ3TF8yT83wh5Wvz
  24. mergeWriteMS=0
  25. resetWhenRePlay=1
  26. streamNoneReaderDelayMS=15000
  27. unready_frame_cache=100
  28. wait_add_track_ms=3000
  29. wait_track_ready_ms=10000
  30. [hls]
  31. broadcastRecordTs=0
  32. deleteDelaySec=10
  33. fileBufSize=65536
  34. segDur=2
  35. segKeep=0
  36. segNum=3
  37. segRetain=5
  38. [hook]
  39. admin_params=secret=034523TF8yT83wh5Wvz73f7
  40. alive_interval=30.000000
  41. enable=1
  42. on_flow_report=
  43. on_http_access=
  44. on_play=http://192.168.1.3:18082/index/hook/on_play
  45. on_publish=http://192.168.1.3:18082/index/hook/on_publish
  46. on_record_mp4=
  47. on_record_ts=
  48. on_rtp_server_timeout=http://192.168.1.3:18082/index/hook/on_rtp_server_timeout
  49. on_rtsp_auth=
  50. on_rtsp_realm=
  51. on_send_rtp_stopped=http://192.168.1.3:18082/index/hook/on_send_rtp_stopped
  52. on_server_keepalive=http://192.168.1.3:18082/index/hook/on_server_keepalive
  53. on_server_started=http://192.168.1.3:18082/index/hook/on_server_started
  54. on_shell_login=
  55. on_stream_changed=http://192.168.1.3:18082/index/hook/on_stream_changed
  56. on_stream_none_reader=http://192.168.1.3:18082/index/hook/on_stream_none_reader
  57. on_stream_not_found=http://192.168.1.3:18082/index/hook/on_stream_not_found
  58. retry=1
  59. retry_delay=3.000000
  60. timeoutSec=20
  61. [http]
  62. charSet=utf-8
  63. dirMenu=1
  64. forbidCacheSuffix=
  65. forwarded_ip_header=
  66. keepAliveSecond=15
  67. maxReqSize=40960
  68. notFound=<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>您访问的资源不存在!</h1></center><hr><center>ZLMediaKit(git hash:f6cba98/2023-02-06T14:18:21+08:00,branch:master,build time:2023-02-07T10:51:47)</center></body></html>
  69. port=6080
  70. rootPath=./www
  71. sendBufSize=65536
  72. sslport=16080
  73. virtualPath=
  74. [multicast]
  75. addrMax=239.255.255.255
  76. addrMin=239.0.0.0
  77. udpTTL=64
  78. [protocol]
  79. add_mute_audio=1
  80. continue_push_ms=3000
  81. enable_audio=1
  82. enable_fmp4=1
  83. enable_hls=1
  84. enable_mp4=0
  85. enable_rtmp=1
  86. enable_rtsp=1
  87. enable_ts=1
  88. fmp4_demand=0
  89. hls_demand=0
  90. hls_save_path=./www
  91. modify_stamp=2
  92. mp4_as_player=0
  93. mp4_max_second=300
  94. mp4_save_path=./www
  95. rtmp_demand=0
  96. rtsp_demand=0
  97. ts_demand=0
  98. [record]
  99. appName=record
  100. fastStart=0
  101. fileBufSize=65536
  102. fileRepeat=0
  103. sampleMS=500
  104. [rtc]
  105. externIP=192.168.1.3
  106. port=8000
  107. preferredCodecA=PCMA,PCMU,opus,mpeg4-generic
  108. preferredCodecV=H264,H265,AV1,VP9,VP8
  109. rembBitRate=0
  110. tcpPort=8000
  111. timeoutSec=15
  112. [rtmp]
  113. handshakeSecond=15
  114. keepAliveSecond=15
  115. modifyStamp=0
  116. port=1935
  117. sslport=19350
  118. [rtp]
  119. audioMtuSize=600
  120. lowLatency=0
  121. rtpMaxSize=10
  122. videoMtuSize=1400
  123. [rtp_proxy]
  124. dumpDir=
  125. h264_pt=98
  126. h265_pt=99
  127. opus_pt=100
  128. port=10000
  129. port_range=40000-40500
  130. ps_pt=96
  131. timeoutSec=15
  132. [rtsp]
  133. authBasic=0
  134. directProxy=1
  135. handshakeSecond=15
  136. keepAliveSecond=15
  137. lowLatency=0
  138. port=10554
  139. sslport=
  140. [shell]
  141. maxReqSize=1024
  142. port=9000
  143. [srt]
  144. latencyMul=4
  145. pktBufSize=8192
  146. port=9000
  147. timeoutSec=5
  148. [transcode]
  149. acodec=pcma
  150. decoder_h264=h264_qsv,h264_videotoolbox,h264_bm,libopenh264
  151. decoder_h265=hevc_qsv,hevc_videotoolbox,hevc_bm
  152. enable_ffmpeg_log=0
  153. encoder_h264=h264_qsv,h264_videotoolbox,h264_bm,libx264,libopenh264
  154. encoder_h265=hevc_qsv,hevc_videotoolbox,hevc_bm,libx265
  155. filter=
  156. suffix=transport
  157. vcodec=H264
  158. ; } ---