-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Config Support]: How to create clips ? #3258
Comments
Clip mp4s themselves are not saved per-event as this was redundant and space inefficient (as well as added to a lot more SSD wear which is another threat to security). Some other context for this is provided here: #2176 But in general, you can use the http clips endpoint for getting the mp4 to upload for any event, and the http recording endpoint to get a stream that can be translated to an mp4 for any specific time range. |
isn't clear for me, please can you explain how to do that ? where can i use these commands, and how ? |
All of the commands are listed in the docs. They are simple http commands that are called, can be called in the browser as well.
it depends how your current backup system works, but in general it will just be a script that calls the http api for event ids to download clips for them and then backs it up to the cloud server. |
I don't understand how to write this script I'm looking for a simple way to have these .mp4 about every events, and upload them in my google drive, only this.... |
If you aren't currently using a cronjob then it wouldn't be required, however you are doing it now just needs to be adjust some to download the mp4s
it could be as simple as (psuedocode)
You haven't given much detail on how your setup is run currently, but it can be as extensible as it needs to be and shouldn't be too difficult. The rsync part is more complicated than downloading the events / clips. |
My config is: Proxmox - HASSos - Frigate in LXC with USB google coral - an usb where is store frigate files. So i need a way, when an events, ended, automatically, create .mp4 file and upload in a cloud. Upload in a cloud isn't a problem, because with rclone i can do that. But i need to know how to have this automation when there is an event, ended event, so create automatically mp4 and script execute rclone sync command |
How often is your rclone command run currently?
This can be done a number of ways:
|
For now rclone command doesn't run, because i need to set up to works automatically, not with crontab , but when there is a frigate event. Frigate Event > record .mp4 > upload it in cloud with rclone command. Done About point 1 i didn't understand how to listen. I have mqtt in HassOS but how i can do that ? About point 2 isn't automatically, because when there is an event, isn't uploaded in real time into the cloud. |
This can be done with nodered. Could also likely use the rclone hassos addon This discussion shows how to use home assistant to catch mqtt automations in general, would need to be slightly tweaked to fit your use case: #2898 Just being honest, I don't have time to write out a full step by step guide, but those are resources that should be able to help get this going. Could also post on reddit or other forums and someone with more time may be able to help. This may be made easier by future improvements with Frigate, but right now I think what I have outline are the easiest ways to accomplish this. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the problem you are having
Hi, in the previous version, there was clips in .mp4 generated by frigate. So was easy to upload them in a cloud, like google drive, with rclone.
Now frigate doesn't do that, so don't create any .mp4 clips files, and i can't understand how to.
Is not safe to store locally .mp4 clips, a thief can destroy them and you can't have any proof, is very strange that no one take care about that!
Please can you explain in details for a noob, how to create clips ?
Would be better if frigate have a feature that upload them in a cloud.... but anyway....
THanks for the support
Version
0.10.1-83481AF
Frigate config file
Relevant log output
Frigate stats
No response
Operating system
Proxmox
Install method
Docker Compose
Coral version
USB
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: