config.ini 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. ; auto-generated by mINI class {
  2. [api]
  3. apiDebug=1
  4. defaultSnap=./www/logo.png
  5. secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc
  6. snapRoot=./www/snap/
  7. [cluster]
  8. origin_url=
  9. retry_count=3
  10. timeout_sec=15
  11. [ffmpeg]
  12. bin=/usr/local/bin/ffmpeg
  13. cmd=%s -fflags nobuffer -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. addMuteAudio=1
  19. check_nvidia_dev=1
  20. continue_push_ms=3000
  21. enableVhost=0
  22. enable_audio=0
  23. enable_ffmpeg_log=0
  24. flowThreshold=1024
  25. fmp4_demand=0
  26. hls_demand=0
  27. maxStreamWaitMS=15000
  28. mediaServerId=your_server_id
  29. mergeWriteMS=0
  30. modifyStamp=0
  31. publishToHls=1
  32. publishToMP4=0
  33. resetWhenRePlay=1
  34. rtmp_demand=0
  35. rtsp_demand=0
  36. streamNoneReaderDelayMS=60000
  37. ts_demand=0
  38. unready_frame_cache=100
  39. wait_add_track_ms=3000
  40. wait_track_ready_ms=10000
  41. [hls]
  42. broadcastRecordTs=0
  43. deleteDelaySec=0
  44. fileBufSize=65536
  45. filePath=./www
  46. segDur=2
  47. segKeep=0
  48. segNum=3
  49. segRetain=5
  50. [hook]
  51. admin_params=secret=035c73f7-bb6b-4889-a715-d9eb2d1925cc
  52. alive_interval=10.0
  53. enable=1
  54. on_flow_report=http://192.168.1.21:29001/index/hook/on_flow_report
  55. on_http_access=http://192.168.1.21:29001/index/hook/on_http_access
  56. on_play=http://192.168.1.21:29001/index/hook/on_play
  57. on_publish=http://192.168.1.21:29001/index/hook/on_publish
  58. on_record_mp4=
  59. on_record_ts=http://192.168.1.21:29001/index/hook/on_record_ts
  60. on_rtsp_auth=http://192.168.1.21:29001/index/hook/on_rtsp_auth
  61. on_rtsp_realm=http://192.168.1.21:29001/index/hook/on_rtsp_realm
  62. on_send_rtp_stopped=http://192.168.1.21:29001/index/hook/on_send_rtp_stopped
  63. on_server_keepalive=http://192.168.1.21:29001/index/hook/on_server_keepalive
  64. on_server_started=http://192.168.1.21:29001/index/hook/on_server_started
  65. on_shell_login=http://192.168.1.21:29001/index/hook/on_shell_login
  66. on_stream_changed=http://192.168.1.21:29001/index/hook/on_stream_changed
  67. on_stream_none_reader=http://192.168.1.21:29001/index/hook/on_stream_none_reader
  68. on_stream_not_found=http://192.168.1.21:29001/index/hook/on_stream_not_found
  69. retry=1
  70. retry_delay=3.0
  71. timeoutSec=20
  72. [http]
  73. charSet=utf-8
  74. dirMenu=1
  75. forbidCacheSuffix=
  76. forwarded_ip_header=
  77. keepAliveSecond=30
  78. maxReqSize=40960
  79. notFound=<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>您访问的资源不存在!</h1></center><hr><center>ZLMediaKit(git hash:cf5527e,branch:master,build time:Oct 12 2022 11:31:51)</center></body></html>
  80. port=15070
  81. rootPath=./www
  82. sendBufSize=65536
  83. sslport=29010
  84. virtualPath=
  85. [multicast]
  86. addrMax=239.255.255.255
  87. addrMin=239.0.0.0
  88. udpTTL=64
  89. [record]
  90. appName=record
  91. fastStart=0
  92. fileBufSize=65536
  93. filePath=./www
  94. fileRepeat=0
  95. fileSecond=3600
  96. mp4_as_player=0
  97. sampleMS=500
  98. [rtc]
  99. externIP=192.168.1.203
  100. port=29100
  101. preferredCodecA=PCMU,PCMA,opus,mpeg4-generic
  102. preferredCodecV=H264,H265,AV1X,VP9,VP8
  103. rembBitRate=0
  104. timeoutSec=15
  105. [rtmp]
  106. handshakeSecond=15
  107. keepAliveSecond=15
  108. modifyStamp=0
  109. port=11935
  110. sslport=0
  111. [rtp]
  112. audioMtuSize=600
  113. rtpMaxSize=10
  114. videoMtuSize=1400
  115. [rtp_proxy]
  116. dumpDir=
  117. g711a_pt=8
  118. g711u_pt=0
  119. h264_pt=98
  120. h265_pt=99
  121. opus_pt=100
  122. port=30000
  123. port_range=30000-30500
  124. ps_pt=96
  125. timeoutSec=15
  126. ts_pt=33
  127. [rtsp]
  128. authBasic=0
  129. directProxy=1
  130. handshakeSecond=15
  131. keepAliveSecond=15
  132. port=11554
  133. sslport=0
  134. [shell]
  135. maxReqSize=1024
  136. port=0
  137. [srt]
  138. latencyMul=4
  139. pktBufSize=8192
  140. port=29101
  141. timeoutSec=5
  142. ; } ---