Making a baby cam with the Raspberry Pi HQ Cam

This page summarizes the projects mentioned and recommended in the original post on /r/homebridge

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • homebridge

    HomeKit support for the impatient.

  • 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.

  • homebridge-camera-ffmpeg

    Homebridge Plugin Providing FFmpeg-based Camera Support

  • 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!

  • 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.

    SurveyJS logo
  • 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 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts