mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
119 lines
3.3 KiB
YAML
Executable File
119 lines
3.3 KiB
YAML
Executable File
global:
|
||
location:
|
||
"^/hdl/(.*)": "/flv/$1"
|
||
loglevel: debug
|
||
admin:
|
||
enablelogin: false
|
||
srt:
|
||
listenaddr: :6000
|
||
passphrase: foobarfoobar
|
||
gb28181:
|
||
enable: false
|
||
autoinvite: false
|
||
mediaip: 192.168.1.21 #流媒体收流IP
|
||
sipip: 192.168.1.21 #SIP通讯IP
|
||
sip:
|
||
listenaddr:
|
||
- udp::5060
|
||
# pull:
|
||
# live/test: dump/34020000001320000001
|
||
onsub:
|
||
pull:
|
||
.* : $0
|
||
mp4:
|
||
# enable: false
|
||
# publish:
|
||
# delayclosetimeout: 3s
|
||
# onpub:
|
||
# record:
|
||
# ^live/.+:
|
||
# fragment: 10s
|
||
# filepath: record/$0
|
||
# type: fmp4
|
||
# 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 # 查询截图时允许的最大时间差(秒)
|
||
|
||
crypto:
|
||
enable: false
|
||
isstatic: false
|
||
algo: aes_ctr # 加密算法 支持 aes_ctr xor_c
|
||
encryptlen: 1024
|
||
secret:
|
||
key: your key
|
||
iv: your iv
|
||
onpub:
|
||
transform:
|
||
.* : $0
|
||
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' |