Replies: 1 comment 1 reply
-
It seems you have some misunderstandings on how things are working. The generated event mp4 videos are only created on the server and used for events that happened during the current clock hour. any events that occurred prior to the current hour already have a preview generated for that full hour and are just using the existing preview to loop through. The full hour previews are loaded with partial content (http code 206) so the full preview video file is not downloaded, the browser is responsible for deciding how much of the video is necessary to load at a time. For the generated event mp4 videos they are cached on the server for 5 minutes before they are cleaned up. It would make no sense to create / save these because they are irrelevant once the current hour is over and they are unlikely to be needed again since a user will mark the item as reviewed or not and not see them again. However, there is a bug in the frontend which while the list of existing preview files is being loaded causes the in progress preview video to be generated even when it is not needed, I have put up a PR to fix that. |
Beta Was this translation helpful? Give feedback.
-
Currently running 0.14.1
I was looking into the performance of the film strip at the top and I am a little confused as to how it is working / intended to work / might have some suggestions
First the current performance..
Testing with browser client cache disabled / which also simulates what happens when you open frigate fresh after a hour and don't have any cached content anyway.
Why are the full segments which can be a few MB fully downloaded by the client?
Why arn't the small clips being cached in nginx / the server when they seem to take a good 10-20s to generate?
My frigate box is a dedicated frigate machine with an i7 CPU and frigate storage is on an SSD. It appears these optimized low res previews are being generated on the file every time which is very slow.
Thoughts....
Instead of generating them based on requests, why not generate them automatically for events / segments as they end and ONLY generate in progress ones on the fly?
Beta Was this translation helpful? Give feedback.
All reactions