0.12.0 Beta 8 #5453
Replies: 30 comments 238 replies
-
I have created a short survey for those that are using the new OpenVINO and TensorRT detectors. It will aid in understanding the expected performance for different devices and help identify other issues that may be occurring. Thanks! Answers can be seen here |
Beta Was this translation helpful? Give feedback.
-
So I re-tested birdseye again, the restream over webrtc seems to have near the same performance as the native one now. IE it is vastly improved over the beta 7. Going to test it as the primary config for a while to see if any of the visual glitches return but it does seem to be performing better, this also opens up re-using it for homekit etc. |
Beta Was this translation helpful? Give feedback.
-
Having a couple issues with viewing cameras from the main screen, primarily my wyzecam v2s. The issue has been intermittently present since beta6; was hoping this beta would resolve it. These are the sort of logs I'm seeing:
config:
I often have the black "No frames have been received" screen from the main page. Sometimes clicking it and selecting Is there a setting that works better for these cameras? Again, they worked fine prior to ~beta6. Thanks for the amazing work!! |
Beta Was this translation helpful? Give feedback.
-
Hey Nick,
|
Beta Was this translation helpful? Give feedback.
-
I'm working on switching over to using the go2rtc plugin but when I add what's in the documentation for the go2rtc: section I get the following error ''' I added the section just as it is on https://deploy-preview-4055--frigate-docs.netlify.app/configuration/ Am I missing something? I'm running beta 8 |
Beta Was this translation helpful? Give feedback.
-
Just wanted to post another good vibes post that with each beta things seem to keep improving in terms of stability.. Can't thank the frigate and go2rtc project team members enough for the enhancements. I think for quite a few people going from 0.11 to 0.12 stable releases the difference will be noticable.. Once they get through all the config changes.. I am really enjoying the overall speed improvements with restreaming all my cameras over webrtc in homeassistant. |
Beta Was this translation helpful? Give feedback.
-
I have been reading the lasted version of the documentation and I have a question. Port :5000/live/webrtc/ seems redundant as accessing the API port :1984/ also loads the go2rtc web UI. Is there an actual functional difference between http://<frigateserver_ip>:1984/ "the go2rtc API port" and http://<frigateserver_ip>:5000/live/webrtc/ "the go2rtc web interface" ? |
Beta Was this translation helpful? Give feedback.
-
With beta 8 and newer go2rtc, figured I'd retry the restreaming approach. Still no luck with my Wyze Cams v2/v3/pan variants, go2rtc will die and frigate's feed doesn't come back.
go2rtc logs from frigate:
I also see a bunch of warnings: "Discarding a corrupt recording segment: wyze-driveway-20230213082201.mp4" When this error occurs, camera remains offline in frigate but I can hit the camera just fine via it's direct RTSP connection, and restarting frigate server works until go2rtc fails again. I'll probably go back to two connections per cam again (one for go2rtc, one for frigate detect/record) as that was stable w/o these errors. Or I can try @bagobones previous workaround of adding frigatedefaults to restream (haven't tried that yet). |
Beta Was this translation helpful? Give feedback.
-
Got hit with go2rtc suddenly crashing again. @NickM-27 We have a watchdog for cameras to restart ffmpeg on failures I wonder how hard it would be to monitor go2rtc and restart it? The go2rtc API / webUI on port 1984 stop responding when this crash happens but over all frigate keeps running with the camera watchdogs constantly trying to reconnect. Frigate related errors (note I am suppressing some FFMPEG errors in my config file):
Go2rtc map error dump can be found in this ticket: AlexxIT/go2rtc#213 |
Beta Was this translation helpful? Give feedback.
-
Is there a known issue where I can load the individual live streams (sometimes via mse, other times only if I hit "debug"), but from the main screen it says "No frames have been received.."? Restarting seems to work for awhile, but then eventually it dies. I've got two Amcrest cameras that work reliably (AD100 and ProHD) but the AD410 is not collecting detect data, and only displays on the live stream. Also my WyzeCam v2s running DaFang hacks have the same problem. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So I had my entire frigate host hang yesterday which has prompted me to move all but one of my cameras back to direct detect / recording instead of via go2rtc however I actually don't quite know what happened (couldn't even SSH in to check had to force a reboot). Following the default docker mappings logs are not stored between restarts or stored at all on host storage. I think having a longer term log storage and rotate config with a host mapping would be a good idea as frigate gets more complex. (as it stands even if I remapped the current logs I think they would be wiped on restart of frigate) |
Beta Was this translation helpful? Give feedback.
-
Getting strange clip lengths with download clip from UI and from /api/events vs viewing the clip via the events browser. As far as i know, frigate's only way of broadcasting an event is complete is threw a mqtt event 'end' message. I was working on a script that uses mqtt message to grab the clip from /api/events and save it to a nested folder in cloud storage for backup. This works but its flawed if frigate later starts adding more footage to the same clip that has just been uploaded even after broadcasting event 'end'. Logs are clean:
Seems like i can just introduce a 1min delay or so after the final mqtt 'end' event is broadcasted, I'm unsure how this would play out for larger events. |
Beta Was this translation helpful? Give feedback.
-
I just noticed that if I switch network on my cell phone while HA or Frigate app with webrtc feed is open, it crashes frigate and I have to restart the frigate docker container. If I close the HA/Frigate app then switch the network, there is no issue (I am testing VPN connection - using wireguard on-demand by turning on/off wifi at home). I assume this is actually go2rtc issue but don't see any error on the UI though
|
Beta Was this translation helpful? Give feedback.
-
I don't remember seeing these before but now I am getting these errors.
|
Beta Was this translation helpful? Give feedback.
-
Not sure if this is new in beta8 because this is the first version I've ever installed (awesome software btw!). The Mask and Zone editor is not working for me. In developer console I see:
|
Beta Was this translation helpful? Give feedback.
-
I'm rotating and re-encoding with go2rtc. When I don't use hardware then all is well (other than CPU usage), but when I do
I'm a noob to both golang and frigate/go2rtc but the reason I'm posting here is that my understanding of "write: broken pipe" is that the client (frigate) has closed the connection. I'm not clear why enabling hardware in go2rtc would cause this -- no apparent nvidia-related errors or ffmpeg errors are in the go2rtc log, and frigate receives the stream happily without hardware enabled in go2rtc. This happens with both the The tensorrt detector works great, awesome to have that option. I had errors with tensorrt_models.sh in the pip upgrade and protobuf install steps, in both cases it failed uninstalling previous versions. Inside the container I manually reinstalled latest pip and omitted protobuf since a 4.x version was already installed, and then the rest worked. I don't have those errors anymore but I could go get them again. Thanks for the awesome software!! |
Beta Was this translation helpful? Give feedback.
-
hello, I also migrated to frigate 0.12.8. unfortunately I stumble on how to properly include my Unifi Protect Cameras in the Restream role,I use HAOS.
|
Beta Was this translation helpful? Give feedback.
-
Hello, Currently trying to migrate to v12 beta 8 to take advantage of TensorRT detectors, but I can't seem to get it working. Tried to follow all the documentation for getting it set up, but I'm having an issue with Frigate getting stuck in a reboot loop. It seems to decode the first frames from my cameras, then just freezes up and restarts. Everything seems to work fine when using a CPU detector, but whenever I switch to TensorRT detectors, I get a reboot loop. Any help/info would be greatly appreciated. Let me know if any more information is needed. Thanks. Hardware: Config:
Logs:
|
Beta Was this translation helpful? Give feedback.
-
Hi! Here is my config:
and some logs:
|
Beta Was this translation helpful? Give feedback.
-
Hi I was wondering when I should use go2rtc and when it bring no benefit. Example with camera TP-Link with SD and HD streams available. I believe that the Lovelace Picture glance card, when set to "live", is taking the jsmpeg anyway, regardless if I have go2rtc in the middle or not. And there will be the same number of connections to the camera in both configs I believe. So although it works well, I fail to understand the benefit for me to have go2rtc added to the config. I am careful with the resources of the Raspberry Pi, not to overload the CPU or memory. As I want to connect 8 cameras to Frigate, detect persons on 5 of them and display 8 cameras in my lovelace dashboard, I prefer to limit to the maximum the unnecessary re-encoding operations, also audio is not necessary. So do I need go2rtc at all? |
Beta Was this translation helpful? Give feedback.
-
Hello, Im back again. Not sure if you remember, but I was having an issue with installing the beta on my server ubuntu server/casaos. Kept getting error 98. Anyway, Ive been able to install it. I wanted to ask a question, do Frigate still support ONVIF http://ip address:8899/onvif/device_service? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Is there a machanism to restart frigate when ffmpeg process crashes?
|
Beta Was this translation helpful? Give feedback.
-
Ok guys, back at it again. Need some help. Can't get connected to my cameras Frigate logs
Go2rtc
Config.yml detectors:
cpu1:
type: cpu
num_threads: 3
cpu2:
type: cpu
num_threads: 3
mqtt:
enabled: True
host: 10.0.0.5
database:
path: /media/frigate/frigate.db
logger:
default: info
logs:
frigate.event: debug
#######Global Camera Settings#######
live:
height: 720
quality: 1
detect:
width: 1920
height: 1080
fps: 15
record:
enabled: True
events:
pre_capture: 15
post_capture: 15
retain:
default: 5
mode: active_objects
objects:
dog: 2
cat: 2
go2rtc:
stream:
front_door:
- http://username:[email protected]:8899/onvif/device_service (only works with this url)
- "ffmpeg:front_door#video=h264"
storage_room:
- rtsp://username:[email protected]:88/videoMain
- "ffmpeg:storage_room#video=h264"
############ Cameras!!!##############
######Front Door Camera!!##########
cameras:
front_door:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
hwaccel_args: preset-vaapi
inputs:
- path: http://127.0.0.1:8554/front_door
input_args: preset-rtsp-restream
roles:
- detect
- record
objects:
track:
- person
- cat
- dog
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.75
mask:
- 523,1080,897,0,0,0,0,1080
cat:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.8
mask:
- 523,1080,897,0,0,0,0,1080
dog:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.8
mask:
- 523,1080,897,0,0,0,0,1080
############storage_room Camera#######
storage_room:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
hwaccel_args: preset-vaapi
inputs:
- path: rtsp://127.0.0.1:8554/storage_room
input_args: preset-rtsp-restream
roles:
- detect
- record
objects:
track:
- person
- cat
- dog
filters:
person:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.75
mask:
- 1920,330,1920,0,0,0,0,343
cat:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.8
mask:
- 1920,330,1920,0,0,0,0,343
dog:
min_area: 5000
max_area: 100000
min_score: 0.5
threshold: 0.8
mask:
- 1920,330,1920,0,0,0,0,343 What am I missing? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if this error is similar to the above... but first time seeing it.
|
Beta Was this translation helpful? Give feedback.
-
The issue I'm having is mentioned here before, but sometimes I see some of these entries in the log file:
I've been capturing all mqtt events, and this is the last one of this specific event: {
"before": {
"id": "1677315852.215747-i6jzl3",
"camera": "oprit",
"frame_time": 1677318854.583569,
"snapshot_time": 1677315855.709106,
"label": "person",
"sub_label": null,
"top_score": 0.84375,
"false_positive": false,
"start_time": 1677315852.215747,
"end_time": null,
"score": 0.55859375,
"box": [1605, 53, 1625, 127],
"area": 1480,
"ratio": 0.2702702702702703,
"region": [958, 0, 1802, 844],
"stationary": false,
"motionless_count": 0,
"position_changes": 3,
"current_zones": ["zone_straat"],
"entered_zones": ["zone_oprit", "zone_straat"],
"has_clip": true,
"has_snapshot": true
},
"after": {
"id": "1677315852.215747-i6jzl3",
"camera": "oprit",
"frame_time": 1677318856.596609,
"snapshot_time": 1677315855.709106,
"label": "person",
"sub_label": null,
"top_score": 0.84375,
"false_positive": false,
"start_time": 1677315852.215747,
"end_time": 1677318862.334007,
"score": 0.59765625,
"box": [1762, 72, 1802, 231],
"area": 6360,
"ratio": 0.25157232704402516,
"region": [784, 0, 1920, 1136],
"stationary": false,
"motionless_count": 0,
"position_changes": 3,
"current_zones": ["zone_straat"],
"entered_zones": ["zone_oprit", "zone_straat"],
"has_clip": true,
"has_snapshot": true
},
"type": "end"
} I opened the sqlite database and I can confirm that the event is indeed missing in the database. What can be the cause of this? |
Beta Was this translation helpful? Give feedback.
-
@blakeblackshear when can we expect beta 9? |
Beta Was this translation helpful? Give feedback.
-
Has anyone notice that the time on the cameras and the time say in the "logs" seem to be off. I wonder if this is why I get segment out of time error? Its 1200 am actually time in US, OK, but the logs say its 6am. |
Beta Was this translation helpful? Give feedback.
-
I'm curious if anyone else is still experiencing the random spinning circle when trying to load a clip or recording? Not seeing anything in the logs, just takes several minutes to load. Just noticed this in the last couple of weeks. |
Beta Was this translation helpful? Give feedback.
-
Quick question on MQTT:
However, I can see with MQTT explorer values 0 or 1, and not OFF or ON. Is this a bug? |
Beta Was this translation helpful? Give feedback.
-
Major Changes for 0.12.0
❗❗Notice❗❗
I want to recognize @NickM-27 for all the contributions he made on this release and all the support he helps provide in the issues. If you have been considering sponsoring this project with either a one time contribution or a recurring contribution, I would request that you do so at his sponsors page.
Link to updated docs: https://deploy-preview-4055--frigate-docs.netlify.app/
Changes Since Beta 7
preset-rtsp-restream
has been simplified due to various issues. There is a newpreset-rtsp-restream-low-latency
preset which is the same aspreset-rtsp-restream
in beta7preset-vaapi
renderD
devices are presentBREAKING CHANGES
./run: line 7: exec: nginx: not found
, then you need to stop overriding your PATH. This happens with both Proxmox LXC and Portainer ([Support]: Beta11 Can't Find FFMPEG #3223 the database will need to be deleted to roll-back successfully.Retention limited by available storage
Frigate now limits its recordings to available storage, if the storage for recordings gets below 1 hour left then Frigate will delete the oldest recording segments to make room for newer ones. Frigate will also not fail if there is no space to save recordings.
go2rtc
go2rtc has been bundled inside Frigate. The configuration can be set directly inside Frigate's config file nested under the
go2rtc
section. You can follow the guide to setup go2rtc.Due to many issues with RTMP, it is now deprecated in favor of using the bundled go2rtc to provide an RTSP stream. Streams configured in go2rtc can also be used by Frigate to reduce connections to the camera, see the restream docs for more info.
Birdseye restreaming is also now supported at
rtsp://frigate_ip:8554/birdseye
NOTE: Port
8554
will need to be mapped in the docker run or docker compose file for the restream to be accessed outside the container.New live stream options
The bundled go2rtc also enables new
MSE
andWebRTC
live view options in the frontend which enable low-latency full-framerate live views that support audio.NOTES:
The live view options are set in the Frigate WebUI for each camera individually.
New detector types
Frigate now supports new detector types along with the Google Coral TPU.
OpenVINO
The OpenVINO detector type runs an OpenVINO IR model on Intel CPU, GPU and VPU hardware. OpenVINO is supported on 6th Gen Intel platforms (Skylake) and newer. A supported Intel platform is required to use the GPU device with OpenVINO. The MYRIAD device may be run on any platform, including Arm devices. For detailed system requirements, see OpenVINO System Requirements
TensorRT
NVidia GPUs may be used for object detection using the TensorRT libraries. Due to the size of the additional libraries, this detector is only provided in images with the -tensorrt tag suffix. The TensortRT detector is able to run on x86 hosts that have an Nvidia GPU which supports the 11.x series of CUDA libraries. The minimum driver version on the host system must be >=450.80.02. Also the GPU must support a Compute Capability of 5.0 or greater. This generally correlates to a Maxwell-era GPU or newer, check the TensorRT docs for more info.
NOTE: The link in the docs is for the final release location, for the beta the script is located at https://raw.githubusercontent.com/blakeblackshear/frigate/dev/docker/tensorrt_models.sh
New system page
The
Debug
page has been renamed toSystem
. It now includes much more information and links to easily getvainfo
andffprobe
data.The GPUs section will show each GPU based on the hwaccel args, depending on the type of GPU different information is supported. For example Nvidia GPUs will have the name while others will be generic, also intel does not support memory usage. There is also a
VAINFO
button which will make it easier to diagnose hwaccel issues and verify that the hwaccel driver is being used correctly.Each camera will have their own process CPU & memory usage so it will be easier to see which process is using those resources. There is also an
FFPROBE
button which will be helpful to understand what each stream is presenting and make it easier to include that in support issues.The debug config has also been removed, the config can be copied using the config page in the WebUI.
New storage page
Frigate WebUI now has a built in storage page which shows the general usage for both storage and memory. It also shows a per-camera storage usage and stream bandwidth. This should make it a lot easier to have a general idea how much storage is being used by each camera.
New logs page
Frigate WebUI now has built in logs, this will make copying and viewing logs much easier. Currently the logs are static meaning the page must be refreshed to view new logs.
New config editor
Frigate WebUI now has a built in config editor with syntax highlighting and schema validation. This means that the config will be validated before it can be saved which will make yaml config much easier to manage.
NOTE: The previous docker-compose or docker CLI may have had the /config.yml set to
:ro
or read-only. That will need to be removed for the config editor to be able to save the new file.MQTT is now optional
Frigate no longer requires MQTT to function, MQTT is also setup asynchronously so errors will be more clear and frigate won't stop when mqtt is enabled but not setup correctly.
NOTE: MQTT is still required for the Frigate-HomeAssistant Integration
No changes are needed for existing users.
FFMpeg presets
FFMPEG presets for common configurations are now added, making the config cleaner and allowing the underlying args to be changed between releases without being a breaking change. It is highly recommended to update the configuration to use these presets.
See https://deploy-preview-4055--frigate-docs.netlify.app/configuration/ffmpeg_presets for more info on how these should be used.
Example: Enabling Audio In Recordings
before:
after:
This also enables presets for hardware acceleration which will be used to further reduce CPU usage by using the GPU to optimize scaling and other workloads.
Improved events filters
Recordings updates
Recording segments are now stored in UTC to avoid issues with DST. In order to avoid a breaking change, the path of the stored segments has changed from
/media/frigate/recordings/%Y-%m/%d/%H-%s.mp4
to/media/frigate/recordings/%Y-%m-%d/%H-%s.mp4
.Recordings in the frontend are now shown in the timezone of the device viewing frigate, so the timezone set on the server running frigate is irrelevant.
No changes are needed for existing users.
What's Changed
-user_agent
forrtmp
streams by @felipecrs in Do not apply-user_agent
forrtmp
streams #4596New Contributors
Full Changelog: v0.11.1...v0.12.0-beta8
Images:
ghcr.io/blakeblackshear/frigate:0.12.0-beta8
ghcr.io/blakeblackshear/frigate:0.12.0-beta8-tensorrt
This discussion was created from the release 0.12.0 Beta 8.
Beta Was this translation helpful? Give feedback.
All reactions