[Support]: Retention of recordings seems to have regressed in 0.16 #19877
Checklist
Describe the problem you are havingBased on my config I expect all footage to be retained for 3 days. However, when using version I am seeing this relevant log message trio pop up frequently: This is not an issue if I revert back to I believe this is describing the same issue that was reported in this support ticket: #19620 Steps to reproduce
I was able to replicate this behavior on cameras from multiple different manufacturers (Hikvision / Anpviz / SV3C), so I'm hopeful that someone else will be able to reproduce this using their hardware. Version0.16.0-c2f8de9 In which browser(s) are you experiencing the issue with?Firefox 142.0 Frigate config file# this works
#version: 0.15-1
# this does not work
version: 0.16-0
logger:
logs:
frigate.record: debug
mqtt:
enabled: false
auth:
enabled: false
tls:
enabled: false
record:
enabled: true
retain:
days: 3
mode: all
go2rtc:
streams:
cam5_gate_high:
- rtsp://cam5.camlan.int:554/11
cam5_gate_low:
- rtsp://cam5.camlan.int:554/12
ffmpeg:
hwaccel_args: preset-vaapi
cameras:
cam5_gate:
enabled: true
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/cam5_gate_high
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://127.0.0.1:8554/cam5_gate_low
input_args: preset-rtsp-restream
roles:
- detect
hwaccel_args: preset-vaapi
detect:
enabled: true
width: 640
height: 360
fps: 5
motion:
mask: 0.724,0.038,0.965,0.038,0.966,0.085,0.723,0.087docker-compose file or Docker CLI commandservices:
frigate:
### this works
#image: ghcr.io/blakeblackshear/frigate:0.15.2
## this does not work
image: ghcr.io/blakeblackshear/frigate:0.16.0
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
stop_grace_period: 30s # allow enough time to shut down the various services
shm_size: "512mb" # update for your cameras based on calculation above
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
volumes:
- /etc/localtime:/etc/localtime:ro
- config:/config
- ./storage:/media/frigate
- ./config.yaml:/config/config.yaml
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
- "5000:5000" # Internal unauthenticated access. Expose carefully.
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
FRIGATE_RTSP_PASSWORD: "password"
volumes:
config:Relevant Frigate log outputLOG OUTPUT ON 0.16.0 (UNEXPECTEDLY MISSING CLIPS)
2025-09-01 20:50:44.964870502 [2025-09-01 20:50:44] peewee_migrate.logs INFO : drop_not_null ('event', 'box')
2025-09-01 20:50:44.965858098 [2025-09-01 20:50:44] peewee_migrate.logs INFO : drop_not_null ('event', 'area')
2025-09-01 20:50:44.966693086 [2025-09-01 20:50:44] peewee_migrate.logs INFO : drop_not_null ('event', 'ratio')
2025-09-01 20:50:44.967429678 [2025-09-01 20:50:44] peewee_migrate.logs INFO : add_column ('event', 'data', <JSONField: Event.data>)
2025-09-01 20:50:44.968756344 [2025-09-01 20:50:44] peewee_migrate.logs INFO : Done 015_event_refactor
2025-09-01 20:50:44.985482547 [2025-09-01 20:50:44] peewee_migrate.logs INFO : Migrate "016_sublabel_increase"
2025-09-01 20:50:44.985782554 [2025-09-01 20:50:44] peewee_migrate.logs INFO : change_column ('event', 'sub_label', <CharField: Event.sub_label>)
2025-09-01 20:50:44.986965018 [2025-09-01 20:50:44] peewee_migrate.logs INFO : Done 016_sublabel_increase
2025-09-01 20:50:45.002995406 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "017_update_indexes"
2025-09-01 20:50:45.003188420 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_segment_size" ON "recordings" ("camera", "segment_size")',)
2025-09-01 20:50:45.003702903 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 017_update_indexes
2025-09-01 20:50:45.019544975 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "018_add_dbfs"
2025-09-01 20:50:45.019878836 [2025-09-01 20:50:45] peewee_migrate.logs INFO : add_column ('recordings', 'dBFS', <IntegerField: Recordings.dBFS>)
2025-09-01 20:50:45.020328105 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 018_add_dbfs
2025-09-01 20:50:45.032530170 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "019_create_regions_table"
2025-09-01 20:50:45.032747009 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "regions" ("camera" VARCHAR(20) NOT NULL PRIMARY KEY, "last_update" DATETIME NOT NULL, "grid" JSON)',)
2025-09-01 20:50:45.033293822 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 019_create_regions_table
2025-09-01 20:50:45.046352005 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "020_update_index_recordings"
2025-09-01 20:50:45.046767310 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('DROP INDEX recordings_end_time_start_time',)
2025-09-01 20:50:45.047033613 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_camera_start_time_end_time" ON "recordings" ("camera", "start_time" DESC, "end_time" DESC)',)
2025-09-01 20:50:45.047273546 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_api_recordings_summary" ON "recordings" ("camera", "start_time" DESC, "duration", "motion", "objects")',)
2025-09-01 20:50:45.047665557 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX "recordings_start_time" ON "recordings" ("start_time")',)
2025-09-01 20:50:45.047831971 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 020_update_index_recordings
2025-09-01 20:50:45.059437719 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "021_create_previews_table"
2025-09-01 20:50:45.059760239 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "previews" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "path" VARCHAR(255) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME NOT NULL, "duration" REAL NOT NULL)',)
2025-09-01 20:50:45.060360904 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 021_create_previews_table
2025-09-01 20:50:45.073046111 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "022_create_review_segment_table"
2025-09-01 20:50:45.073281646 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "reviewsegment" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "start_time" DATETIME NOT NULL, "end_time" DATETIME, "has_been_reviewed" INTEGER NOT NULL, "severity" VARCHAR(30) NOT NULL, "thumb_path" VARCHAR(255) NOT NULL, "data" JSON NOT NULL)',)
2025-09-01 20:50:45.073535155 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "review_segment_camera" ON "reviewsegment" ("camera")',)
2025-09-01 20:50:45.073940762 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX "review_segment_start_time_end_time" ON "reviewsegment" ("start_time" DESC, "end_time" DESC)',)
2025-09-01 20:50:45.074052273 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 022_create_review_segment_table
2025-09-01 20:50:45.085582308 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "023_add_regions"
2025-09-01 20:50:45.085978085 [2025-09-01 20:50:45] peewee_migrate.logs INFO : add_column ('recordings', 'regions', <IntegerField: Recordings.regions>)
2025-09-01 20:50:45.086327095 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 023_add_regions
2025-09-01 20:50:45.098628878 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "024_create_export_table"
2025-09-01 20:50:45.099043782 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "export" ("id" VARCHAR(30) NOT NULL PRIMARY KEY, "camera" VARCHAR(20) NOT NULL, "name" VARCHAR(100) NOT NULL, "date" DATETIME NOT NULL, "video_path" VARCHAR(255) NOT NULL, "thumb_path" VARCHAR(255) NOT NULL, "in_progress" INTEGER NOT NULL)',)
2025-09-01 20:50:45.099280329 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "export_camera" ON "export" ("camera")',)
2025-09-01 20:50:45.099672300 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 024_create_export_table
2025-09-01 20:50:45.114478785 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "025_create_user_table"
2025-09-01 20:50:45.114792959 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE TABLE IF NOT EXISTS "user" ("username" VARCHAR(30) NOT NULL PRIMARY KEY, "password_hash" VARCHAR(120) NOT NULL)',)
2025-09-01 20:50:45.115347046 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 025_create_user_table
2025-09-01 20:50:45.127308997 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "026_add_notification_tokens"
2025-09-01 20:50:45.127627669 [2025-09-01 20:50:45] peewee_migrate.logs INFO : add_column ('user', 'notification_tokens', <JSONField: User.notification_tokens>)
2025-09-01 20:50:45.128717679 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 026_add_notification_tokens
2025-09-01 20:50:45.145099701 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "027_create_explore_index"
2025-09-01 20:50:45.145408625 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE INDEX IF NOT EXISTS "event_label_start_time" ON "event" ("label", "start_time" DESC)',)
2025-09-01 20:50:45.145873063 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 027_create_explore_index
2025-09-01 20:50:45.161867333 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "028_optional_event_thumbnail"
2025-09-01 20:50:45.162216092 [2025-09-01 20:50:45] peewee_migrate.logs INFO : drop_not_null ('event', 'thumbnail')
2025-09-01 20:50:45.163470993 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 028_optional_event_thumbnail
2025-09-01 20:50:45.175723102 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "029_add_user_role"
2025-09-01 20:50:45.176036574 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('ALTER TABLE "user" ADD COLUMN "role" VARCHAR(20) NOT NULL DEFAULT \'admin\'',)
2025-09-01 20:50:45.176608705 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('UPDATE "user" SET "role" = \'admin\' WHERE "role" IS NULL',)
2025-09-01 20:50:45.176887502 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 029_add_user_role
2025-09-01 20:50:45.189467972 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Migrate "030_create_user_review_status"
2025-09-01 20:50:45.189737131 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('\n CREATE TABLE IF NOT EXISTS "userreviewstatus" (\n "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\n "user_id" VARCHAR(30) NOT NULL,\n "review_segment_id" VARCHAR(30) NOT NULL,\n "has_been_reviewed" INTEGER NOT NULL DEFAULT 0,\n FOREIGN KEY ("review_segment_id") REFERENCES "reviewsegment" ("id") ON DELETE CASCADE\n )\n ',)
2025-09-01 20:50:45.189982414 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('CREATE UNIQUE INDEX IF NOT EXISTS "userreviewstatus_user_segment" ON "userreviewstatus" ("user_id", "review_segment_id")',)
2025-09-01 20:50:45.190314131 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Run <lambda>
2025-09-01 20:50:45.190683028 [2025-09-01 20:50:45] peewee_migrate.logs INFO : sql ('ALTER TABLE "reviewsegment" DROP COLUMN "has_been_reviewed"',)
2025-09-01 20:50:45.191874739 [2025-09-01 20:50:45] peewee_migrate.logs INFO : Done 030_create_user_review_status
2025-09-01 20:50:45.208253696 [2025-09-01 20:50:45] frigate.app INFO : Running database vacuum
2025-09-01 20:50:45.231617901 [2025-09-01 20:50:45] frigate.app INFO : Recording process started: 458
2025-09-01 20:50:45.239726752 [2025-09-01 20:50:45] frigate.app INFO : Review process started: 471
2025-09-01 20:50:45.241375898 [2025-09-01 20:50:45] frigate.app INFO : go2rtc process pid: 112
2025-09-01 20:50:45.254847341 [2025-09-01 20:50:45] detector.cpu INFO : Starting detection process: 483
2025-09-01 20:50:45.255689623 [2025-09-01 20:50:45] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-09-01 20:50:45.256276281 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2025-09-01 20:50:45.266073142 [2025-09-01 20:50:45] frigate.app INFO : Output process started: 501
2025-09-01 20:50:45.281034701 [2025-09-01 20:50:45] frigate.app INFO : Camera processor started for cam5_gate: 535
2025-09-01 20:50:45.291353697 [2025-09-01 20:50:45] frigate.app INFO : Capture process started for cam5_gate: 538
2025-09-01 20:50:45.633811788 [2025-09-01 20:50:45] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-09-01 20:50:45.672699172 [2025-09-01 20:50:45] frigate.api.fastapi_app INFO : FastAPI started
2025-09-01 20:51:45.499336651 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Start expire recordings.
2025-09-01 20:51:45.499995566 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Start deleted cameras.
2025-09-01 20:51:45.500625878 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-09-01 20:51:45.500771162 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : End deleted cameras.
2025-09-01 20:51:45.501271098 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Start all cameras.
2025-09-01 20:51:45.501380735 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Start camera: cam5_gate.
2025-09-01 20:51:45.501688697 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-09-01 20:51:45.501797322 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : Expiring 0 previews
2025-09-01 20:51:45.501908703 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : End camera: cam5_gate.
2025-09-01 20:51:45.502009093 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : End all cameras.
2025-09-01 20:51:45.502081780 [2025-09-01 20:51:45] frigate.record.cleanup DEBUG : End expire recordings.
2025-09-01 20:53:05.311671487 [2025-09-01 20:53:05] watchdog.cam5_gate ERROR : No new recording segments were created for cam5_gate in the last 120s. restarting the ffmpeg record process...
2025-09-01 20:53:05.312013714 [2025-09-01 20:53:05] watchdog.cam5_gate INFO : Terminating the existing ffmpeg process...
2025-09-01 20:53:05.312162505 [2025-09-01 20:53:05] watchdog.cam5_gate INFO : Waiting for ffmpeg to exit gracefully...
2025-09-01 20:53:15.297644301 [2025-09-01 20:53:15] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/02/cam5_gate/53.05.mp4 in 0.03513002395629883 seconds.
2025-09-01 20:53:15.832574793 [2025-09-01 20:53:15] watchdog.cam5_gate ERROR : No new recording segments were created for cam5_gate in the last 120s. restarting the ffmpeg record process...
2025-09-01 20:53:15.832811811 [2025-09-01 20:53:15] watchdog.cam5_gate INFO : Terminating the existing ffmpeg process...
2025-09-01 20:53:15.832968117 [2025-09-01 20:53:15] watchdog.cam5_gate INFO : Waiting for ffmpeg to exit gracefully...
2025-09-01 20:53:30.291188682 [2025-09-01 20:53:30] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/02/cam5_gate/53.16.mp4 in 0.03741598129272461 seconds.
2025-09-01 20:54:55.233538600 [2025-09-01 20:54:55] frigate.api.review WARNING : No motion data found for the requested time range
2025-09-01 20:55:16.312910255 [2025-09-01 20:55:16] watchdog.cam5_gate ERROR : No new recording segments were created for cam5_gate in the last 120s. restarting the ffmpeg record process...
2025-09-01 20:55:16.313052825 [2025-09-01 20:55:16] watchdog.cam5_gate INFO : Terminating the existing ffmpeg process...
2025-09-01 20:55:16.313322335 [2025-09-01 20:55:16] watchdog.cam5_gate INFO : Waiting for ffmpeg to exit gracefully...
2025-09-01 20:55:30.295670957 [2025-09-01 20:55:30] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/02/cam5_gate/55.16.mp4 in 0.03550601005554199 seconds.
2025-09-01 20:57:16.639069790 [2025-09-01 20:57:16] watchdog.cam5_gate ERROR : No new recording segments were created for cam5_gate in the last 120s. restarting the ffmpeg record process...
2025-09-01 20:57:16.639444289 [2025-09-01 20:57:16] watchdog.cam5_gate INFO : Terminating the existing ffmpeg process...
2025-09-01 20:57:16.639686999 [2025-09-01 20:57:16] watchdog.cam5_gate INFO : Waiting for ffmpeg to exit gracefully...
2025-09-01 20:57:30.307793185 [2025-09-01 20:57:30] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/02/cam5_gate/57.17.mp4 in 0.04096102714538574 seconds.
LOG OUTPUT ON 0.15.2 (ALL CLIPS RETAINED AS EXPECTED)
2025-09-01 21:11:28.018030703 [2025-09-01 21:11:28] detector.cpu INFO : Starting detection process: 392
2025-09-01 21:11:28.019213697 [2025-09-01 21:11:28] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-09-01 21:11:28.027435986 [2025-09-01 21:11:28] frigate.app INFO : Output process started: 407
2025-09-01 21:11:28.037826117 [2025-09-01 21:11:28] frigate.app INFO : Camera processor started for cam5_gate: 422
2025-09-01 21:11:28.046906023 [2025-09-01 21:11:28] frigate.app INFO : Capture process started for cam5_gate: 434
2025-09-01 21:11:28.304698832 [2025-09-01 21:11:28] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-09-01 21:11:28.363047006 [2025-09-01 21:11:28] frigate.api.fastapi_app INFO : FastAPI started
2025-09-01 21:11:43.082551530 [2025-09-01 21:11:43] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/11.31.mp4 in 0.04085898399353027 seconds.
2025-09-01 21:11:53.084540643 [2025-09-01 21:11:53] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/11.40.mp4 in 0.04005098342895508 seconds.
2025-09-01 21:12:03.097631244 [2025-09-01 21:12:03] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/11.49.mp4 in 0.04483199119567871 seconds.
2025-09-01 21:12:13.105273221 [2025-09-01 21:12:13] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/11.59.mp4 in 0.04109811782836914 seconds.
2025-09-01 21:12:23.117276890 [2025-09-01 21:12:23] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.10.mp4 in 0.04246091842651367 seconds.
2025-09-01 21:12:28.290959042 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Start expire recordings.
2025-09-01 21:12:28.290984570 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Start deleted cameras.
2025-09-01 21:12:28.291942267 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-09-01 21:12:28.292253337 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : End deleted cameras.
2025-09-01 21:12:28.292299926 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Start all cameras.
2025-09-01 21:12:28.292564428 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Start camera: cam5_gate.
2025-09-01 21:12:28.292568035 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Expiring 0 recordings
2025-09-01 21:12:28.292721295 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : Expiring 0 previews
2025-09-01 21:12:28.292740201 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : End camera: cam5_gate.
2025-09-01 21:12:28.292784415 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : End all cameras.
2025-09-01 21:12:28.292868545 [2025-09-01 21:12:28] frigate.record.cleanup DEBUG : End expire recordings.
2025-09-01 21:12:33.129854545 [2025-09-01 21:12:33] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.19.mp4 in 0.04639482498168945 seconds.
2025-09-01 21:12:43.145632616 [2025-09-01 21:12:43] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.29.mp4 in 0.05369210243225098 seconds.
2025-09-01 21:12:53.144822947 [2025-09-01 21:12:53] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.40.mp4 in 0.04290008544921875 seconds.
2025-09-01 21:13:03.158024445 [2025-09-01 21:13:03] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.49.mp4 in 0.04430699348449707 seconds.
2025-09-01 21:13:13.166786218 [2025-09-01 21:13:13] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/12.59.mp4 in 0.04563093185424805 seconds.
2025-09-01 21:13:23.173006110 [2025-09-01 21:13:23] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.10.mp4 in 0.041400909423828125 seconds.
2025-09-01 21:13:33.183985491 [2025-09-01 21:13:33] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.19.mp4 in 0.04219198226928711 seconds.
2025-09-01 21:13:43.195656464 [2025-09-01 21:13:43] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.29.mp4 in 0.0432431697845459 seconds.
2025-09-01 21:13:53.202386161 [2025-09-01 21:13:53] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.40.mp4 in 0.04097604751586914 seconds.
2025-09-01 21:14:03.211706718 [2025-09-01 21:14:03] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.49.mp4 in 0.042463064193725586 seconds.
2025-09-01 21:14:13.220521513 [2025-09-01 21:14:13] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/13.59.mp4 in 0.04108715057373047 seconds.
2025-09-01 21:14:23.236194587 [2025-09-01 21:14:23] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.10.mp4 in 0.04719710350036621 seconds.
2025-09-01 21:14:33.237645376 [2025-09-01 21:14:33] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.19.mp4 in 0.04155683517456055 seconds.
2025-09-01 21:14:43.248126680 [2025-09-01 21:14:43] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.29.mp4 in 0.0412750244140625 seconds.
2025-09-01 21:14:53.261159851 [2025-09-01 21:14:53] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.40.mp4 in 0.04523801803588867 seconds.
2025-09-01 21:15:03.264585912 [2025-09-01 21:15:03] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.49.mp4 in 0.03934597969055176 seconds.
2025-09-01 21:15:13.275562836 [2025-09-01 21:15:13] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/14.59.mp4 in 0.03986811637878418 seconds.
2025-09-01 21:15:23.289926295 [2025-09-01 21:15:23] frigate.record.maintainer DEBUG : Copied /media/frigate/recordings/2025-09-02/03/cam5_gate/15.10.mp4 in 0.04302692413330078 seconds.Relevant go2rtc log outputpretty sure not relevant, issue was happening when I didn't use go2rtc as well
2025-09-01 21:16:34.529353859 [INFO] Preparing new go2rtc config...
2025-09-01 21:16:34.829353020 [INFO] Starting go2rtc...
2025-09-01 21:16:34.887886676 21:16:34.887 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
2025-09-01 21:16:34.887891765 21:16:34.887 INF config path=/dev/shm/go2rtc.yaml
2025-09-01 21:16:34.888322162 21:16:34.888 INF [api] listen addr=:1984
2025-09-01 21:16:34.888379331 21:16:34.888 INF [rtsp] listen addr=:8554
2025-09-01 21:16:34.888749433 21:16:34.888 INF [webrtc] listen addr=:8555
2025-09-01 21:16:44.223893030 [INFO] Starting go2rtc healthcheck service...Operating systemOther Linux Install methodDocker Compose Network connectionMixed Camera make and modelHikvision, Sv3C, Anpviz Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpfulObserved this behavior on both my Thinkpad and my Beelink EQ14. |
Replies: 5 comments 9 replies
|
Your configuration for recording with There is no documentation indicating this is a known or intended change in retention logic for 0.16.0. The log messages you posted suggest that the ffmpeg process responsible for recording is intermittently failing to produce new segments, which could explain the gaps(1). Key things to check:
If reverting to 0.15.2 resolves the issue, but 0.16.0 does not, and the config is unchanged, this may require further investigation in the codebase or with the maintainers. Documentation links for reference: 📚 Sources: Have another question? Just tag @inkeep. |
|
Frigate's recording process just uses ffmpeg to copy your camera stream. The logs are indicating that this is failing, which would indicate that there is an issue with the stream from go2rtc. I'd suggest trying the |
|
OK, I tried this change. It totally breaks both my 0.16.0 config (now the live stream isn't working at all, and zero recordings are being retained) and my previously working 0.15.2 config (live stream not working at all, and zero recordings retained). Here are the logs when I used 0.16.0: Here are logs when I used 0.15.2: |
|
OK, so I made the following change: I am back to the same behavior that I filed the bug report about. |
|
OK, thank you so much for bearing with me here @hawkeye217. It seems clear that the issue I was having with both of these cameras was in regards to the audio streams bundled with them. cam5 was including pcm audio, I don't know why since it doesn't actually seem to have a working mic on it. cam6 was originally set to emit an aac audio stream. however it seems (from using ffprobe and from seeing ffmpeg errors in the logs) the aac stream had malformed headers that ffmpeg was choking on. I switched it to emit a g.711 stream instead, which worked correctly with here is what my working config blocks for go2rtc / ffmpeg / cameras look like now: I have one last question I'm hoping you could answer before this gets closed out. Is the current config the most efficient way to discard the audio stream from cam5, or is there a better method you would suggest? |



OK, thank you so much for bearing with me here @hawkeye217. It seems clear that the issue I was having with both of these cameras was in regards to the audio streams bundled with them.
cam5 was including pcm audio, I don't know why since it doesn't actually seem to have a working mic on it.
cam6 was originally set to emit an aac audio stream. however it seems (from using ffprobe and from seeing ffmpeg errors in the logs) the aac stream had malformed headers that ffmpeg was choking on. I switched it to emit a g.711 stream instead, which worked correctly with
preset-record-generic-audio-aac.here is what my working config blocks for go2rtc / ffmpeg / cameras look like now: