[Support]: Frigate V10 docker container nginx access.log growing
See original GitHub issueDescribe the problem you are having
I run frigate in a docker container. A few times now my docker container space usage has been growing very large. The culprit seems to be the nginx access.log Every few months I get a warning that my docker container usage is getting out of control and I have to go in and manually delete it. Any chance to get some automatic log file rotation setup? /usr/local/nginx/logs/access.log
Version
0.10.0-DB1255A
Frigate config file
{
"birdseye": {
"enabled": true,
"height": 720,
"mode": "objects",
"quality": 8,
"width": 1280
},
"cameras": {
"Dog": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.7/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.7/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Dog-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Dog -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Dog",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"Garage": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.9/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.9/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Garage-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Garage -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Garage",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.6,
"threshold": 0.76
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"GuestRoom": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.12/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.12/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/GuestRoom-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/GuestRoom -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "GuestRoom",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"Kitchen": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.8/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.8/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Kitchen-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Kitchen -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Kitchen",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.6,
"threshold": 0.76
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"LRReverse": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.13/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.13/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/LRReverse-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/LRReverse -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "LRReverse",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"LivingRoom": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://admin:Iptbad1b@192.168.1.6/cam/realmonitor?channel=1&subtype=0",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:Iptbad1b@192.168.1.6/cam/realmonitor?channel=1&subtype=0 -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/LivingRoom-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/LivingRoom -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "LivingRoom",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"Master": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.14/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.14/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Master-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Master -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Master",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"Office": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://admin:Iptbad1b@192.168.1.5/cam/realmonitor?channel=1&subtype=0",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://admin:Iptbad1b@192.168.1.5/cam/realmonitor?channel=1&subtype=0 -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Office-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Office -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": "",
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Office",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
},
"Porch": {
"best_image_timeout": 60,
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": 25,
"stationary_interval": 50,
"width": 1280
},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"inputs": [
{
"global_args": [],
"hwaccel_args": [],
"input_args": [],
"path": "rtsp://XXXX:XXXX@192.168.1.11/live",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"ffmpeg_cmds": [
{
"cmd": "ffmpeg -hide_banner -loglevel fatal -hwaccel qsv -qsv_device /dev/dri/renderD128 -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://XXXX:XXXX@192.168.1.11/live -f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /tmp/cache/Porch-%Y%m%d%H%M%S.mp4 -c copy -f flv rtmp://127.0.0.1/live/Porch -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
"roles": [
"record",
"rtmp",
"detect"
]
}
],
"live": {
"height": 720,
"quality": 8
},
"motion": {
"contour_area": 30,
"delta_alpha": 0.2,
"frame_alpha": 0.2,
"frame_height": 50,
"mask": [
"780,0,1145,491,1121,720,1280,720,1280,0"
],
"threshold": 25
},
"mqtt": {
"bounding_box": true,
"crop": true,
"enabled": true,
"height": 270,
"quality": 70,
"required_zones": [],
"timestamp": true
},
"name": "Porch",
"objects": {
"filters": {
"dog": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.5,
"threshold": 0.7
},
"person": {
"mask": null,
"max_area": 24000000,
"min_area": 0,
"min_score": 0.6,
"threshold": 0.76
}
},
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
},
"zones": {}
}
},
"database": {
"path": "/media/frigate/frigate.db"
},
"detect": {
"enabled": true,
"fps": 5,
"height": 720,
"max_disappeared": null,
"stationary_interval": null,
"width": 1280
},
"detectors": {
"coral": {
"device": "usb",
"num_threads": 3,
"type": "edgetpu"
}
},
"environment_vars": {},
"ffmpeg": {
"global_args": "-hide_banner -loglevel fatal",
"hwaccel_args": [
"-hwaccel",
"qsv",
"-qsv_device",
"/dev/dri/renderD128"
],
"input_args": "-avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1",
"output_args": {
"detect": "-f rawvideo -pix_fmt yuv420p",
"record": "-f segment -segment_time 300 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac",
"rtmp": "-c copy -f flv"
}
},
"live": {
"height": 720,
"quality": 8
},
"logger": {
"default": "info",
"logs": {}
},
"model": {
"height": 320,
"labelmap": {},
"labelmap_path": null,
"path": null,
"width": 320
},
"motion": null,
"mqtt": {
"client_id": "frigate",
"host": "192.168.1.3",
"password": null,
"port": 1883,
"stats_interval": 60,
"tls_ca_certs": null,
"tls_client_cert": null,
"tls_client_key": null,
"tls_insecure": null,
"topic_prefix": "frigate",
"user": null
},
"objects": {
"filters": null,
"mask": "",
"track": [
"person",
"dog"
]
},
"record": {
"enabled": true,
"events": {
"max_seconds": 600,
"objects": null,
"post_capture": 5,
"pre_capture": 5,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
}
},
"retain": {
"days": 2,
"mode": "all"
},
"retain_days": null
},
"rtmp": {
"enabled": true
},
"snapshots": {
"bounding_box": true,
"clean_copy": true,
"crop": true,
"enabled": true,
"height": 175,
"quality": 70,
"required_zones": [],
"retain": {
"default": 2,
"mode": "active_objects",
"objects": {
"person": 15
}
},
"timestamp": false
},
"timestamp_style": {
"color": {
"blue": 255,
"green": 255,
"red": 255
},
"effect": null,
"format": "%m/%d/%Y %H:%M:%S",
"position": "tl",
"thickness": 2
}
}
Relevant log output
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Garage/latest.jpg HTTP/1.1" 200 84025 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Porch/latest.jpg HTTP/1.1" 200 194715 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Master/latest.jpg HTTP/1.1" 200 77415 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Dog/latest.jpg HTTP/1.1" 200 95052 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/LRReverse/latest.jpg HTTP/1.1" 200 112797 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Garage/latest.jpg HTTP/1.1" 200 79446 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Kitchen/latest.jpg HTTP/1.1" 200 73309 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/GuestRoom/latest.jpg HTTP/1.1" 200 56279 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Porch/latest.jpg HTTP/1.1" 200 174649 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/LRReverse/latest.jpg HTTP/1.1" 200 112777 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Master/latest.jpg HTTP/1.1" 200 77428 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Dog/latest.jpg HTTP/1.1" 200 95161 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Kitchen/latest.jpg HTTP/1.1" 200 73540 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Garage/latest.jpg HTTP/1.1" 200 73511 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/GuestRoom/latest.jpg HTTP/1.1" 200 55815 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Porch/latest.jpg HTTP/1.1" 200 174530 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Dog/latest.jpg HTTP/1.1" 200 95343 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/Master/latest.jpg HTTP/1.1" 200 77423 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:28 -0700] "GET //api/LRReverse/latest.jpg HTTP/1.1" 200 112814 "-" "HTTP Image Reader" "-"
192.168.1.3 - - [15/Mar/2022:09:33:29 -0700] "GET /api/stats HTTP/1.1" 200 1560 "-" "HomeAssistant/2022.3.5 aiohttp/3.8.1 Python/3.9" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/GuestRoom/latest.jpg HTTP/1.1" 200 55788 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Garage/latest.jpg HTTP/1.1" 200 82227 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Kitchen/latest.jpg HTTP/1.1" 200 73550 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Porch/latest.jpg HTTP/1.1" 200 174484 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Master/latest.jpg HTTP/1.1" 200 77442 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/LRReverse/latest.jpg HTTP/1.1" 200 112828 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Dog/latest.jpg HTTP/1.1" 200 95730 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/GuestRoom/latest.jpg HTTP/1.1" 200 55523 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Kitchen/latest.jpg HTTP/1.1" 200 73642 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Garage/latest.jpg HTTP/1.1" 200 80655 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Porch/latest.jpg HTTP/1.1" 200 174505 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/LRReverse/latest.jpg HTTP/1.1" 200 113007 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Master/latest.jpg HTTP/1.1" 200 77472 "-" "HTTP Image Reader" "-"
192.168.1.122 - - [15/Mar/2022:09:33:29 -0700] "GET //api/Dog/latest.jpg HTTP/1.1" 200 95915 "-" "HTTP Image Reader" "-"
FFprobe output from your camera
Various Cameras
Frigate stats
No response
Operating system
UNRAID
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Various
Any other information that may be helpful
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
How to Use Logrotate with Nginx in Docker | MeerkatWatch
Let's turn on the Geek Mode for this article, and have a quick look at the summary on how to logrotate logs with...
Read more >Docker install allows nginx log files to keep growing? - bug
Is there a way to configure (e.g. via containers/app.yml) the maximum disk space the nginx log files are allowed to take up?
Read more >Full Setup Instructions - Nginx Proxy Manager
Expose your services easily and securely. ... It's easy to use another docker container for your database also and link it as part...
Read more >NGINX Docker container growing too big - Stack Overflow
I suspect it is indeed the logs. While you are correct that nginx logs are streamed to stdout, that would means docker store...
Read more >no access and error logs from nginx using docker-compose ...
Then, turn it back on. You can have nginx spit out its entire config like so (if service is named nginx in compose...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m going to pin this since I should be rotating it regardless.
Closing this as in 0.12 nginx is logged to stdout / memory