Open Denna93 opened 5 years ago
Hello, I spent some hours to have the stream working. My homebridge runs in a docker container on synology nas. I read all the things i found. Finally i found that the stream was causing a high cpu load. I had to lower the bitrate of the stream in unifi video server. Would be a good thing to have the option of the number of the stream to use. I want to record with a high bitrate but don't need it to view on my smartphone.
@caplam did you find that the NVR container was the one with high CPU usage, or the homebridge container?
The homebridge container was the one with high cpu usage due to high bitrate. Unfortunately my nas has troubles so i'm moving containers and other services to another computer to troubleshoot it and perhaps send it back to synology (i'm suspecting the intel atom bug). So for now i'm trying to setup the homebridge container in a proxmox lxc container but with now success.
For me the issue was the resolution and video settings : On local network the stream request was using : -vf scale=1280:720 -b:v 299k -bufsize 299k On LTE network (WAN) the stream request was using : -vf scale=640:360 -b:v 132k -bufsize 132k
Limiting the RTSP stream in the NVR to only 640:360, removing the camera from HOME app, adding it again fixed Local / Internet Streaming for now at 640x360.
I don't understand 1280 x 720 isn't even an official resolution for my G3 Flex camera RTSP settings...
Probably a bug in the plugin.
Hello. I am having trouble getting the stream to work. Snap works but the stream doesnt.
From homebridge:
-rtsp_transport http -re -i rtsp://192.168.2.147:7447/5bafe117e818a74cbf741f72_0?apiKey=****-threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 299k -bufsize 299k -payload_type 99 -ssrc 677713 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 8IyMo91nDuQo1Hh0EKWcjER0wRN21F2vBxw3Bd/o srtp://192.168.2.11:57862?rtcpport=57862&localrtcpport=57862&pkt_size=1378