Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mqtt:
- host: 192.168.0.12
- user: USER
- password: USER
- ffmpeg:
- hwaccel_args: preset-vaapi
- # input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1
- # output_args:
- # # Optional: output args for detect streams (default: shown below)
- # detect: -f rawvideo -pix_fmt yuv420p
- # # Optional: output args for record streams (default: shown below)
- # record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
- # # Optional: output args for rtmp streams (default: shown below)
- # rtmp: -c copy -f flv
- detectors:
- ov:
- type: openvino
- device: AUTO
- model:
- path: /openvino-model/ssdlite_mobilenet_v2.xml
- model:
- width: 300
- height: 300
- input_tensor: nhwc
- input_pixel_format: bgr
- labelmap_path: /openvino-model/coco_91cl_bkgr.txt
- go2rtc:
- streams:
- front1: # <- for RTSP streams
- - rtsp://192.168.0.15:554/ # <- stream which supports video & aac audio
- doorbell:
- - "ffmpeg:http://192.168.0.21/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=USER&password=PASS#video=copy#audio=copy#audio=opus"
- - rtsp://USER:PASS@192.168.0.21:554/h264Preview_01_sub
- doorbell_sub:
- - "ffmpeg:http://192.168.0.21/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=USER&password=PASS"
- doorbell_snapshot:
- - onvif://USER:PASS@192.168.0.21:8000?subtype=MediaProfile00000&snapshot
- webrtc:
- candidates:
- - 192.168.0.12:8555
- log:
- exec: trace
- ffmpeg:
- bin: ffmpeg
- volume: "-af \"volume=30dB\""
- cameras:
- front1:
- ffmpeg:
- inputs:
- # High Resolution Stream
- - path: rtsp://127.0.0.1:8554/front1
- input_args: preset-rtsp-restream
- roles:
- - record
- - detect
- input_args: -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts+discardcorrupt -use_wallclock_as_timestamps 1 -c:v mjpeg
- output_args:
- rtmp: -c:v libx264 -an -f flv
- snapshots:
- # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
- # This value can be set via MQTT and will be updated in startup based on retained value
- enabled: True
- # Optional: save a clean PNG copy of the snapshot image (default: shown below)
- clean_copy: True
- # Optional: print a timestamp on the snapshots (default: shown below)
- timestamp: False
- # Optional: Record configuration
- # NOTE: Can be overridden at the camera level
- record:
- # Optional: Enable recording (default: shown below)
- # WARNING: If recording is disabled in the config, turning it on via
- # the UI or MQTT later will have no effect.
- # WARNING: Frigate does not currently support limiting recordings based
- # on available disk space automatically. If using recordings,
- # you must specify retention settings for a number of days that
- # will fit within the available disk space of your drive or Frigate
- # will crash.
- enabled: True
- # Optional: Number of minutes to wait between cleanup runs (default: shown below)
- # This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
- expire_interval: 60
- # Optional: Retention settings for recording
- retain:
- # Optional: Number of days to retain recordings regardless of events (default: shown below)
- # NOTE: This should be set to 0 and retention should be defined in events section below
- # if you only want to retain recordings of events.
- days: 0
- # Optional: Mode for retention. Available options are: all, motion, and active_objects
- # all - save all recording segments regardless of activity
- # motion - save all recordings segments with any detected motion
- # active_objects - save all recording segments with active/moving objects
- # NOTE: this mode only applies when the days setting above is greater than 0
- mode: all
- # Optional: Event recording settings
- events:
- # Optional: Number of seconds before the event to include (default: shown below)
- pre_capture: 5
- # Optional: Number of seconds after the event to include (default: shown below)
- post_capture: 5
- # Optional: Objects to save recordings for. (default: all tracked objects)
- objects:
- - car
- - person
- # Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
- required_zones: []
- # Optional: Retention settings for recordings of events
- retain:
- # Required: Default retention days (default: shown below)
- default: 10
- # Optional: Mode for retention. (default: shown below)
- # all - save all recording segments for events regardless of activity
- # motion - save all recordings segments for events with any detected motion
- # active_objects - save all recording segments for event with active/moving objects
- #
- # NOTE: If the retain mode for the camera is more restrictive than the mode configured
- # here, the segments will already be gone by the time this mode is applied.
- # For example, if the camera retain mode is "motion", the segments without motion are
- # never stored, so setting the mode to "all" here won't bring them back.
- mode: motion
- # Optional: Per object retention days
- objects:
- person: 15
- ################### Doorbell Camera
- doorbell:
- ffmpeg:
- inputs:
- - path: rtsp://127.0.0.1:8554/doorbell?video=copy&audio=aac
- input_args: preset-rtsp-restream
- roles:
- - record
- - path: rtsp://127.0.0.1:8554/doorbell_sub?video=copy
- input_args: preset-rtsp-restream
- roles:
- - detect
- output_args:
- record: preset-record-generic-audio-copy
- snapshots:
- # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
- # This value can be set via MQTT and will be updated in startup based on retained value
- enabled: True
- # Optional: save a clean PNG copy of the snapshot image (default: shown below)
- clean_copy: True
- # Optional: print a timestamp on the snapshots (default: shown below)
- timestamp: False
- # Optional: Record configuration
- # NOTE: Can be overridden at the camera level
- record:
- # Optional: Enable recording (default: shown below)
- # WARNING: If recording is disabled in the config, turning it on via
- # the UI or MQTT later will have no effect.
- # WARNING: Frigate does not currently support limiting recordings based
- # on available disk space automatically. If using recordings,
- # you must specify retention settings for a number of days that
- # will fit within the available disk space of your drive or Frigate
- # will crash.
- enabled: True
- # Optional: Number of minutes to wait between cleanup runs (default: shown below)
- # This can be used to reduce the frequency of deleting recording segments from disk if you want to minimize i/o
- expire_interval: 60
- # Optional: Retention settings for recording
- retain:
- # Optional: Number of days to retain recordings regardless of events (default: shown below)
- # NOTE: This should be set to 0 and retention should be defined in events section below
- # if you only want to retain recordings of events.
- days: 0
- # Optional: Mode for retention. Available options are: all, motion, and active_objects
- # all - save all recording segments regardless of activity
- # motion - save all recordings segments with any detected motion
- # active_objects - save all recording segments with active/moving objects
- # NOTE: this mode only applies when the days setting above is greater than 0
- mode: all
- # Optional: Event recording settings
- events:
- # Optional: Number of seconds before the event to include (default: shown below)
- pre_capture: 5
- # Optional: Number of seconds after the event to include (default: shown below)
- post_capture: 5
- # Optional: Objects to save recordings for. (default: all tracked objects)
- objects:
- - car
- - person
- # Optional: Restrict recordings to objects that entered any of the listed zones (default: no required zones)
- required_zones: []
- # Optional: Retention settings for recordings of events
- retain:
- # Required: Default retention days (default: shown below)
- default: 10
- # Optional: Mode for retention. (default: shown below)
- # all - save all recording segments for events regardless of activity
- # motion - save all recordings segments for events with any detected motion
- # active_objects - save all recording segments for event with active/moving objects
- #
- # NOTE: If the retain mode for the camera is more restrictive than the mode configured
- # here, the segments will already be gone by the time this mode is applied.
- # For example, if the camera retain mode is "motion", the segments without motion are
- # never stored, so setting the mode to "all" here won't bring them back.
- mode: motion
- # Optional: Per object retention days
- objects:
- person: 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement