How to enable Unifi Protect to work with Apple Homekit using a Raspberry pi and the Homebridge application.
I was struggling to find the correct setting to enable Homebridge to connect to my Unifi Protect and G3-Flex camera’s. After alot of back and forth here are the working settings for ffmpeg.
{
“cameras”: [
{
“name”: “Camera Name”,
“motion”: true,
“videoConfig”: {
“source”: “-re -rtsp_transport tcp -i rtsp://Cloudkey URL:7443”,
“stillImageSource”: “-i http://xxx.xxx.xxx.xxx/snap.jpeg”,
“maxStreams”: 2,
“maxWidth”: 1920,
“maxHeight”: 1080,
“maxFPS”: 30,
“vcodec”: “h264_omx”,
“additionalCommandline”: “-preset slow -profile:v high -level 4.2 -x264-params intra-refresh=1:bframes=0”,
“mapvideo”: “0:1”,
“mapaudio”: “0:0”,
“audio”: false,
“debug”: false
}
}
],
“platform”: “Camera-ffmpeg”
}