Save video before motion.

Is there a way that when motion is detected the camera will save the video starting 30 seconds before the motion occurred? Every time I get motion when people walk by, and play the video, it starts as soon as they get past the camera cause it saved it too late. Therefore I barely see anything or who it is. This would be a great feature. Just like police car dash cams. The video always records and then the lights are activated the camera saves the video 30 seconds or more based on settings so everything leading up to incident (motion) is recorded for evidence.