Motion detection and T-10s of recording

I set camera in front yard to detect dogs that leave :poop: on my lawn, quite often owners not clean up after them.
Most motion detected by cars passing through. Even after setup zones.
Wishlist

  1. Not sure how zones should works but because of the optics side are we’re curved. And it is impossible to define zone precisely. Woul like to have curved zone.
  2. Time -10s. Add option to record up to some reasonable time before trigger event. Some in memory cache that could be written along after 20s.
  3. Motion sensor only write 5s. Not obvious how to configure.
  4. motion sensor for outdoor.
  5. Medium / small animals detection