Skip to main content

Frigate Configuration

Using the HTTPS streams​

Use the example config below to add your phone's camera to Frigate & update the URLs. The android-cam composite stream additionally wires up two-way talk / push-to-talk from the Frigate live view (it needs a GO2RTC_ALLOW_ARBITRARY_EXEC=true environment variable set).

Settings > Configuration Editor​

go2rtc:
streams:
android-cam-video:
# For example: https://test:[email protected]:4444/video/h264
# Or use to use a .env file:
# https://{ANDROID_CAM_USER}:{ANDROID_CAM_PASSWORD}@[ip_address]:4444/video/h264
- "https://[username]:[password]@[ip_address]:4444/video/h264"
android-cam-audio:
- "https://[username]:[password]@[ip_address]:4444/audio"
android-cam:
# Video
- ffmpeg:android-cam-video#video=copy
# Phone audio
- ffmpeg:android-cam-audio#audio=copy
# Push-to-talk (from Frigate, requires GO2RTC_ALLOW_ARBITRARY_EXEC=true)
- "exec:/usr/lib/ffmpeg/8.0/bin/ffmpeg -hide_banner -v error -f alaw -ar 8000 -ac 1 -i - -ar 44100 -ac 1 -c:a pcm_s16le -f s16le -method POST -tls_verify 0 https://[username]:[password]@[ip_address]:4444/audio/upload#backchannel=1#audio=alaw/8000"

cameras:
android-cam:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/android-cam # "android-cam-video" can be used if just the video is required
input_args: preset-rtsp-restream
roles:
- detect
- record
- audio

webrtc:
candidates:
- 127.0.0.1:8555

Note: if your username or password contains special characters, you'll need to URL encode them via:
python3 -c 'import urllib.parse; print(urllib.parse.quote(input(), safe=""))'

Using the RTSP stream​

With the RTSP server enabled in the app settings, use the following config in Frigate:

go2rtc:
streams:
android-cam:
- "rtsps://[username]:[password]@[ip_address]:8554/live"
android-cam-sub:
- "rtsps://[username]:[password]@[ip_address]:8554/live/sub"

cameras:
android-cam:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/android-cam
input_args: preset-rtsp-restream
roles:
- record
- audio
# Detect on the lighter sub stream (or drop this input and add `detect` above)
- path: rtsp://127.0.0.1:8554/android-cam-sub
input_args: preset-rtsp-restream
roles:
- detect