mirror of
https://github.com/langhuihui/monibuca.git
synced 2026-04-23 05:28:19 +08:00
8a9fffb987
- Refactor frame converter implementation - Update mp4 track to use ICodex - General refactoring and code improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
130 lines
4.4 KiB
YAML
Executable File
130 lines
4.4 KiB
YAML
Executable File
global:
|
|
location:
|
|
"^/hdl/(.*)": "/flv/$1"
|
|
loglevel: debug
|
|
admin:
|
|
enablelogin: false
|
|
debug:
|
|
enableTaskHistory: true #是否启用任务历史记录
|
|
srt:
|
|
listenaddr: :6000
|
|
passphrase: foobarfoobar
|
|
gb28181:
|
|
enable: false # 是否启用GB28181协议
|
|
autoinvite: false #建议使用false,开启后会自动邀请设备推流
|
|
mediaip: 192.168.1.21 #流媒体收流IP,外网情况下使用公网IP,内网情况下使用网卡IP,不要用127.0.0.1
|
|
sipip: 192.168.1.21 #SIP通讯IP,不管公网还是内网都使用本机网卡IP,不要用127.0.0.1
|
|
sip:
|
|
listenaddr:
|
|
- udp::5060
|
|
onsub:
|
|
pull:
|
|
^\d{20}/\d{20}$: $0
|
|
^gb_\d+/(.+)$: $1
|
|
# .* : $0
|
|
platforms:
|
|
- enable: false #是否启用平台
|
|
name: "测试平台" #平台名称
|
|
servergbid: "34020000002000000002" #上级平台GBID
|
|
servergbdomain: "3402000000" #上级平台GB域
|
|
serverip: 192.168.1.106 #上级平台IP
|
|
serverport: 5061 #上级平台端口
|
|
devicegbid: "34020000002000000001" #本平台设备GBID
|
|
deviceip: 192.168.1.106 #本平台设备IP
|
|
deviceport: 5060 #本平台设备端口
|
|
username: "34020000002000000001" #SIP账号
|
|
password: "123456" #SIP密码
|
|
expires: 3600 #注册有效期,单位秒
|
|
keeptimeout: 60 #注册保持超时时间,单位秒
|
|
civilCode: "340200" #行政区划代码
|
|
manufacturer: "Monibuca" #设备制造商
|
|
model: "GB28181" #设备型号
|
|
address: "江苏南京" #设备地址
|
|
register_way: 1
|
|
platformchannels:
|
|
- platformservergbid: "34020000002000000002" #上级平台GBID
|
|
channeldbid: "34020000001110000003_34020000001320000005" #通道DBID,格式为设备ID_通道ID
|
|
mp4:
|
|
# enable: false
|
|
# publish:
|
|
# delayclosetimeout: 3s
|
|
# onpub:
|
|
# record:
|
|
# ^live/.+:
|
|
# fragment: 10s
|
|
# filepath: record/$0
|
|
# pull:
|
|
# live/test: /Users/dexter/Movies/1744963190.mp4
|
|
onsub:
|
|
pull:
|
|
^vod_mp4_\d+/(.+)$: $1
|
|
cascadeserver:
|
|
quic:
|
|
listenaddr: :44944
|
|
# llhls:
|
|
# onpub:
|
|
# transform:
|
|
# .* : 1s x 7
|
|
flv:
|
|
# onpub:
|
|
# record:
|
|
# ^live/.+:
|
|
# fragment: 1m
|
|
# filepath: record/$0
|
|
publish:
|
|
delayclosetimeout: 3s
|
|
onsub:
|
|
pull:
|
|
^vod_flv_\d+/(.+)$: $1
|
|
# pull:
|
|
# live/test: https://livecb.alicdn.com/mediaplatform/afb241b3-408c-42dd-b665-04d22b64f9df.flv?auth_key=1734575216-0-0-c62721303ce751c8e5b2c95a2ec242a0&F=pc&source=34675810_null_live_detail&ali_flv_retain=2
|
|
hls:
|
|
# onsub:
|
|
# pull:
|
|
# ^vod_hls_\d+/(.+)$: $1
|
|
# pull:
|
|
# live/test: https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/gear3/prog_index.m3u8
|
|
# onpub:
|
|
# transform:
|
|
# .* : 5s x 3
|
|
#rtsp:
|
|
# pull:
|
|
# live/test: rtsp://admin:1qaz2wsx3EDC@giroro.tpddns.cn:1554/Streaming/Channels/101
|
|
# live/test: rtsp://admin:1qaz2wsx3EDC@localhost:8554/live/test
|
|
|
|
snap:
|
|
enable: false
|
|
onpub:
|
|
transform:
|
|
.+:
|
|
output:
|
|
- watermark:
|
|
text: "abcd" # 水印文字内容
|
|
fontpath: /Users/dexter/Library/Fonts/MapleMono-NF-CN-Medium.ttf # 水印字体文件路径
|
|
fontcolor: "rgba(255,165,0,1)" # 水印字体颜色,支持rgba格式
|
|
fontsize: 36 # 水印字体大小
|
|
offsetx: 0 # 水印位置X偏移
|
|
offsety: 0 # 水印位置Y偏移
|
|
timeinterval: 1s # 截图时间间隔
|
|
savepath: "snaps" # 截图保存路径
|
|
iframeinterval: 3 # 间隔多少帧截图
|
|
querytimedelta: 3 # 查询截图时允许的最大时间差(秒)
|
|
onvif:
|
|
enable: false
|
|
discoverinterval: 3 # 发现设备的间隔,单位秒,默认30秒,建议比rtsp插件的重连间隔大点
|
|
autopull: true
|
|
autoadd: true
|
|
interfaces: # 设备发现指定网卡,以及该网卡对应IP段的全局默认账号密码,支持多网卡
|
|
- interfacename: 以太网 # 网卡名称 或者"以太网" "eth0"等,使用ipconfig 或者 ifconfig 查看网卡名称
|
|
username: admin # onvif 账号
|
|
password: admin # onvif 密码
|
|
# - interfacename: WLAN 2 # 网卡2
|
|
# username: admin
|
|
# password: admin
|
|
# devices: # 可以给指定设备配置单独的密码
|
|
# - ip: 192.168.1.1
|
|
# username: admin
|
|
# password: '123'
|
|
# - ip: 192.168.1.2
|
|
# username: admin
|
|
# password: '456' |