https://github.com/monibuca/plugin-onvif
ONVIF plugin for monibuca
https://github.com/monibuca/plugin-onvif
Last synced: 3 months ago
JSON representation
ONVIF plugin for monibuca
- Host: GitHub
- URL: https://github.com/monibuca/plugin-onvif
- Owner: Monibuca
- Created: 2020-02-27T10:24:40.000Z (over 6 years ago)
- Default Branch: v4
- Last Pushed: 2023-05-12T02:29:05.000Z (about 3 years ago)
- Last Synced: 2025-04-29T14:34:53.768Z (about 1 year ago)
- Language: Go
- Size: 43 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# onvif 拉流
仅实现了onvif设备发现,并通过rtsp拉流,暂未实现onvif协议其它功能,如需其它功能,请加群联系购买Pro版。
**注意** onvif 监听了udp 1024端口,使用了广播,可能需要在路由器或者电脑防火墙设置一下
# 预览onvif流
打开m7s `/preview` 界面,onvif 设备视频流如下图所示,格式为:`onvif/ip_port`

配置如下:
```yaml
onvif:
discoverinterval: 30 # 发现设备的间隔,单位秒,默认30秒,建议比rtsp插件的重连间隔大点
interfaces: # 设备发现指定网卡,以及该网卡对应IP段的全局默认账号密码,支持多网卡
- interfacename: WLAN # 网卡名称 或者"以太网" "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'
```