Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
ffmpeg-for-homebridge
Static FFmpeg binaries for Homebridge with support for audio (libfdk-aac) and hardware-accelerated decoding and encoding (h264_qsv, h264_v4l2m2m, videotoolbox).
I started out buying a Raspberry Pi 4 and the HQ Camera attachment (https://www.raspberrypi.org/products/raspberry-pi-high-quality-camera/), thinking the bigger sensor would results in a significant better picture than using an external webcam. For software, I first started out with the Homebridge Raspberry Pi image, but as there's no support for the HQ camera built-in, that was a no go. Vanilla Raspbian with Homebridge installed afterwards (https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian) is the way to go.
Setting up Homebridge to get the image to Homekit was relatively easy. I have another Pi running Homebridge on my network, so I have a little experience setting things up. Using the homebridge-camera-ffmpeg plying (https://github.com/Sunoo/homebridge-camera-ffmpeg) works great! Using this as source: -re -f video4linux2 -input_format mjpeg -i /dev/video0 and this for stillImageSource: -f video4linux2 -ss 0.9 -i /dev/video2 -vframes 1 got me up and running in no time! Great, I was very happy with myself as the picture was now visible on my iPhone!
I figured out that, for some reason, Homebridge wants to use libfdk_aac as the audio codec for the audio stream. Alas, the supplied FFmpeg only has the (inferior) native AAC encoder installed. No worries, you have to install ffmpeg-for-homebridge (sudo curl -Lf# https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-raspbian-armv6l.tar.gz | sudo tar xzf - -C / --no-same-owner), which comes with libfdk_aac support compiled.
Related posts
- Is it possible to install HomeBridge OS on an old Windows PC? I know it’s possible on a RPI device but wondering about PC. Or help with ffmpeg pre-compiled with audio support (libfdk-aac) support for PC
- Trying to get 3 Momentum cams I got from Walmart several years ago to work with the Homebridge Camera Ffmpeg plugin. Any help?
- Need Help with "Unable to find Homebridge Installation" Error on Hyper-V
- PS5 Plugin, renaming device?
- homebridge on Synology NAS, doesnt work