Skip to content

Commit

Permalink
[home] added webrtc to frigate
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Feb 22, 2024
1 parent 499c00c commit ba22f1d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions apps/home/frigate/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
## Frigate NVR

- [Why WebRTC candidates requires a static ClusterIP when streaming using go2rtc?][cluster-ip-docs]
- [Why the restream codec when you are supposed to be leveraging the GPU?][restream-codec-docs]








[cluster-ip-docs]: https://docs.frigate.video/configuration/live#webrtc-extra-configuration
[restream-codec-docs]: https://docs.frigate.video/configuration/live#setting-stream-for-live-ui
19 changes: 16 additions & 3 deletions apps/home/frigate/base/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ data:
enabled: True
ffmpeg:
inputs:
- path: rtsp://wyze-bridge.homeassistant.svc.cluster.local:8554/studiocam
input_args: preset-rtsp-generic
- path: rtsp://127.0.0.1:8554/rtsp_home
input_args: preset-rtsp-restream
output_args:
record: preset-record-generic-audio-copy
roles:
- detect
- record
live:
stream_name: home_nvr
zones:
computer:
coordinates: 342,292,401,325,435,354,480,417,531,467,523,517,446,554,284,647,189,555,155,450,134,316
Expand All @@ -35,6 +39,15 @@ data:
enabled: True
retain:
default: 30
go2rtc:
streams:
rtsp_home:
- rtsp://wyze-bridge.homeassistant.svc.cluster.local:8554/studiocam
- "ffmpeg:rtsp_home#audio=opus#video=h264#hardware"
webrtc:
candidates:
- 10.43.174.235:8555
- stun:8555
model:
path: /config/model_cache/tensorrt/yolov7x-640.trt
input_tensor: nchw
Expand Down Expand Up @@ -63,7 +76,7 @@ data:
height: 720
quality: 8
rtmp:
enabled: True
enabled: False
record:
enabled: True
retain:
Expand Down
1 change: 1 addition & 0 deletions apps/home/frigate/base/svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ spec:
targetPort: 8554
protocol: TCP
type: ClusterIP
clusterIP: 10.43.174.235

0 comments on commit ba22f1d

Please sign in to comment.