-
-
Notifications
You must be signed in to change notification settings - Fork 178
Camera Audio
mrlt8 edited this page Mar 9, 2023
·
1 revision
Audio is disabled by default and must be enabled in the ENV.
-
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
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
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