-
Notifications
You must be signed in to change notification settings - Fork 786
onvif: Add Support for Camera Names and Main/Sub stream #1654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 7 commits
3ed4928
92749fe
44a5624
65a5138
f953273
05a13bc
030611a
253f8ec
bdb9da8
50884f8
35f5818
72b04e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,6 +86,7 @@ Ultimate camera streaming application with support RTSP, WebRTC, HomeKit, FFmpeg | |
| * [Module: MP4](#module-mp4) | ||
| * [Module: HLS](#module-hls) | ||
| * [Module: MJPEG](#module-mjpeg) | ||
| * [Module: ONVIF](#module-onvif) | ||
| * [Module: Log](#module-log) | ||
| * [Security](#security) | ||
| * [Codecs filters](#codecs-filters) | ||
|
|
@@ -175,6 +176,7 @@ Available modules: | |
| - [mp4](#module-mp4) - MSE, MP4 stream and MP4 snapshot Server | ||
| - [hls](#module-hls) - HLS TS or fMP4 stream Server | ||
| - [mjpeg](#module-mjpeg) - MJPEG Server | ||
| - [onvif](#module-onvif) - ONVIF server | ||
| - [ffmpeg](#source-ffmpeg) - FFmpeg integration | ||
| - [ngrok](#module-ngrok) - ngrok integration (external access for private network) | ||
| - [hass](#module-hass) - Home Assistant integration | ||
|
|
@@ -586,7 +588,7 @@ Support import camera links from [Home Assistant](https://www.home-assistant.io/ | |
|
|
||
| - [Generic Camera](https://www.home-assistant.io/integrations/generic/), setup via GUI | ||
| - [HomeKit Camera](https://www.home-assistant.io/integrations/homekit_controller/) | ||
| - [ONVIF](https://www.home-assistant.io/integrations/onvif/) | ||
| - [ONVIF](https://www.home-assistant.io/integrations/onvif/) via [Module: ONVIF](#module-onvif) | ||
| - [Roborock](https://github.com/humbertogontijo/homeassistant-roborock) vacuums with camera | ||
|
|
||
| ```yaml | ||
|
|
@@ -1208,6 +1210,46 @@ API examples: | |
|
|
||
| [](https://www.youtube.com/watch?v=sHj_3h_sX7M) | ||
|
|
||
| ### Module: ONVIF | ||
|
|
||
| This module provides an **ONVIF server** that allows go2rtc to act as an ONVIF-compatible device, making it easier to integrate cameras with ONVIF-supported software like Dahua NVRs or Home Assistant. | ||
|
|
||
| With ONVIF support, go2rtc can: | ||
| - Expose configured streams as ONVIF profiles. | ||
| - Provide additional ONVIF functionalities like `GetOSDs` to show camera name in Dahua NVR. | ||
| - Maintain a **consistent camera order** to prevent issues with NVRs that rely on `GetProfilesResponse` for identification. | ||
|
|
||
| **Example Configuration** | ||
|
|
||
| ```yaml | ||
| onvif: | ||
| - name: Camera 1 | ||
| main_stream: camera1 | ||
| sub_stream: camera1_lq | ||
|
||
| - name: Camera 2 | ||
| main_stream: camera2 | ||
| sub_stream: camera2_lq | ||
|
|
||
| streams: | ||
| camera1: | ||
| - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0&unicast=true | ||
| camera1_lq: | ||
| - ffmpeg:camera1#video=h264#height=360 | ||
| camera2: | ||
| - rtsp://admin:[email protected]/cam/realmonitor?channel=1&subtype=0&unicast=true | ||
| camera2_lq: | ||
| - ffmpeg:camera2#video=h264#height=360 | ||
| ``` | ||
|
|
||
| **Example Dahua NVR configuration:** | ||
| - **Channel**: <camera channel on NVR> | ||
| - **Manufacturer**: ONVIF | ||
| - **IP Address**: <go2rtc IP> | ||
| - **RTSP Port**: Self-adaptive | ||
| - **HTTP Port**: <go2rtc http api port, eg. 1984> | ||
| - **Username / Password**: Currently auth is not supported by go2rtc | ||
| - **Remote CH No.**: <camera index from onvif array, counting from 1> | ||
|
|
||
streamthing marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ### Module: Log | ||
|
|
||
| You can set different log levels for different modules. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the wrong section, this one is talking about importing cameras FROM Home Assistant, not TO Home Assistant. Please revert this.
Here is where I meant:
https://github.com/AlexxIT/go2rtc#module-hass:~:text=Integrations%20%3E%20Add%20Integration-,%3E%20ONVIF%20%3E,-Host%3A%20127.0.0.1