mqtt:
host: 192.168.1.110
cameras:
entrance:
ffmpeg:
inputs:
- path: rtsp:/admin
ass@192.168.1.132:554/onvif2
roles:
- detect
- rtmp
- record
detect:
width: 1920 # <---- update for your camera's resolution
height: 1080 # <---- update for your camera's resolution
fps: 15
# motion:
# mask:
# - 192,1080,194,80,1920,84,1920,0,0,0,0,1080
# hwaccel_args:
# - -hwaccel
# - qsv
# - -qsv_device
# - /dev/dri/renderD128
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
record:
enabled: true
retain_days: 0
events:
retain:
default: 10
ffmpeg:
# Optional: global ffmpeg args (default: shown below)
global_args: -hide_banner -loglevel warning
hwaccel_args: []
input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -stimeout 5000000 -use_wallclock_as_timestamps 1
# Optional: global output args -rtsp_transport udp
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 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an
# Optional: output args for clips streams (default: shown below)
##clips: -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