Skip to content
Dusty Greif edited this page Aug 24, 2019 · 15 revisions

Homebridge Audio Support

To use audio with the homebridge-ring plugin, you must have ffmpeg installed with the libfdk_aac library. To do this properly on a Raspberry pi, run the following commands:

# install build tools
sudo apt-get install git pkg-config autoconf automake libtool libx264-dev

# download and build fdk-aac
git clone https://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
./autogen.sh
./configure --prefix=/usr/local --enable-shared --enable-static
make -j4
sudo make install
sudo ldconfig
cd ..

# download and build ffmpeg
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
./configure --prefix=/usr/local --arch=armel --target-os=linux --enable-omx-rpi --enable-nonfree --enable-gpl --enable-libfdk-aac --enable-mmal --enable-libx264 --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-demuxer=rtsp
make -j4
sudo make install

If you are running homebridge on a different platform, you will need to research how to build ffmpeg. The most important part is that you include --enable-libfdk-aac when building ffmpeg to enable the libfdk_aac codec.

Once you have ffmpeg with libfdk_aac installed on your homebridge server, you should immediately be able to receive audio in your camera streams. There are a few known issues at this point:

  • Audio takes a few seconds to start after video stream appears - this lag time is due to ffmpeg taking some time to start up. I might be able to reduce this delay in the future, but no promises.
  • No two-way audio yet
Clone this wiki locally