keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.65k stars 230 forks source link

Is there in the horizon the support for HLS camera? #123

Closed mazzy89 closed 2 years ago

mazzy89 commented 2 years ago

I have a doorbird camera and w/ the RSTP protocol the camera added to the Unifi Protect is pretty unusable. the image are very late updated here some logs

2021-11-30 11:47:47 unifi-cam-proxy-5f4787c6d9-rsqcq RTSPCam[1] INFO Processing [ChangeVideoSettings] message
2021-11-30 11:47:47 unifi-cam-proxy-5f4787c6d9-rsqcq RTSPCam[1] INFO Spawning ffmpeg for video1 (8w10T8wOPf4YcjUR): ffmpeg -nostdin -y -stimeout 15000000 -rtsp_transport tcp -i "rtsp://ghkqdy0005:pwd@192.168.10.88/mpeg/media.amp" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=8w10T8wOPf4YcjUR -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 192.168.10.1 7550
2021-11-30 11:47:47 unifi-cam-proxy-5f4787c6d9-rsqcq RTSPCam[1] INFO Processing [ChangeVideoSettings] message
2021-11-30 11:47:47 unifi-cam-proxy-5f4787c6d9-rsqcq RTSPCam[1] INFO Spawning ffmpeg for video3 (7N6P0XFIYCIyD91t): ffmpeg -nostdin -y -stimeout 15000000 -rtsp_transport tcp -i "rtsp://ghkqdy0005:pwd@192.168.10.88/mpeg/media.amp" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=7N6P0XFIYCIyD91t -f flv - | /usr/local/bin/python -m unifi.clock_sync | nc 192.168.10.1 7550

the camera however works great w/ home assistant because the implementation is via HLS a better protocol imo.

is the support in the horizon? If not then I would for the project and work to add it.

keshavdv commented 2 years ago

Unlikely, mostly because the Unifi side can't ingest it. Is viewing the stream in VLC much more real-time than through Protect?

keshavdv commented 2 years ago

Feel free to re-open if you have some more data