Skip to content

Camera Audio

mrlt8 edited this page Mar 9, 2023 · 1 revision

Audio is disabled by default and must be enabled in the ENV.

Enable audio

  • For all cameras:

    environment:
        ..
        - ENABLE_AUDIO=True
  • For a specific camera:

    where CAM_NAME is the camera name in UPPERCASE and _ in place of spaces and hyphens:

      - ENABLE_AUDIO_CAM_NAME=True
      - ENABLE_AUDIO_OTHER_CAM=True

    🏠 Home Assistant - Use CAM_OPTIONS and add a new entry for each camera:

    - CAM_NAME: Cam Name
      AUDIO: true
    - CAM_NAME: other cam
      AUDIO: true

Audio output codec

By default, the bridge will attempt to copy the audio from the camera without re-encoding unless the camera is using a codec that isn't supported by RTSP, in which case the audio will be converted to OPUS for WebRTC compatibility.

The AUDIO_CODEC ENV can be used should you need to re-encode the audio to another format for compatibility:

  - AUDIO_CODEC=AAC

Audio filtering

Custom ffmpeg audio filters can be set with AUDIO_FILTER, but please note that audio filters will only be applied if re-encoding to another codec.

  - AUDIO_FILTER=highpass=f=300,lowpass=f=2500,volume=volume=2