KoynovStas / onvif_srvd

ONVIF Device(IP camera) Service server (Linux daemon)
GNU General Public License v2.0
265 stars 115 forks source link

Adding UniFi cameras to external DVR #37

Open djkamil1000 opened 3 years ago

djkamil1000 commented 3 years ago

Hello! I want to add UniFi cameras running via UniFi Protect application on UniFi Dream Machine Pro to external DVR - HQvision HQ-THD3204A-720P, that allows to add Hikvision or ONVIF cameras only (UniFi cameras have RTSP stream only). While searching for a way to connect these cameras, I found this project. I cross compiled onvif_srvd binary for UniFi Dream Machine Pro (arm64 architecture) with WSSE_ON=1 flag. I run daemon on UDM with this flags: onvif_srvd --ifs br0 --scope onvif://www.onvif.org/name/cam-loc-pp-a --scope onvif://www.onvif.org/Profile/Streaming --name RTSP --width 1024 --height 576 --url rtsp://%s:7447/key --type H264 After starting, I can view a stream from a camera on Windows computer using ONVIF Device Manager. But on the DVR I can add camera and it shows as online, but stream doesn't appear. I tried some changes (better/worse quality, other stream type), but still it's not possible to view stream from UniFi cameras (also in some cases it was not possible to view stream in ONVIF Device Manager). Are there any other ways to run these streams on the DVR?

KoynovStas commented 3 years ago

I don't know how to help you. I am not professionally engaged in IPTV. But I can say that once on one of the DVR the RTSP stream did not show. BUT everything was fine on the Web interface of the same DVR. So this is the problem of the DVR. ONVIF is only needed to search and exchange URLs. it has nothing to do with the RTSP. If the onvif_srvd gave the URL, he fully completed his task.