I need to take an avi fil and capture frames at regular intervals.

Is there any (preferably free!) software for this.