[Support]: The video is being recorded to the archive with consistent stuttering, as if at low FPS #20599
-
Checklist
Describe the problem you are havingI have a reproducible error. Hardware: Memory: 16Gb (2x8) DIMM 1333 MHz Debian GNU/Linux 12 (bookworm) The video is being recorded to the archive with consistent stuttering, as if at low FPS. If you run the command: then the video is recorded smoothly and cleanly. I cannot get Frigate to record to the archive as smoothly as ffmpeg does. I have checked this situation on several cameras of different classes - the result is the same. Steps to reproduce1.Install OS Version0.16.2-4d58206 In which browser(s) are you experiencing the issue with?Google chrome 141.0.7390.108 Frigate config filemqtt:
enabled: false
ffmpeg:
hwaccel_args: []
cameras:
test_cam:
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Preview_01_main
roles:
- record
record:
enabled: true
retain:
days: 1
mode: all
snapshots:
enabled: false
detect:
enabled: true
version: 0.16-0docker-compose file or Docker CLI commandnoneRelevant Frigate log output2025-10-21 11:49:31.781674908 [INFO] Preparing Frigate...
2025-10-21 11:49:32.182135040 [INFO] Starting Frigate...
2025-10-21 11:49:34.936089081 [2025-10-21 14:49:34] frigate.util.config INFO : Checking if frigate config needs migration...
2025-10-21 11:49:34.949469358 [2025-10-21 14:49:34] frigate.util.config INFO : frigate config does not need migration...
2025-10-21 11:49:37.104144943 [2025-10-21 14:49:37] frigate.app INFO : Starting Frigate (0.16.2-4d58206)
2025-10-21 11:49:37.111423170 [2025-10-21 14:49:37] frigate.app INFO : Creating directory: /tmp/cache
2025-10-21 11:49:37.122961945 [2025-10-21 14:49:37] peewee_migrate.logs INFO : Starting migrations
2025-10-21 11:49:37.131450963 [2025-10-21 14:49:37] peewee_migrate.logs INFO : There is nothing to migrate
2025-10-21 11:49:37.138203017 [2025-10-21 14:49:37] frigate.app INFO : Recording process started: 431
2025-10-21 11:49:37.144458329 [2025-10-21 14:49:37] frigate.app INFO : Review process started: 438
2025-10-21 11:49:37.148015114 [2025-10-21 14:49:37] frigate.app INFO : go2rtc process pid: 112
2025-10-21 11:49:37.161466910 [2025-10-21 14:49:37] detector.cpu INFO : Starting detection process: 456
2025-10-21 11:49:37.162572295 [2025-10-21 14:49:37] frigate.detectors WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.
2025-10-21 11:49:37.164013885 INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
2025-10-21 11:49:37.170808515 [2025-10-21 14:49:37] frigate.app INFO : Output process started: 474
2025-10-21 11:49:37.205854951 [2025-10-21 14:49:37] frigate.app INFO : Camera processor started for test_cam: 503
2025-10-21 11:49:37.219357169 [2025-10-21 14:49:37] frigate.app INFO : Capture process started for test_cam: 510
2025-10-21 11:49:37.571288956 [2025-10-21 14:49:37] frigate.api.fastapi_app INFO : Starting FastAPI app
2025-10-21 11:49:37.685672763 [2025-10-21 14:49:37] frigate.api.fastapi_app INFO : FastAPI startedRelevant go2rtc log output2025-10-21 11:49:31.926525825 [INFO] Preparing new go2rtc config...
2025-10-21 11:49:31.960625958 [INFO] Got IP address from supervisor: 192.168.2.90
2025-10-21 11:49:31.987889772 [INFO] Got WebRTC port from supervisor: 8555
2025-10-21 11:49:32.361542377 [INFO] Starting go2rtc...
2025-10-21 11:49:32.483255290 14:49:32.483 INF go2rtc platform=linux/amd64 revision=fa580c5 version=1.9.9
2025-10-21 11:49:32.483260678 14:49:32.483 INF config path=/dev/shm/go2rtc.yaml
2025-10-21 11:49:32.483651751 14:49:32.483 INF [api] listen addr=:1984
2025-10-21 11:49:32.483734378 14:49:32.483 INF [rtsp] listen addr=:8554
2025-10-21 11:49:32.484200343 14:49:32.484 INF [webrtc] listen addr=:8555
2025-10-21 11:49:41.509836539 [INFO] Starting go2rtc healthcheck service...Operating systemDebian Install methodHome Assistant Add-on Network connectionWired Camera make and modelRLC-820A and XMEYE 5Mp POE Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpfulWhat mainly confuses me is that the same parameters, when running ffmpeg manually and when recording through Frigate, produce different results in quality. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Based on your configuration and the stuttering issue you're experiencing, there are several potential solutions to improve recording quality. First, your current configuration lacks a detect stream, which means Frigate is using the high-resolution recording stream for both detection and recording (1). This can impact performance. You should configure separate streams: cameras:
test_cam:
ffmpeg:
inputs:
- path: rtsp://admin:[email protected]:554/Preview_01_main
roles:
- record
- path: rtsp://admin:[email protected]:554/Preview_01_sub # lower resolution stream
roles:
- detectSince you're experiencing stuttering similar to the issue described in the GitHub discussion, you might benefit from optimizing your FFmpeg configuration for lower latency and better threading (2). Consider adding specific input arguments: cameras:
test_cam:
ffmpeg:
input_args: preset-rtsp-generic
inputs:
- path: rtsp://admin:[email protected]:554/Preview_01_main
roles:
- recordFor your Intel HD Graphics 2000 hardware, you could try enabling hardware acceleration, though results may vary with older hardware: ffmpeg:
hwaccel_args: preset-vaapiThe stuttering issue you're experiencing has been reported before, where recordings show periodic pausing every few seconds despite the camera streaming at consistent frame rates (4). This can be related to how Frigate processes the video pipeline compared to direct FFmpeg recording (5). If the issue persists, you might need to experiment with custom FFmpeg arguments that more closely match your manual command. You can also try using the restream feature to reduce connections to your camera, which might improve stability (6). 📚 Sources:
Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
-
|
This is not a bug, Frigate uses ffmpeg. You just simply need to change your args. Most likely if you use it will remove the stuttering |
Beta Was this translation helpful? Give feedback.

This is not a bug, Frigate uses ffmpeg. You just simply need to change your args.
Most likely if you use
it will remove the stuttering