Motion masks: Motion masks are used to prevent unwanted types of motion from triggering detection. I feel like that time is better spent improving the realtime analysis and other features.
To be honest though, in the several years I have been using ffmpeg to save 24/7 video as 60s segments, I can count on one hand the number of times I have gone back and reviewed the footage. I may end up building a custom panel for homeassistant (not using ingress) that has a much richer interface for viewing historical footage. That way its just a continuous video stream and you can seek wherever you want. Perhaps the best solution would be to create the mp4 dynamically on the fly and chain the segments together. I could also look at appending these 60s segments to a single file or merging them on some interval. There may be a way to ensure ffmpeg exits cleanly without losing the rest of the file, but I have never bothered to look. Using 60s segments prevents more than a minute of data loss. If/when ffmpeg loses connection to your camera, the process exits and the resulting file is often corrupted. The recordings are in 60s segments to prevent data loss.