Skip to content

Instantly share code, notes, and snippets.

@sdjnes
Last active February 8, 2025 10:25
Show Gist options
  • Save sdjnes/5853146d754a9df5d51eff2b501f9885 to your computer and use it in GitHub Desktop.
Save sdjnes/5853146d754a9df5d51eff2b501f9885 to your computer and use it in GitHub Desktop.
Tapo C100 Frigate setup with audio

For Tapo C100 cameras with audio in recordings and live preview, as well as audio in the Home Assistant Frigate card.

Make sure to setup the "Camera Account" in "Advanced Settings" through the Tapo app first.

Fill in any {{variable}} with your details.

...
go2rtc:
streams:
# Encode the main stream and sub-stream as h264 with AAC audio
{{stream_name}}:
- rtsp://{{camera_user}}:{{camera_password}}@{{camera_ip}}:554/stream1
- "ffmpeg:{{stream_name}}#audio=aac#video=h264#hardware"
{{stream_name}}_sub:
- rtsp://{{camera_user}}:{{camera_password}}@{{camera_ip}}:554/stream2
- "ffmpeg:{{stream_name}}_sub#audio=aac#video=h264#hardware"
cameras:
{{camera_name}}:
ffmpeg:
output_args:
record: preset-record-generic-audio-aac
inputs:
# Use the lower quality sub-stream for detection
- path: rtsp://{{frigate_host_ip}}:8554/{{stream_name}}_sub
input_args: preset-rtsp-restream
roles:
- detect
# Use the higher quality main stream for recording
- path: rtsp://{{frigate_host_ip}}:8554/{{stream_name}}?video&audio
input_args: preset-rtsp-restream
roles:
- record
# Adjust this arg as needed for your hardware
hwaccel_args: preset-vaapi
live:
stream_name: {{stream_name}}
...
type: custom:frigate-card
cameras:
- frigate:
camera_name: {{stream_name}}
live_provider: go2rtc
view: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment