Ubiquity - Protect Issues in Frigate #19995
Replies: 1 comment
-
Based on the logs showing "Non-monotonic DTS" errors and connection timeouts with your Unifi Protect cameras, there are several configuration adjustments you can try. For Unifi Protect cameras, the documentation recommends using Here's the recommended configuration structure for Unifi Protect cameras: go2rtc:
streams:
front_door:
- rtspx://10.0.0.1:7447/CLlQTT2wvHvPgJ0E
garagepad:
- rtspx://10.0.0.1:7447/yKxXRF2SL4WmEfWq Then update your camera inputs to use the restream: cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/front_door
input_args: preset-rtsp-restream
roles:
- detect
- record
output_args:
record: preset-record-ubiquiti The documentation also notes that "In the Unifi 2.0 update Unifi Protect Cameras had a change in audio sample rate which causes issues for ffmpeg. The input rate needs to be set for record if used directly with unifi protect" (1). The Additionally, consider using separate streams for detect and record roles to reduce the load on each camera connection (2). This approach creates only one connection to each camera while supporting both detection and recording. The connection timeout errors suggest network connectivity issues between Frigate and your Unifi Protect system. Check your network stability and consider adjusting the 📚 Sources: Have another question? Just tag @inkeep. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the problem you are having
Hi all,
The problem I have is that my 2 Ubiquity camera's are going offline so now and then.
I have 3 other camera's from EZViz which work flawlessly.
Version
0.16.1-e664cb2
What browser(s) are you using?
Google Chrome 140.0.7339.80
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
Object Detector
Coral
Network connection
Wired
Camera make and model
Ubiquity G3 Flex & Ubiquity G4 Bullet
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
So the strange thing is, in the past when I used Frigate on Home Assistant, the Ubiquity camera's where rock solid. The EZViz camera's where offline often.
Now, on a NUC Client with 16GB RAM dedicated for Frigate, the EZVIZ works flawless, but the Ubiquity is a pain according to the logs.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions