-
Notifications
You must be signed in to change notification settings - Fork 90
Integrating with Frigate
alienatedsec edited this page Feb 26, 2024
·
1 revision
go2rtc:
streams:
yi-home-1080p-frigate: rtsp://xxxx:xxxx@192.168.3.205:554/ch0_0.h264
yi-home-1080p-frigate-sub: rtsp://xxxx:xxxx@192.168.3.205:554/ch0_1.h264
yi-dome-frigate: rtsp://xxxx:xxxx@192.168.3.103:554/ch0_0.h264
yi-dome-frigate-sub: rtsp://xxxx:xxxx@192.168.3.103:554/ch0_1.h264
# The below is for my Intel Graphics
ffmpeg:
hwaccel_args:
preset-vaapi
hwaccel_device - /dev/dri/renderD128
hwaccel_output_format yuv420p
input_args:
-avoid_negative_ts make_zero
-fflags +genpts+discardcorrupt
-flags low_delay
-strict experimental
-analyzeduration 1000M
-probesize 1000M
-rw_timeout 5000000
output_args:
record:
preset-record-generic-audio-copy
cameras:
yi-home-1080p-frigate-restream:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/yi-home-1080p-frigate?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/yi-home-1080p-frigate-sub?video=copy
input_args: preset-rtsp-restream
roles:
- detect
hwaccel_args: preset-vaapi
#ROLE SETTINGS
detect:
enabled: true
width: 640
height: 360
fps: 30
record:
enabled: true
snapshots:
enabled: true
yi-dome-frigate-restream:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/yi-dome-frigate?video=copy&audio=aac
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/yi-dome-frigate-sub?video=copy
input_args: preset-rtsp-restream
roles:
- detect
hwaccel_args: preset-vaapi
#ROLE SETTINGS
detect:
enabled: true
width: 640
height: 360
fps: 30
record:
enabled: true
snapshots:
enabled: true