Files
homelabstack/stacks/cameras/frigate/config.yml
T
ginnoirandClaude Opus 5.5 985a6ddc43 fix(cameras): transcode E1 audio to AAC in go2rtc so MSE live view stops falling back
neolink emits raw PCM (L16) audio; browser MSE only plays AAC/PCMA/PCMU, so the
main-stream player stalled and Frigate dropped to the low-res view. Video is copied.
Recording now copies the AAC instead of transcoding again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 03:18:07 -05:00

91 lines
2.2 KiB
YAML

# Seeded to /config/frigate/config.yml on valhalla. Frigate 0.17.2 schema.
# Caddy terminates TLS + Authentik forward_auth in front of :8971.
# E1 via neolink: main 2560x1440@30 h264, sub 640x360@20 h264 (probed 2026-10-08).
mqtt:
enabled: false
tls:
enabled: false
auth:
enabled: false
proxy:
separator: "|"
header_map:
user: x-authentik-username
default_role: admin
detectors:
ov:
type: openvino
device: CPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
# neolink delivers the E1's audio as raw PCM (L16/16000/2). Browser MSE only plays AAC or
# PCMA/PCMU, so the live player stalled and Frigate fell back to the low-res view until a
# manual "refresh stream". go2rtc's ffmpeg copies the video and transcodes audio to AAC.
go2rtc:
streams:
e1:
- "ffmpeg:rtsp://neolink:8554/e1/mainStream#video=copy#audio=aac"
e1_sub:
- "ffmpeg:rtsp://neolink:8554/e1/subStream#video=copy#audio=aac"
# Recordings → /media/frigate/recordings = /storage1/labdata/frigate/recordings.
# Main stream 24/7 ≈ 4.2 Mbps ≈ 44 GB/day (measured 2026-10-08) → ~310 GB rolling at 7 d.
# Alert/detection clips (person/dog/cat) kept 30 d beyond that.
record:
enabled: true
continuous:
days: 7
alerts:
retain:
days: 30
mode: motion
detections:
retain:
days: 30
mode: motion
snapshots:
enabled: true
bounding_box: true
retain:
default: 30
objects:
track: [person, dog, cat]
cameras:
e1:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/e1_sub
input_args: preset-rtsp-restream
roles: [detect]
# Record full res. The e1 restream already carries AAC (see go2rtc above) → copy it.
- path: rtsp://127.0.0.1:8554/e1
input_args: preset-rtsp-restream
roles: [record]
output_args:
record: preset-record-generic-audio-copy
detect:
# Frigate >=0.14 defaults detect.enabled to false — without this nothing is detected.
enabled: true
width: 640
height: 360
fps: 5
live:
streams:
Main: e1
Sub: e1_sub
version: 0.17-0