EliasKotlyar / Xiaomi-Dafang-Hacks

4.18k stars 1k forks source link

[feature request] Video length #1836

Open elchanly opened 1 year ago

elchanly commented 1 year ago

Could it be possible to define maximum length of a recording? It would be nice to have little pieces of video instead of a huge one. My use case: I record everything directly to a raspberry pi mounting samba folder as the recording folder. That folder goes straight to a OneDrive folder in a Cron based copy, so far so good. Tested and working if I stop alarm,it generates a small length video. But, when file becomes huge (let's say, nobody stops the alarm and camera keeps recording) obviously that never works, as that file never ends up copied,as it never stops being closed. It could be nice to have 1 minute videos one by one,as they could be easily uploaded to cloud and, even if camera removed(and even if raspberry...) videos would be available in the cloud. Thanks in advance!!!