I want to only get notified when video is longer than 5 Seconds

almost every video that I get that is only 5 Seconds long is a false alarm or Shadow or a tree blowing in the wind. I have changed it the motion detection to the lowest setting and it still happens